/* public/css/admin.css - Admin SPA Styles */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --sidebar-w: 260px;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active-bg: linear-gradient(135deg,#4f46e5,#6366f1);
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #fff;
    --topbar-bg: #fff;
    --body-bg: #f1f5f9;
    --primary: #6366f1;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --card-bg: #fff;
    --card-border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --radius: 14px;
    --shadow: 0 2px 16px rgba(0,0,0,0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--body-bg);
    color: var(--text);
    font-size: 14px;
    overflow-x: hidden;
}

/* ── Layout ────────────────────────────────────────────── */
#admin-root { display: flex; min-height: 100vh; width: 100%; }

.adm-centered-login-wrapper {
    width: 100% !important;
    min-height: 100vh !important;
    flex: 1 1 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* ── Sidebar ───────────────────────────────────────────── */
.adm-sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    position: fixed; top:0; left:0; bottom:0;
    display: flex; flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}
.adm-sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #1e293b;
    display: flex; align-items: center; gap: 12px;
}
.adm-brand-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: white;
    box-shadow: 0 4px 12px rgba(99,102,241,0.4);
    flex-shrink: 0;
}
.adm-brand-name { font-size: 15px; font-weight: 800; color: #fff; line-height: 1.2; }
.adm-brand-sub  { font-size: 10px; color: #64748b; font-weight: 500; }

.adm-sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.adm-nav-section { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #475569; padding: 14px 10px 6px; }
.adm-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px; margin-bottom: 2px;
    color: var(--sidebar-text); font-weight: 500; font-size: 13.5px;
    cursor: pointer; border: none; background: none; width: 100%;
    text-align: left; text-decoration: none;
    transition: all 0.18s;
}
.adm-nav-link i { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.adm-nav-link:hover { background: var(--sidebar-hover); color: #f1f5f9; transform: translateX(2px); }
.adm-nav-link.active { background: var(--sidebar-active-bg); color: #fff; box-shadow: 0 4px 12px rgba(99,102,241,0.35); }

.adm-sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid #1e293b;
    background: #080d16;
}
.adm-user-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.adm-avatar {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: white; flex-shrink: 0;
}
.adm-user-name  { font-size: 13px; font-weight: 600; color: #fff; }
.adm-user-role  { font-size: 10px; color: #64748b; text-transform: capitalize; }
.adm-logout-btn {
    background: none; border: 1px solid #374151; border-radius: 8px;
    color: #94a3b8; cursor: pointer; padding: 5px 8px; font-size: 14px;
    transition: all 0.2s; flex-shrink: 0;
}
.adm-logout-btn:hover { background: rgba(239,68,68,0.1); border-color: #ef4444; color: #ef4444; }

/* ── Main Content ─────────────────────────────────────── */
.adm-main {
    margin-left: var(--sidebar-w);
    flex: 1; display: flex; flex-direction: column; min-height: 100vh;
}
.adm-topbar {
    background: var(--topbar-bg);
    border-bottom: 1px solid #e2e8f0;
    padding: 0 28px;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.adm-topbar-title { font-size: 17px; font-weight: 700; color: var(--text); }
.adm-content { padding: 28px; flex: 1; }

/* ── Cards ────────────────────────────────────────────── */
.adm-card {
    background: var(--card-bg); border-radius: var(--radius);
    border: 1px solid var(--card-border); box-shadow: var(--shadow);
}
.adm-card-header {
    padding: 16px 20px; border-bottom: 1px solid #f1f5f9;
    display: flex; align-items: center; justify-content: space-between;
    border-radius: var(--radius) var(--radius) 0 0;
}
.adm-card-body { padding: 20px; }

/* ── Stat Cards ─────────────────────────────────────────*/
.adm-stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 18px; margin-bottom: 24px; }
.adm-stat-card {
    background: white; border-radius: var(--radius); padding: 20px 22px;
    border: 1px solid var(--card-border); box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.adm-stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.adm-stat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.adm-stat-icon.indigo { background: rgba(99,102,241,0.1); color: #6366f1; }
.adm-stat-icon.green  { background: rgba(16,185,129,0.1); color: #10b981; }
.adm-stat-icon.amber  { background: rgba(245,158,11,0.1); color: #f59e0b; }
.adm-stat-icon.red    { background: rgba(239,68,68,0.1);  color: #ef4444; }
.adm-stat-icon.blue   { background: rgba(14,165,233,0.1); color: #0ea5e9; }
.adm-stat-icon.violet { background: rgba(167,139,250,0.1);color: #a78bfa; }
.adm-stat-value { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); line-height: 1; }
.adm-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

/* ── Tables ───────────────────────────────────────────── */
.adm-table-wrap { overflow-x: auto; border-radius: var(--radius); }
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table thead th { background: #f8fafc; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 12px 16px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.adm-table tbody td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; vertical-align: middle; }
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover td { background: #fafbff; }

/* ── Badges ───────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-success { background: rgba(16,185,129,0.1); color: #059669; }
.badge-warning { background: rgba(245,158,11,0.12); color: #d97706; }
.badge-danger  { background: rgba(239,68,68,0.1);  color: #dc2626; }
.badge-info    { background: rgba(14,165,233,0.1);  color: #0284c7; }
.badge-secondary { background: #f1f5f9; color: #64748b; }
.badge-primary { background: rgba(99,102,241,0.1); color: #4f46e5; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 9px; font-size: 13px; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.18s;
    text-decoration: none; white-space: nowrap; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(99,102,241,0.4); }
.btn-success { background: var(--success); color: white; }
.btn-danger  { background: var(--danger);  color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-outline {
    background: transparent; border: 1.5px solid #e2e8f0; color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn-icon { padding: 6px 8px; }

/* ── Forms ────────────────────────────────────────────── */
.adm-form-group { margin-bottom: 16px; }
.adm-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.adm-input, .adm-select, .adm-textarea {
    width: 100%; padding: 9px 13px; border-radius: 9px; font-size: 13.5px;
    border: 1.5px solid #e2e8f0; background: white; color: var(--text);
    font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.adm-input:focus, .adm-select:focus, .adm-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.adm-textarea { resize: vertical; min-height: 80px; }

/* ── Modal ────────────────────────────────────────────── */
.adm-modal-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px); z-index: 2000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.adm-modal {
    background: white; border-radius: 18px; padding: 28px;
    width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    animation: slideUp 0.2s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.adm-modal-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.adm-modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; border-top: 1px solid #f1f5f9; padding-top: 18px; }

/* ── Login Page (Centered & Modern) ─────────────────────── */
.adm-login-page {
    width: 100%;
    min-height: 100vh;
    flex: 1;
    background: radial-gradient(circle at 15% 15%, rgba(79, 70, 229, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 85% 85%, rgba(2, 132, 199, 0.08) 0%, transparent 45%),
                #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    position: relative;
}

.adm-login-brand-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    text-decoration: none;
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
}

.adm-login-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.adm-login-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 36px 32px;
    box-shadow: 0 20px 48px -15px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.02);
}

.adm-login-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.adm-login-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    color: #0f172a;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.adm-login-sub {
    font-size: 13.5px;
    color: #64748b;
    text-align: center;
    margin-bottom: 24px;
}

.adm-login-demo-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

.adm-login-demo-pill code {
    background: #eef2ff;
    color: #4338ca;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
}

.adm-login-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 12.5px;
}

.adm-login-links a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.18s;
}

.adm-login-links a:hover {
    color: #312e81;
    text-decoration: underline;
}

/* ── Alerts ───────────────────────────────────────────── */
.adm-alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.adm-alert-error   { background: rgba(239,68,68,0.09);  color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }
.adm-alert-success { background: rgba(16,185,129,0.09); color: #059669; border: 1px solid rgba(16,185,129,0.2); }

/* ── Utils ────────────────────────────────────────────── */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 20px; }
.mt-4 { margin-top: 20px; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-sm { font-size: 12px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.text-center { text-align: center; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 48px; display: block; margin-bottom: 12px; opacity: 0.3; }
.spinner { animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .adm-sidebar { transform: translateX(-100%); }
    .adm-sidebar.open { transform: translateX(0); }
    .adm-main { margin-left: 0; }
    .adm-stat-grid { grid-template-columns: 1fr 1fr; }
    .row-2 { grid-template-columns: 1fr; }
}

/* ── Modern Admin Login Page Styling ───────────────────────── */
.adm-login-page {
    min-height: 100vh;
    width: 100%;
    background: radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
                radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 45%),
                linear-gradient(135deg, #090d16 0%, #0f172a 50%, #1e1b4b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #0f172a;
    position: relative;
    overflow-x: hidden;
}

.adm-login-wrapper {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.adm-login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 4px;
}

.adm-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.adm-login-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.adm-login-brand-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-login-brand-text .brand-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.adm-login-brand-text .brand-title strong {
    color: #818cf8;
}

.adm-login-brand-text .brand-badge {
    font-size: 10.5px;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adm-header-back-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.adm-header-back-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.adm-login-card-container {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.55), 0 0 1px 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.adm-login-hero {
    padding: 44px 40px;
    background: linear-gradient(145deg, rgba(79, 70, 229, 0.22) 0%, rgba(15, 23, 42, 0.7) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.adm-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.35);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.adm-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.adm-hero-sub {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 32px;
}

.adm-hero-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.adm-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.adm-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adm-feature-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 3px 0;
}

.adm-feature-item p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}

.adm-hero-footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 36px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.adm-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.adm-login-form-card {
    padding: 44px 40px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.adm-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.adm-icon-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}

.adm-form-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.adm-form-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.adm-login-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    animation: fadeIn 0.2s ease;
}

.adm-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.adm-alert-close {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: currentColor;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
}

.adm-alert-close:hover { opacity: 1; }

.adm-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adm-input-field {
    display: flex;
    flex-direction: column;
}

.adm-input-label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.adm-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.adm-input-icon {
    position: absolute;
    left: 14px;
    font-size: 17px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}

.adm-custom-input {
    width: 100%;
    height: 44px;
    padding: 0 42px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.adm-custom-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.adm-custom-input:focus + .adm-input-icon,
.adm-input-wrapper:focus-within .adm-input-icon {
    color: #4f46e5;
}

.adm-password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.adm-password-toggle:hover {
    color: #4f46e5;
}

.adm-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -2px;
}

.adm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.adm-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    border-radius: 4px;
    cursor: pointer;
}

.btn-adm-submit {
    height: 46px;
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
    margin-top: 6px;
}

.btn-adm-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 100%);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

.btn-adm-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.adm-demo-box {
    margin-top: 24px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}

.adm-demo-box:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.adm-demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.adm-demo-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.adm-fill-toast {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: 10px;
    animation: fadeIn 0.2s ease;
}

.adm-demo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.adm-demo-cred {
    font-size: 12.5px;
    color: #334155;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.adm-demo-cred code {
    background: #e2e8f0;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 12px;
}

.adm-btn-fill {
    height: 30px;
    padding: 0 10px;
    font-size: 11.5px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #4f46e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.adm-btn-fill:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

.adm-login-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.adm-foot-link {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.adm-foot-link:hover {
    color: #4f46e5;
}

.adm-foot-sep {
    color: #cbd5e1;
    font-size: 12px;
}

@media (max-width: 920px) {
    .adm-login-card-container {
        grid-template-columns: 1fr;
    }

    .adm-login-hero {
        padding: 28px 24px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .adm-hero-title {
        font-size: 22px;
    }

    .adm-login-form-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .adm-login-page {
        padding: 16px 12px;
    }

    .adm-login-hero {
        display: none;
    }

    .adm-login-form-card {
        padding: 24px 18px;
        border-radius: 20px;
    }
}

/* ── Admin Topbar User Profile Dropdown ───────────────────── */
.adm-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 18px;
    color: #0f172a;
    cursor: pointer;
}

@media (max-width: 768px) {
    .adm-menu-toggle { display: block; }
}

.adm-topbar-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 9999px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.adm-topbar-user-trigger:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.adm-topbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3730a3, #4f46e5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.adm-topbar-user-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    max-width: 120px;
}

.adm-user-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
}

.adm-user-dropdown-card {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 14px;
    z-index: 1200;
    animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.adm-dropdown-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3730a3, #4f46e5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.adm-dropdown-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.adm-dropdown-email {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.2;
    margin-top: 1px;
}

.adm-dropdown-role-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    background: rgba(55, 48, 163, 0.1);
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
    text-transform: uppercase;
}

.adm-dropdown-ip-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11.5px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.adm-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 8px -14px;
}

.adm-dropdown-item {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
    font-family: inherit;
}

.adm-dropdown-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ── Admin Navigation Links & Submenus ───────────────────── */
.adm-nav-link {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border-radius: 10px;
    margin-bottom: 3px;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
}

.adm-nav-link:hover {
    background: #1e293b;
    color: #ffffff;
}

.adm-nav-link.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.adm-nav-sub {
    margin-left: 20px;
    padding-left: 12px;
    border-left: 2px dashed rgba(99, 102, 241, 0.4);
    margin-top: 4px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
}

.adm-nav-sub .adm-nav-link {
    height: 36px;
    font-size: 12.5px;
    color: #94a3b8;
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.adm-nav-sub .adm-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(3px);
}

.adm-nav-sub .adm-nav-link.active {
    background: rgba(99, 102, 241, 0.22);
    color: #a5b4fc;
    font-weight: 700;
    border-left: 3px solid #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.adm-nav-sub .adm-nav-icon {
    width: 22px;
    height: 22px;
    font-size: 11px;
    border-radius: 6px;
    opacity: 0.9;
}

.adm-nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.adm-nav-link:hover .adm-nav-icon {
    transform: scale(1.12);
}

.adm-nav-link.active .adm-nav-icon {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* ── Standard Admin Card Layout Utilities ───────────── */
.adm-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: all 0.2s ease;
}

.adm-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.adm-card-body {
    padding: 20px 22px;
}

/* ── Admin Compact Vibrant Stat Cards ───────────────────── */
.adm-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

@media (min-width: 1400px) {
    .adm-stat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .adm-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
    .adm-stat-grid { grid-template-columns: 1fr; }
}

.adm-stat-card {
    position: relative;
    border-radius: 10px;
    padding: 8px 12px;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #ffffff;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-stat-card:hover {
    transform: translateY(-2px);
}

.adm-card-glow {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 75px;
    height: 75px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

.adm-stat-card.theme-shops {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #0d9488 100%);
    box-shadow: 0 4px 14px -3px rgba(16, 185, 129, 0.38);
}

.adm-stat-card.theme-agents {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 50%, #3b82f6 100%);
    box-shadow: 0 4px 14px -3px rgba(2, 132, 199, 0.38);
}

.adm-stat-card.theme-jobs {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #8b5cf6 100%);
    box-shadow: 0 4px 14px -3px rgba(99, 102, 241, 0.38);
}

.adm-stat-card.theme-pages {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #d946ef 100%);
    box-shadow: 0 4px 14px -3px rgba(139, 92, 246, 0.38);
}

.adm-stat-card.theme-revenue {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #ea580c 100%);
    box-shadow: 0 4px 14px -3px rgba(245, 158, 11, 0.38);
}

.adm-stat-card.theme-failed {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 50%, #be123c 100%);
    box-shadow: 0 4px 14px -3px rgba(244, 63, 94, 0.38);
}

.adm-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.adm-card-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 5px;
}

.adm-card-icon-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #ffffff;
    flex-shrink: 0;
}

.adm-card-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1.5px 6px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.adm-card-main-val {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.4px;
    margin-top: 3px;
}

.adm-card-sub {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 1px;
}


