/* admin/assets/admin.css — Premium Dark-Mode Admin Panel */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ════════════════════════════════════════════
   ROOT VARIABLES — LIGHT MODE
════════════════════════════════════════════ */
:root {
    --primary: #1a365d;
    --primary-light: #2b6cb0;
    --primary-glow: rgba(43, 108, 176, 0.18);
    --accent: #4299e1;
    --secondary: #ebf8ff;
    --success: #38a169;
    --danger: #c43f3f;
    --warning: #d69e2e;
    --warning-bg: #fffbeb;
    --info: #3182ce;
    --white: #ffffff;
    --light: #f7fafc;
    --grey: #cbd5e0;
    --dark-grey: #4a5568;
    --text: #2d3748;
    --text-muted: #718096;
    --sidebar-bg: linear-gradient(180deg, #1a365d 0%, #0c213d 100%);
    --sidebar-width: 265px;
    --card-bg: #ffffff;
    --card-border: #e8f0fe;
    --topbar-bg: #ffffff;
    --body-bg: #f0f4f8;
    --input-bg: #ffffff;
    --input-border: #cbd5e0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.13);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.22s cubic-bezier(.4, 0, .2, 1);
}

/* ════════════════════════════════════════════
   DARK MODE VARIABLES
════════════════════════════════════════════ */
[data-theme="dark"] {
    --primary: #90cdf4;
    --primary-light: #63b3ed;
    --primary-glow: rgba(99, 179, 237, 0.15);
    --accent: #63b3ed;
    --secondary: #1a2744;
    --success: #68d391;
    --danger: #fc8181;
    --warning: #f6d860;
    --warning-bg: #2d2900;
    --white: #1a202c;
    --light: #171923;
    --grey: #2d3748;
    --dark-grey: #a0aec0;
    --text: #e2e8f0;
    --text-muted: #718096;
    --sidebar-bg: linear-gradient(180deg, #0d1b2e 0%, #070f1a 100%);
    --card-bg: #1a202c;
    --card-border: #2d3748;
    --topbar-bg: #1a202c;
    --body-bg: #131720;
    --input-bg: #2d3748;
    --input-border: #4a5568;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ════════════════════════════════════════════
   BASE
════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--body-bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: var(--transition);
}

a:hover {
    opacity: 0.85;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--grey);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-grey);
}

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-brand {
    padding: 22px 20px 18px;
    font-size: 1.2rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4299e1, #2b6cb0);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.35);
}

.sidebar-user {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4299e1, #2b6cb0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(66, 153, 225, 0.3);
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #f7fafc;
}

.user-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.sidebar-nav {
    padding: 10px 0 5px;
    flex: 1;
}

.nav-section {
    padding: 14px 20px 4px;
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 20px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.25);
    padding-left: 24px;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(66, 153, 225, 0.2), rgba(66, 153, 225, 0.05));
    color: white;
    border-left-color: #4299e1;
}

.nav-item.logout {
    color: rgba(252, 129, 129, 0.8);
}

.nav-item.logout:hover {
    background: rgba(252, 129, 129, 0.1);
    color: #fc8181;
    border-left-color: #fc8181;
}

.nav-item .nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

/* Dark mode toggle at sidebar bottom */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.15);
}

.dark-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.dark-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
}

.toggle-switch {
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .toggle-switch {
    background: #4299e1;
}

[data-theme="dark"] .toggle-switch::after {
    left: 21px;
}

/* ════════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════════ */
.admin-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 28px 30px;
    min-height: 100vh;
    transition: var(--transition);
}

/* ════════════════════════════════════════════
   TOP BAR
════════════════════════════════════════════ */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 15px;
}

.topbar h1 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.topbar p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 3px;
}

/* ════════════════════════════════════════════
   STAT CARDS — Glassmorphism
════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    border-top: 4px solid var(--primary-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--primary-glow);
    border-radius: 50%;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    margin-top: 5px;
}

.stat-card.stat-pending {
    border-top-color: var(--warning);
}

.stat-card.stat-approved {
    border-top-color: var(--success);
}

.stat-card.stat-rejected {
    border-top-color: var(--danger);
}

.stat-card.stat-info {
    border-top-color: var(--info);
}

/* ════════════════════════════════════════════
   CARDS
════════════════════════════════════════════ */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    margin-bottom: 22px;
    transition: background 0.3s, border-color 0.3s;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--card-border);
}

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ════════════════════════════════════════════
   QUICK ACTION CARDS
════════════════════════════════════════════ */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.quick-card {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    cursor: pointer;
    color: var(--text);
}

.quick-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text);
}

.quick-card .qc-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    background: var(--primary-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-card .qc-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.quick-card .qc-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-light);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.35);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    opacity: 0.88;
    color: white;
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    opacity: 0.88;
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    opacity: 0.88;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--grey);
    color: var(--dark-grey);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: var(--primary-glow);
}

.btn-ghost {
    background: var(--light);
    color: var(--text-muted);
    border: 1px solid var(--grey);
}

.btn-ghost:hover {
    background: var(--grey);
    color: var(--text);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-xs {
    padding: 4px 9px;
    font-size: 0.75rem;
    border-radius: 5px;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 1rem;
    border-radius: 10px;
}

/* ════════════════════════════════════════════
   TABLES
════════════════════════════════════════════ */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

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

th {
    background: var(--light);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 14px;
    text-align: left;
    border-bottom: 2px solid var(--card-border);
    white-space: nowrap;
}

td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.9rem;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--light);
}

[data-theme="dark"] th {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* ════════════════════════════════════════════
   BADGES
════════════════════════════════════════════ */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: inline-block;
}

.badge-Pending,
.badge-pending {
    background: #feebc8;
    color: #c05621;
}

.badge-Approved,
.badge-active,
.badge-verified {
    background: #c6f6d5;
    color: #22543d;
}

.badge-Rejected,
.badge-rejected,
.badge-blocked {
    background: #fed7d7;
    color: #9b2c2c;
}

.badge-super_admin {
    background: #e9d8fd;
    color: #553c9a;
}

.badge-admin {
    background: #bee3f8;
    color: #2c5282;
}

.badge-operator {
    background: #fefcbf;
    color: #744210;
}

.badge-new {
    background: #bee3f8;
    color: #2c5282;
}

.badge-correction {
    background: #fef3c7;
    color: #92400e;
}

[data-theme="dark"] .badge-Pending {
    background: rgba(192, 86, 33, 0.2);
    color: #f6ad55;
}

[data-theme="dark"] .badge-Approved,
[data-theme="dark"] .badge-active {
    background: rgba(56, 161, 105, 0.2);
    color: #68d391;
}

[data-theme="dark"] .badge-Rejected {
    background: rgba(229, 62, 62, 0.2);
    color: #fc8181;
}

/* ════════════════════════════════════════════
   FORMS
════════════════════════════════════════════ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 7px;
    color: var(--dark-grey);
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition);
    background: var(--input-bg);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* ════════════════════════════════════════════
   FILTER BAR
════════════════════════════════════════════ */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 18px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    margin-bottom: 20px;
}

.filter-bar .form-control {
    width: auto;
    min-width: 140px;
    padding: 8px 11px;
}

.filter-bar label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

/* ════════════════════════════════════════════
   MODALS
════════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalIn 0.25s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid var(--card-border);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: var(--transition);
    background: var(--light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

/* ════════════════════════════════════════════
   AUTH PAGES — Login / Register
════════════════════════════════════════════ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #0d1b2e 0%, #1a365d 40%, #2b6cb0 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.auth-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    padding: 42px 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    animation: authIn 0.4s cubic-bezier(.4, 0, .2, 1);
}

@keyframes authIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.auth-logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a365d, #2b6cb0);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 14px;
    box-shadow: 0 8px 24px rgba(43, 108, 176, 0.3);
}

.auth-subtitle {
    text-align: center;
    color: #718096;
    font-size: 0.88rem;
    margin-bottom: 28px;
}

/* Progress steps for register */
.reg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

.reg-step {
    display: flex;
    align-items: center;
    gap: 0;
}

.reg-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #a0aec0;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.reg-step-dot.active {
    background: #2b6cb0;
    color: white;
    box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.2);
}

.reg-step-dot.done {
    background: #38a169;
    color: white;
}

.reg-step-line {
    width: 50px;
    height: 2px;
    background: #e2e8f0;
}

.reg-step-line.done {
    background: #38a169;
}

/* CAPTCHA box */
.captcha-box {
    background: linear-gradient(135deg, #f0f9ff, #e8f4fd);
    border: 1.5px solid #90cdf4;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.captcha-question {
    font-size: 1rem;
    font-weight: 700;
    color: #1a365d;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 6px 14px;
    border-radius: 7px;
    border: 1px solid #90cdf4;
}

.captcha-box input.form-control {
    width: 80px;
    text-align: center;
    font-weight: 700;
}

/* ════════════════════════════════════════════
   ALERT
════════════════════════════════════════════ */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 4px solid;
}

.alert-danger {
    background: #fff5f5;
    border-left-color: #fc8181;
    color: #c53030;
}

.alert-success {
    background: #f0fff4;
    border-left-color: #68d391;
    color: #22543d;
}

.alert-warning {
    background: var(--warning-bg);
    border-left-color: #f6d860;
    color: #744210;
}

.alert-info {
    background: #ebf8ff;
    border-left-color: #90cdf4;
    color: #2c5282;
}

[data-theme="dark"] .alert-danger {
    background: rgba(229, 62, 62, 0.1);
    color: #fc8181;
}

[data-theme="dark"] .alert-success {
    background: rgba(56, 161, 105, 0.1);
    color: #68d391;
}

[data-theme="dark"] .alert-warning {
    background: rgba(214, 158, 46, 0.1);
    color: #f6d860;
}

/* ════════════════════════════════════════════
   CHARTS
════════════════════════════════════════════ */
.chart-container {
    position: relative;
    height: 260px;
}

.chart-container.lg {
    height: 320px;
}

.chart-container.sm {
    height: 200px;
}

/* ════════════════════════════════════════════
   NOTIFICATION BELL
════════════════════════════════════════════ */
.notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-decoration: none;
}

.notif-bell:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.notif-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a365d;
}

/* ════════════════════════════════════════════
   DOC PREVIEW
════════════════════════════════════════════ */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.doc-card {
    border: 1.5px solid var(--card-border);
    border-radius: 10px;
    padding: 15px;
    background: var(--card-bg);
    transition: var(--transition);
}

.doc-card:hover {
    box-shadow: var(--shadow-md);
}

.doc-card.verified {
    border-color: var(--success);
    background: rgba(56, 161, 105, 0.06);
}

.doc-card.rejected {
    border-color: var(--danger);
    background: rgba(229, 62, 62, 0.06);
}

/* ════════════════════════════════════════════
   MISC UTILITIES
════════════════════════════════════════════ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-8 {
    gap: 8px;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.mt-4 {
    margin-top: 20px;
}

.mb-4 {
    margin-bottom: 20px;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.87rem;
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.w-100 {
    width: 100%;
}

.detail-table td:first-child {
    font-weight: 600;
    color: var(--text-muted);
    width: 160px;
    font-size: 0.85rem;
}

.detail-table td {
    padding: 9px 6px;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.9rem;
}

/* Activity feed */
.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
    align-items: flex-start;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-glow);
    color: var(--primary-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-text {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--grey);
}

.divider span {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ID proof thumb */
.id-proof-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--grey);
}

/* Bulk actions bar */
.bulk-bar {
    background: var(--primary-light);
    color: white;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    display: none;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 0.9rem;
}

.bulk-bar.show {
    display: flex;
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 300;
    background: var(--primary);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

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

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .admin-content {
        margin-left: 0;
        padding: 20px 16px;
        padding-top: 70px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }
}