* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #1e293b;
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #334155;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 24px;
    color: #facc15;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 32px;
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #334155;
    color: #facc15;
    border-left-color: #facc15;
}

.nav-item.active {
    background: #334155;
    color: #facc15;
    border-left-color: #facc15;
}

.nav-icon {
    font-size: 20px;
    margin-right: 12px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #334155;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Header */
.top-header {
    background: #1e293b;
    padding: 20px;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-box {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-btn {
    padding: 10px 15px;
    background: #facc15;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.notifications {
    position: relative;
    cursor: pointer;
    font-size: 20px;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #334155;
    border-radius: 6px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #facc15;
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page h1 {
    color: #facc15;
    margin-bottom: 20px;
    font-size: 28px;
}

/* Login/Register */
.login-container,
.register-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #1e293b;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.login-container h1,
.register-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #facc15;
}

.login-container form,
.register-container form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    padding: 12px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #facc15;
    color: #0f172a;
}

.btn-primary:hover {
    background: #eab308;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

.btn-secondary {
    background: #475569;
    color: #e2e8f0;
}

.btn-secondary:hover {
    background: #64748b;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #1e293b;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #475569;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-card.success {
    border-left-color: #22c55e;
}

.stat-card.danger {
    border-left-color: #ef4444;
}

.stat-card.warning {
    border-left-color: #eab308;
}

.stat-card.info {
    border-left-color: #3b82f6;
}

.stat-card h3 {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #facc15;
}

.stat-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    opacity: 0.3;
}

/* Forms */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-container {
    background: #1e293b;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-container.hidden {
    display: none;
}

#add-applicant-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filters select {
    padding: 10px 15px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    cursor: pointer;
}

/* Tables */
.table-container {
    background: #1e293b;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: #334155;
    position: sticky;
    top: 0;
}

table th {
    padding: 15px;
    text-align: left;
    color: #facc15;
    font-weight: 600;
    border-bottom: 2px solid #475569;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #334155;
}

table tr:hover {
    background: #334155;
}

table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-agreed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-refused {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-no_answer {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

.status-thinking {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

/* Notifications */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: #1e293b;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid #facc15;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification.success {
    border-left-color: #22c55e;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.warning {
    border-left-color: #eab308;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #334155;
        flex-direction: row;
    }

    .sidebar-nav {
        display: flex;
        gap: 10px;
        padding: 10px;
    }

    .nav-item {
        flex: 1;
        justify-content: center;
        padding: 8px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .nav-item.active {
        border-left: none;
        border-bottom-color: #facc15;
    }

    .sidebar-footer {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 8px;
    }

    .search-box {
        max-width: 200px;
    }
}