/* ===== PAISA GARAGE CRM - GoScore Professional Design ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Sidebar - White like GoScore */
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f3f4f8;
    --sidebar-active: #e8f5e9;
    --sidebar-active-text: #2e7d32;
    --sidebar-text: #555770;
    --sidebar-text-active: #2e7d32;
    --sidebar-border: #e8ecf1;
    --sidebar-width: 240px;

    /* Primary Colors */
    --primary-color: #4f6ef7;
    --primary-light: #6d8afb;
    --primary-dark: #3a56d4;
    --secondary-color: #7c5cdb;

    /* Backgrounds */
    --body-bg: #f5f6fa;
    --white: #ffffff;
    --light-gray: #f8f9fc;
    --border-gray: #e8ecf1;

    /* Text */
    --text-dark: #1e2139;
    --text-medium: #555770;
    --text-light: #8b8fa3;
    --text-muted: #a0a3b5;

    /* Status Colors */
    --success-color: #22c55e;
    --success-bg: #ecfdf5;
    --danger-color: #ef4444;
    --danger-bg: #fef2f2;
    --warning-color: #f59e0b;
    --warning-bg: #fffbeb;
    --info-color: #3b82f6;
    --info-bg: #eff6ff;

    /* Card accent colors */
    --card-purple: #7c5cdb;
    --card-blue: #4f6ef7;
    --card-green: #22c55e;
    --card-orange: #f59e0b;
    --card-red: #ef4444;
    --card-teal: #14b8a6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-dark);
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d3de; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a0a3b5; }

/* ===== LOGIN PAGE ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1d2e 0%, #2d3154 50%, #1a1d2e 100%);
    padding: 20px;
}

.login-box {
    background: var(--white);
    padding: 36px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
}

.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo h1 { font-size: 22px; font-weight: 800; color: var(--text-dark); }
.login-logo p { color: var(--text-light); font-size: 12px; margin-top: 4px; }

/* ===== ALERTS ===== */
.alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-success { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: var(--info-bg); color: #1e40af; border: 1px solid #bfdbfe; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-size: 12px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.2s ease;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 2px 8px rgba(79, 110, 247, 0.3); }
.btn-success { background: var(--success-color); color: white; }
.btn-success:hover { background: #16a34a; }
.btn-danger { background: var(--danger-color); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning-color); color: white; }
.btn-warning:hover { background: #d97706; }
.btn-secondary { background: var(--light-gray); color: var(--text-dark); border: 1px solid var(--border-gray); }
.btn-secondary:hover { background: #eef0f5; }
.btn-outline { background: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: white; }
.btn-block { width: 100%; margin-top: 8px; }
.btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 5px; }
.btn-xs { padding: 3px 7px; font-size: 10px; border-radius: 4px; }

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-container { display: flex; min-height: 100vh; }

/* ===== WHITE SIDEBAR (GoScore Style) ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 0;
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--sidebar-border);
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar-header {
    padding: 18px 16px;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo { display: flex; align-items: center; gap: 10px; }

.sidebar-logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-logo-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
}

.sidebar-logo-sub {
    font-size: 10px;
    color: var(--text-light);
    display: block;
    margin-top: 1px;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 10px;
    flex: 1;
    overflow-y: auto;
}

/* Section dropdown toggle */
.sidebar-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    margin-top: 14px;
    margin-bottom: 2px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    list-style: none;
    user-select: none;
}
.sidebar-section-toggle:hover { background: var(--sidebar-hover); }

.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.sidebar-section-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
    color: var(--text-muted);
    flex-shrink: 0;
}
.sidebar-section-toggle.collapsed .sidebar-section-arrow { transform: rotate(-90deg); }

.sidebar-section-items {
    list-style: none;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    max-height: 500px;
    opacity: 1;
}
.sidebar-section-items.collapsed {
    max-height: 0;
    opacity: 0;
}

/* Old label style fallback */
.sidebar-menu-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    padding: 16px 12px 6px;
    list-style: none;
}

.sidebar-menu-item { margin-bottom: 1px; list-style: none; }

.sidebar-menu-item a {
    color: var(--sidebar-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
    font-size: 13px;
    font-weight: 500;
}

.sidebar-menu-item a svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
    color: var(--text-light);
}

.sidebar-menu-item a:hover {
    background: var(--sidebar-hover);
    color: var(--text-dark);
}
.sidebar-menu-item a:hover svg { opacity: 1; color: var(--text-dark); }

/* Active state - Green like GoScore */
.sidebar-menu-item a.active {
    background: var(--sidebar-active);
    color: var(--sidebar-active-text);
    font-weight: 600;
}
.sidebar-menu-item a.active svg {
    opacity: 1;
    color: var(--sidebar-active-text);
    stroke: var(--sidebar-active-text);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px;
    border-top: 1px solid var(--sidebar-border);
    margin-top: auto;
    background: var(--white);
}

.sidebar-user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-user-name { font-size: 12px; font-weight: 600; color: var(--text-dark); }

.sidebar-user-role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--success-bg);
    color: #166534;
    margin-top: 2px;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--danger-color);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
}
.sidebar-logout-btn:hover { background: var(--danger-bg); }

/* ===== TOPBAR ===== */
.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title { font-size: 17px; font-weight: 700; color: var(--text-dark); }

.topbar-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.user-info { display: flex; align-items: center; gap: 12px; }

.notification-btn {
    background: none;
    border: 1px solid var(--border-gray);
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.notification-btn:hover { background: var(--light-gray); border-color: var(--primary-color); color: var(--primary-color); }

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-color);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

.user-name { font-weight: 600; color: var(--text-dark); font-size: 12px; }
.user-role { font-size: 10px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

.logout-btn {
    background: var(--danger-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
}
.logout-btn:hover { background: #dc2626; }

.page-content {
    padding: 20px 24px;
    flex: 1;
    overflow-y: auto;
    background-color: var(--body-bg);
}

/* ===== DASHBOARD CARDS ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 18px 16px;
    border: 1px solid var(--border-gray);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
    color: var(--text-dark);
}

.card::before, .card::after { display: none; }

.card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

/* Card left accent strip */
.dashboard-grid .card { border-left: 4px solid transparent; }
.dashboard-grid .card:nth-child(1) { border-left-color: var(--card-purple); }
.dashboard-grid .card:nth-child(2) { border-left-color: var(--card-blue); }
.dashboard-grid .card:nth-child(3) { border-left-color: var(--card-green); }
.dashboard-grid .card:nth-child(4) { border-left-color: var(--card-red); }
.dashboard-grid .card:nth-child(5) { border-left-color: var(--card-teal); }
.dashboard-grid .card:nth-child(6) { border-left-color: var(--card-orange); }

.card-title {
    font-size: 10px;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}
.card-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--text-dark);
    background-clip: unset;
    line-height: 1.1;
    letter-spacing: -1px;
}
.card-meta { font-size: 10px; color: var(--text-light); margin-top: 6px; }

/* ===== TABLES ===== */
.table-container {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-gray);
}

.table-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
}

.table-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }

table { width: 100%; border-collapse: collapse; }

thead { background: #f1f3f7; border-bottom: 2px solid var(--border-gray); }

th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-medium);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    border-right: 1px solid var(--border-gray);
}
th:last-child { border-right: none; }

td {
    padding: 9px 14px;
    border-bottom: 1px solid #eceef2;
    border-right: 1px solid #f0f2f5;
    font-size: 12px;
    color: var(--text-dark);
}
td:last-child { border-right: none; }

tbody tr { transition: background 0.12s ease; }
tbody tr:hover { background: #f8f9fc; }
tbody tr:last-child td { border-bottom: none; }

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    gap: 3px;
}
.status-active, .status-approved, .status-present, .status-success { background: var(--success-bg); color: #166534; }
.status-inactive, .status-rejected, .status-absent, .status-danger { background: var(--danger-bg); color: #991b1b; }
.status-pending, .status-warning { background: var(--warning-bg); color: #92400e; }
.status-completed, .status-info, .status-login, .status-disbursed { background: var(--info-bg); color: #1e40af; }
.status-reapply { background: #f0f0ff; color: #4338ca; }

/* ===== ACTION BUTTONS ===== */
.action-buttons { display: flex; gap: 4px; align-items: center; }

.action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
    text-decoration: none;
}
.action-btn-view { background: var(--info-bg); color: var(--info-color); }
.action-btn-view:hover { background: #dbeafe; box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15); }
.action-btn-edit { background: var(--warning-bg); color: var(--warning-color); }
.action-btn-edit:hover { background: #fef3c7; }
.action-btn-approve { background: var(--success-bg); color: var(--success-color); }
.action-btn-approve:hover { background: #dcfce7; }
.action-btn-delete, .action-btn-reject { background: var(--danger-bg); color: var(--danger-color); }
.action-btn-delete:hover, .action-btn-reject:hover { background: #fee2e2; }

.action-buttons .btn-sm { margin: 0; font-size: 10px; padding: 4px 8px; }

.eye-icon {
    cursor: pointer;
    color: var(--info-color);
    font-size: 14px;
    padding: 5px 7px;
    border-radius: 6px;
    border: none;
    background: var(--info-bg);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.eye-icon:hover { background: #dbeafe; }

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 14px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    border-radius: 10px 10px 0 0;
}

.filter-group { display: flex; flex-direction: column; gap: 3px; }

.filter-group label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.filter-group input,
.filter-group select {
    padding: 6px 10px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
    min-width: 130px;
}
.filter-group input:focus,
.filter-group select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.08); }

/* ===== FORMS ===== */
.form-container {
    background: var(--white);
    border-radius: 10px;
    padding: 24px;
    max-width: 680px;
    border: 1px solid var(--border-gray);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.full { grid-template-columns: 1fr; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 3px; margin-top: 16px; }
.pagination a, .pagination span {
    padding: 6px 10px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-medium);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination a:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.pagination .active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(26, 29, 46, 0.45);
    overflow: auto;
    backdrop-filter: blur(3px);
}
.modal.show { display: flex !important; align-items: center; justify-content: center; }

.modal-content {
    background-color: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    max-width: 750px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 12px;
}
.modal-header h2 { font-size: 17px; color: var(--text-dark); margin: 0; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-light);
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}
.modal-close:hover { background-color: var(--light-gray); color: var(--text-dark); }

.modal-body { display: flex; flex-direction: column; gap: 14px; min-height: 180px; }

.modal-section {
    margin-bottom: 14px;
    display: block;
    visibility: visible;
    border: 1px solid var(--border-gray);
    padding: 14px;
    border-radius: 8px;
    background-color: var(--light-gray);
}

.modal-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-gray);
    letter-spacing: 0.4px;
}

.modal-field { margin-bottom: 10px; display: flex; flex-direction: column; }
.modal-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}
.modal-value {
    font-size: 12px;
    color: var(--text-dark);
    word-break: break-word;
    padding: 8px 10px;
    background-color: var(--white);
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}
.modal-value.empty { color: var(--text-muted); font-style: italic; }
.modal-loading { text-align: center; padding: 30px; color: var(--text-light); font-size: 13px; }
.modal-error { color: #991b1b; padding: 12px; background: var(--danger-bg); border-radius: 6px; border-left: 3px solid var(--danger-color); }

/* ===== LOGIN FOOTER ===== */
.login-footer, .register-footer { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-gray); }
.login-footer a, .register-footer a { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.login-footer a:hover, .register-footer a:hover { text-decoration: underline; }

.login-info { background-color: var(--light-gray); padding: 12px; border-radius: 8px; margin-top: 16px; font-size: 11px; }
.login-info h4 { margin-bottom: 6px; color: var(--primary-color); }
.login-info p { color: var(--text-light); margin: 4px 0; }

/* ===== USER DROPDOWN MENU ===== */
.user-dropdown { position: relative; }

.user-dropdown-btn {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-dark);
    transition: all 0.2s;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}
.user-dropdown-btn:hover { border-color: var(--primary-color); background: var(--white); }

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    margin-top: 6px;
    z-index: 1000;
    border: 1px solid var(--border-gray);
    overflow: hidden;
}
.user-dropdown-menu.active { display: block; animation: slideDown 0.2s ease; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header { padding: 12px 16px; border-bottom: 1px solid var(--border-gray); background: var(--light-gray); }
.user-dropdown-name { font-weight: 700; color: var(--text-dark); font-size: 13px; }
.user-dropdown-email { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.user-dropdown-divider { height: 1px; background: var(--border-gray); margin: 4px 0; }
.user-dropdown-menu-items { list-style: none; padding: 4px 0; }

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.15s;
}
.user-dropdown-item:hover { background: var(--light-gray); color: var(--primary-color); }
.user-dropdown-item.active { background-color: var(--light-gray); color: var(--primary-color); font-weight: 600; }
.user-dropdown-item svg { flex-shrink: 0; opacity: 0.6; }
.user-dropdown-item:hover svg { opacity: 1; }
.user-dropdown-item-icon { font-size: 14px; width: 18px; }

.user-dropdown-logout { border-top: 1px solid var(--border-gray); margin-top: 3px; padding-top: 8px; color: var(--danger-color); }
.user-dropdown-logout:hover { background: var(--danger-bg); color: var(--danger-color); }

/* ===== HAMBURGER MENU ===== */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 22px;
    cursor: pointer;
    padding: 6px;
    margin-right: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.hamburger-menu:hover { background: var(--light-gray); }

.hamburger-menu span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 4px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ===== TABS ===== */
.tab-container {
    display: flex;
    gap: 1px;
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    padding: 0 18px;
    border-radius: 10px 10px 0 0;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--text-dark); }
.tab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-color);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 5px;
    min-width: 16px;
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 40px 16px; color: var(--text-light); }
.empty-state-icon { font-size: 40px; margin-bottom: 10px; opacity: 0.4; }
.empty-state-text { font-size: 13px; font-weight: 500; }

/* ===== ATTENDANCE ===== */
.attendance-photo { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border-gray); }
.attendance-photo-large { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; border: 2px solid var(--border-gray); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root { --sidebar-width: 220px; }
}

@media (max-width: 768px) {
    .hamburger-menu { display: block; }
    .sidebar {
        width: 250px;
        position: fixed;
        left: 0; top: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .topbar { padding: 10px 14px; }
    .topbar-title { font-size: 15px; }
    .user-info { gap: 8px; }
    .user-name { font-size: 11px; }
    .form-row { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .card { padding: 14px; }
    .card-value { font-size: 22px; }
    .card-title { font-size: 9px; }
    table { font-size: 11px; }
    th { padding: 8px 10px; font-size: 9px; }
    td { padding: 8px 10px; font-size: 11px; }
    .table-header { padding: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .table-title { font-size: 13px; }
    .action-buttons { flex-wrap: wrap; gap: 3px; }
    .page-content { padding: 12px; }
    .modal-content { padding: 16px; max-width: 95%; }
    .modal-header h2 { font-size: 16px; }
    .modal-close { position: absolute; top: 10px; right: 10px; }
    .filter-bar { padding: 12px; gap: 8px; }
    .filter-group input, .filter-group select { min-width: 110px; font-size: 11px; }
    .tab-container { padding: 0 12px; }
    .tab-btn { padding: 10px 12px; font-size: 11px; }
}

@media (max-width: 600px) {
    .topbar { padding: 8px 10px; gap: 6px; }
    .topbar-title { font-size: 14px; }
    .user-name { display: none; }
    .user-role { font-size: 9px; }
    .logout-btn { padding: 5px 8px; font-size: 10px; }
    .page-content { padding: 8px; }
    .dashboard-grid { gap: 8px; grid-template-columns: 1fr 1fr; }
    .card { padding: 12px; }
    .card-value { font-size: 20px; }
    .btn { padding: 6px 12px; font-size: 11px; }
    .btn-sm { padding: 4px 7px; font-size: 9px; }
    table { font-size: 10px; }
    th { padding: 6px 8px; font-size: 8px; }
    td { padding: 6px 8px; font-size: 10px; }
    .form-group input, .form-group select, .form-group textarea { padding: 7px 10px; font-size: 12px; }
    .form-container { padding: 14px; }
    .modal-content { padding: 12px; }
    .modal-section { padding: 10px; }
    .modal-value { font-size: 11px; padding: 6px 8px; }
    .eye-icon { font-size: 12px; padding: 4px 6px; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-group { width: 100%; }
    .filter-group input, .filter-group select { width: 100%; min-width: 0; }
}

@media (max-width: 400px) {
    .topbar-title { font-size: 13px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .card-value { font-size: 18px; }
    .btn { padding: 5px 10px; font-size: 10px; }
    table { font-size: 9px; }
    th, td { padding: 5px 6px; }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-light); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-primary { color: var(--primary-color); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.rounded { border-radius: 8px; }
.bg-white { background: var(--white); }
.border { border: 1px solid var(--border-gray); }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

