﻿@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --bg-base: #0d1117;
    --bg-surface: #161b22;
    --bg-elevated: #1c2333;
    --bg-hover: #21262d;
    --border: rgba(255,255,255,0.07);
    --border-active: rgba(255,193,7,0.4);
    --gold: #ffc107;
    --gold-dim: rgba(255,193,7,0.15);
    --gold-glow: 0 0 20px rgba(255,193,7,0.2);
    --emerald: #3fb950;
    --red: #f85149;
    --blue: #58a6ff;
    --purple: #bc8cff;
    --orange: #f0883e;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --sidebar-w: 260px;
    --header-h: 64px;
    --radius: 10px;
    --radius-lg: 16px;
    --transition: all .2s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted);
    }

/* ══════════════════════════════════════════════════════════════
   LAYOUT SHELL
══════════════════════════════════════════════════════════════ */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.admin-sidebar {
    width: var(--sidebar-w);
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: var(--transition);
}

    .admin-sidebar.collapsed {
        width: 68px;
    }

/* Brand */
.sidebar-brand {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    flex-shrink: 0;
}

.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gold);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #000;
    flex-shrink: 0;
}

.sidebar-brand-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
}

    .sidebar-brand-text span {
        color: var(--gold);
    }

/* Nav groups */
.sidebar-body {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.nav-group {
    margin-bottom: 4px;
}

.nav-group-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 14px 20px 6px;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px;
    margin: 1px 8px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

    .nav-item:hover {
        background: var(--bg-hover);
        color: var(--text-primary);
    }

    .nav-item.active {
        background: var(--gold-dim);
        color: var(--gold);
        border: 1px solid var(--border-active);
    }

        .nav-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 25%;
            bottom: 25%;
            width: 3px;
            background: var(--gold);
            border-radius: 0 3px 3px 0;
        }

    .nav-item i {
        font-size: 16px;
        flex-shrink: 0;
        width: 20px;
        text-align: center;
    }

    .nav-item .badge-dot {
        margin-left: auto;
        width: 7px;
        height: 7px;
        background: var(--red);
        border-radius: 50%;
        flex-shrink: 0;
    }

    .nav-item .nav-badge {
        margin-left: auto;
        background: var(--red);
        color: #fff;
        font-size: 10px;
        font-weight: 600;
        padding: 1px 6px;
        border-radius: 20px;
        flex-shrink: 0;
    }

/* Sidebar footer */
.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 12px;
    flex-shrink: 0;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: var(--transition);
}

    .user-card:hover {
        background: var(--bg-hover);
    }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #000;
    flex-shrink: 0;
}

.user-info {
    overflow: hidden;
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── Main area ─────────────────────────────────────────────── */
.admin-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
}

    .admin-main.expanded {
        margin-left: 68px;
    }

/* ── Topbar ────────────────────────────────────────────────── */
.admin-topbar {
    height: var(--header-h);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.topbar-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

    .topbar-toggle:hover {
        background: var(--bg-hover);
        color: var(--text-primary);
    }

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

    .topbar-breadcrumb .current {
        color: var(--text-primary);
        font-weight: 600;
    }

    .topbar-breadcrumb i {
        font-size: 10px;
    }

.topbar-search {
    margin-left: auto;
    position: relative;
    width: 240px;
}

    .topbar-search input {
        width: 100%;
        background: var(--bg-elevated);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 7px 12px 7px 36px;
        color: var(--text-primary);
        font-size: 13px;
        font-family: 'DM Sans', sans-serif;
        transition: var(--transition);
    }

        .topbar-search input:focus {
            outline: none;
            border-color: var(--border-active);
            box-shadow: var(--gold-glow);
        }

        .topbar-search input::placeholder {
            color: var(--text-muted);
        }

    .topbar-search i {
        position: absolute;
        left: 11px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 13px;
    }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    position: relative;
    text-decoration: none;
}

    .topbar-btn:hover {
        background: var(--bg-hover);
        color: var(--text-primary);
    }

    .topbar-btn .notif-dot {
        position: absolute;
        top: 7px;
        right: 7px;
        width: 7px;
        height: 7px;
        background: var(--red);
        border-radius: 50%;
        border: 2px solid var(--bg-surface);
    }

/* ── Page content ──────────────────────────────────────────── */
.admin-content {
    flex: 1;
    padding: 28px 28px;
    max-width: 1600px;
}

.page-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: .3px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════════ */
.card-dark {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-dark-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-dark-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: .3px;
}

.card-dark-body {
    padding: 20px;
    background: white;
}

/* ── Stat cards ────────────────────────────────────────────── */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

    .stat-card:hover {
        border-color: rgba(255,255,255,0.12);
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        opacity: 0.06;
        transform: translate(20px,-20px);
    }

    .stat-card.gold::before {
        background: var(--gold);
    }

    .stat-card.emerald::before {
        background: var(--emerald);
    }

    .stat-card.blue::before {
        background: var(--blue);
    }

    .stat-card.purple::before {
        background: var(--purple);
    }

    .stat-card.red::before {
        background: var(--red);
    }

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

    .stat-icon.gold {
        background: rgba(255,193,7,0.12);
        color: var(--gold);
    }

    .stat-icon.emerald {
        background: rgba(63,185,80,0.12);
        color: var(--emerald);
    }

    .stat-icon.blue {
        background: rgba(88,166,255,0.12);
        color: var(--blue);
    }

    .stat-icon.purple {
        background: rgba(188,140,255,0.12);
        color: var(--purple);
    }

    .stat-icon.red {
        background: rgba(248,81,73,0.12);
        color: var(--red);
    }

    .stat-icon.orange {
        background: rgba(240,136,62,0.12);
        color: var(--orange);
    }

.stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.stat-change {
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .stat-change.up {
        color: var(--emerald);
    }

    .stat-change.down {
        color: var(--red);
    }

/* ══════════════════════════════════════════════════════════════
   TABLE
══════════════════════════════════════════════════════════════ */
.table-dark-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .table-dark-custom thead th {
        background: var(--bg-elevated);
        color: var(--text-muted);
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
    }

        .table-dark-custom thead th:first-child {
            border-radius: var(--radius) 0 0 0;
        }

        .table-dark-custom thead th:last-child {
            border-radius: 0 var(--radius) 0 0;
        }

    .table-dark-custom tbody tr {
        transition: var(--transition);
        border-bottom: 1px solid var(--border);
    }

        .table-dark-custom tbody tr:hover {
            background: var(--bg-hover);
        }

        .table-dark-custom tbody tr:last-child {
            border-bottom: none;
        }

    .table-dark-custom tbody td {
        padding: 13px 16px;
        color: var(--text-primary);
        font-size: 13.5px;
        vertical-align: middle;
    }

        .table-dark-custom tbody td.muted {
            color: var(--text-secondary);
        }

/* ══════════════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════════════ */
.badge-dark {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2px;
}

    .badge-dark.gold {
        background: rgba(255,193,7,0.15);
        color: var(--gold);
        border: 1px solid rgba(255,193,7,0.3);
    }

    .badge-dark.emerald {
        background: rgba(63,185,80,0.12);
        color: var(--emerald);
        border: 1px solid rgba(63,185,80,0.3);
    }

    .badge-dark.red {
        background: rgba(248,81,73,0.12);
        color: var(--red);
        border: 1px solid rgba(248,81,73,0.3);
    }

    .badge-dark.blue {
        background: rgba(88,166,255,0.12);
        color: var(--blue);
        border: 1px solid rgba(88,166,255,0.3);
    }

    .badge-dark.purple {
        background: rgba(188,140,255,0.12);
        color: var(--purple);
        border: 1px solid rgba(188,140,255,0.3);
    }

    .badge-dark.gray {
        background: rgba(139,148,158,0.12);
        color: var(--text-secondary);
        border: 1px solid var(--border);
    }

    .badge-dark.orange {
        background: rgba(240,136,62,0.12);
        color: var(--orange);
        border: 1px solid rgba(240,136,62,0.3);
    }

    .badge-dark i {
        font-size: 7px;
    }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.btn-gold {
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

    .btn-gold:hover {
        background: #ffca28;
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(255,193,7,0.3);
        color: #000;
    }

.btn-outline-dark-custom {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
}

    .btn-outline-dark-custom:hover {
        background: var(--bg-hover);
        border-color: rgba(255,255,255,0.15);
        color: var(--text-primary);
    }

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

    .btn-icon:hover {
        background: var(--bg-hover);
        color: var(--text-primary);
    }

    .btn-icon.danger:hover {
        background: rgba(248,81,73,0.12);
        color: var(--red);
        border-color: rgba(248,81,73,0.3);
    }

    .btn-icon.success:hover {
        background: rgba(63,185,80,0.12);
        color: var(--emerald);
        border-color: rgba(63,185,80,0.3);
    }

/* ══════════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════════ */
.form-dark {
    padding: 9px 13px;
    font-family: 'DM Sans', sans-serif;
    width: 100%;
}
.card-dark-header{
    background: black;
}

.form-dark:focus {
    outline: none;
    border-color: var(--border-active);
    box-shadow: 0 0 0 3px rgba(255,193,7,0.1);
}

    .form-dark::placeholder {
        color: var(--text-muted);
    }

    .form-dark option {
        background: var(--bg-elevated);
    }

.form-label-dark {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: .3px;
}

/* ══════════════════════════════════════════════════════════════
   AVATAR
══════════════════════════════════════════════════════════════ */
    .avatar {
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }

    .avatar-placeholder {
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Rajdhani', sans-serif;
        font-weight: 700;
        flex-shrink: 0;
        color: #000;
    }

    .avatar-sm {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .avatar-md {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    /* ══════════════════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════════════════ */
    .alert-dark {
        padding: 12px 16px;
        border-radius: var(--radius);
        font-size: 13px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        border: 1px solid;
    }

        .alert-dark.success {
            background: rgba(63,185,80,0.08);
            border-color: rgba(63,185,80,0.25);
            color: var(--emerald);
        }

        .alert-dark.danger {
            background: rgba(248,81,73,0.08);
            border-color: rgba(248,81,73,0.25);
            color: var(--red);
        }

        .alert-dark.warning {
            background: rgba(255,193,7,0.08);
            border-color: rgba(255,193,7,0.25);
            color: var(--gold);
        }

        .alert-dark.info {
            background: rgba(88,166,255,0.08);
            border-color: rgba(88,166,255,0.25);
            color: var(--blue);
        }
    /* ══════════════════════════════════════════════════════════════
   MINI CHART BAR (pure CSS)
══════════════════════════════════════════════════════════════ */
    .sparkbar {
        display: flex;
        align-items: flex-end;
        gap: 3px;
        height: 40px;
    }

    .sparkbar-col {
        flex: 1;
        background: var(--gold-dim);
        border-radius: 3px 3px 0 0;
        transition: var(--transition);
    }

        .sparkbar-col:hover {
            background: rgba(255,193,7,0.4);
        }
    /* ══════════════════════════════════════════════════════════════
   PROGRESS
══════════════════════════════════════════════════════════════ */
    .progress-dark {
        height: 5px;
        background: var(--bg-elevated);
        border-radius: 10px;
        overflow: hidden;
    }

    .progress-dark-bar {
        height: 100%;
        border-radius: 10px;
        background: var(--gold);
        transition: width .6s ease;
    }

        .progress-dark-bar.emerald {
            background: var(--emerald);
        }

        .progress-dark-bar.blue {
            background: var(--blue);
        }

        .progress-dark-bar.red {
            background: var(--red);
        }
    /* ══════════════════════════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════════════════════════ */
    .divider-dark {
        border: none;
        border-top: 1px solid var(--border);
        margin: 16px 0;
    }
    /* ══════════════════════════════════════════════════════════════
   ONLINE DOT
══════════════════════════════════════════════════════════════ */
    .online-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--emerald);
        box-shadow: 0 0 0 2px rgba(63,185,80,0.25);
        flex-shrink: 0;
    }

    .offline-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--text-muted);
        flex-shrink: 0;
    }
    /* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
    @media (max-width: 1024px) {
        .admin-sidebar {
            transform: translateX(-100%);
        }

            .admin-sidebar.mobile-open {
                transform: translateX(0);
            }

        .admin-main {
            margin-left: 0 !important;
        }

        .topbar-search {
            width: 180px;
        }
    }

    @media (max-width: 768px) {
        .admin-content {
            padding: 16px;
        }

        .topbar-search {
            display: none;
        }

        .topbar-breadcrumb {
            display: none;
        }
    }
    /* ══════════════════════════════════════════════════════════════
   SIDEBAR COLLAPSED STATE
══════════════════════════════════════════════════════════════ */
    .admin-sidebar.collapsed .sidebar-brand-text,
    .admin-sidebar.collapsed .nav-group-label,
    .admin-sidebar.collapsed .nav-item span,
    .admin-sidebar.collapsed .nav-item .nav-badge,
    .admin-sidebar.collapsed .user-info,
    .admin-sidebar.collapsed .sidebar-footer .btn-outline-dark-custom span {
        display: none;
    }

    .admin-sidebar.collapsed .nav-item {
        justify-content: center;
        padding: 9px 0;
        margin: 1px 8px;
    }

        .admin-sidebar.collapsed .nav-item i {
            width: auto;
        }

    .admin-sidebar.collapsed .user-card {
        justify-content: center;
    }

    .admin-sidebar.collapsed .sidebar-brand {
        justify-content: center;
        padding: 0;
    }
    /* ══════════════════════════════════════════════════════════════
   PAGE ENTRY ANIMATION
══════════════════════════════════════════════════════════════ */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .animate-in {
        animation: fadeUp .3s ease forwards;
    }

    .animate-in-delay-1 {
        animation: fadeUp .3s .05s ease both;
    }

    .animate-in-delay-2 {
        animation: fadeUp .3s .1s ease both;
    }

    .animate-in-delay-3 {
        animation: fadeUp .3s .15s ease both;
    }

    .animate-in-delay-4 {
        animation: fadeUp .3s .2s ease both;
    }
    /* ══════════════════════════════════════════════════════════════
   SIDEBAR STYLING
══════════════════════════════════════════════════════════════ */
    .sidebar {
        width: 260px;
        min-width: 260px;
        height: 100vh;
        display: flex;
        flex-direction: column;
        background: #1a1a2e;
    }

    .sidebar-brand {
        white-space: nowrap;
        flex-shrink: 0;
        background: #1a1a2e;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        background: linear-gradient(135deg, #ffc107, #ffdb4d);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-nav {
        flex: 1;
    }

    .nav-section-title {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: rgba(255,255,255,0.4);
    }

    .nav-link {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        margin: 2px 0;
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        font-size: 14px;
        transition: all 0.2s;
    }

        .nav-link:hover {
            background: rgba(255,255,255,0.1);
            color: #fff;
        }

        .nav-link.active {
            background: rgba(255,193,7,0.15);
            color: #ffc107;
        }

        .nav-link i {
            width: 20px;
            text-align: center;
        }

    .sidebar-footer {
        flex-shrink: 0;
        background: #1a1a2e;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        background: linear-gradient(135deg, #ffc107, #ffdb4d);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: #1a1a2e;
        font-size: 14px;
    }

    .user-avatar-sm {
        width: 24px;
        height: 24px;
        min-width: 24px;
        background: linear-gradient(135deg, #ffc107, #ffdb4d);
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: #1a1a2e;
        font-size: 11px;
    }
    /* Avatar */
    .avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
        background: linear-gradient(135deg, #ffc107, #ffdb4d);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: #1a1a2e;
        font-size: 16px;
    }
    /* Stat Card */
    .stat-card {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: all 0.3s;
    }

        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        }

    .stat-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    .stat-value {
        font-size: 24px;
        font-weight: 700;
        color: #1a1a2e;
    }

    .stat-label {
        font-size: 13px;
        color: #6c757d;
    }
    /* Card Styles */
    .card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .card-header {
        border-bottom: 1px solid #f0f0f0;
    }
    /* Table Styles */
    .table thead th {
        background: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 0.5px;
        color: #495057;
    }

    .table tbody td {
        vertical-align: middle;
        padding: 12px;
    }

    .table-hover tbody tr:hover {
        background: #f8f9fa;
    }
    /* Badge Styles */
    .badge {
        padding: 5px 10px;
        font-weight: 500;
    }
    /* Dropdown Menu */
    .dropdown-menu {
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border: 1px solid #eee;
    }

    .dropdown-item {
        padding: 8px 16px;
    }
    /* List Group */
    .list-group-item {
        border-bottom: 1px solid #f0f0f0 !important;
    }
    /* Button Styles */
    .btn {
        border-radius: 8px;
        font-weight: 500;
        padding: 8px 16px;
    }

    .btn-sm {
        padding: 5px 12px;
        font-size: 13px;
    }

    .btn-success {
        background-color: #28a745;
        border-color: #28a745;
    }

    .btn-outline-primary {
        color: #0d6efd;
        border-color: #0d6efd;
    }

        .btn-outline-primary:hover {
            background-color: #0d6efd;
            color: white;
        }

    .btn-outline-success {
        color: #28a745;
        border-color: #28a745;
    }

        .btn-outline-success:hover {
            background-color: #28a745;
            color: white;
        }

    .btn-outline-warning {
        color: #ffc107;
        border-color: #ffc107;
    }

        .btn-outline-warning:hover {
            background-color: #ffc107;
            color: #1a1a2e;
        }
    /* Form Controls */
    .form-control {
        border-radius: 8px;
        border: 1px solid #ced4da;
        padding: 10px 14px;
    }

        .form-control:focus {
            border-color: #ffc107;
            box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.15);
        }
    /* Navbar */
    .navbar {
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    /* Responsive */
    @media (max-width: 991px) {
        .sidebar {
            position: fixed;
            left: -260px;
            transition: left 0.3s;
            z-index: 1000;
        }

            .sidebar.show {
                left: 0;
            }
    }

    @media (max-width: 767px) {
        .stat-card {
            padding: 15px;
        }

        .stat-value {
            font-size: 20px;
        }

        .stat-icon {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
    }
    /* Category Icon */
    .category-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        background: rgba(255,193,7,0.1);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #ffc107;
    }
    /* Modal Styles */
    .modal-content {
        border-radius: 12px;
        border: none;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }

    .modal-header {
        border-bottom: 1px solid #eee;
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        border-top: 1px solid #eee;
        padding: 15px 20px;
    }

    .modal-title {
        font-weight: 600;
    }
    /* Form Check */
    .form-check-input:checked {
        background-color: #ffc107;
        border-color: #ffc107;
    }

    .form-check-input:focus {
        border-color: #ffc107;
        box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.25);
    }
    /* ══════════════════════════════════════════════════════════════
   ADMIN LAYOUT - Modern Sidebar
══════════════════════════════════════════════════════════════ */
    .admin-wrapper {
        display: flex;
        min-height: 100vh;
    }

    .admin-sidebar {
        width: 260px;
        background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
        border-right: 1px solid rgba(255,255,255,0.05);
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        overflow-y: auto;
        z-index: 1000;
    }

    .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-decoration: none;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #ffc107, #ffdb4d);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #1a1a2e;
        box-shadow: 0 4px 15px rgba(255,193,7,0.3);
    }

    .brand-text {
        font-size: 20px;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.5px;
    }

    .sidebar-nav {
        flex: 1;
        padding: 15px 0;
    }

    .nav-section {
        margin-bottom: 10px;
    }

    .nav-section-title {
        display: block;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: rgba(255,255,255,0.3);
        padding: 10px 20px 8px;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        color: rgba(255,255,255,0.6);
        text-decoration: none;
        font-size: 14px;
        transition: all 0.2s;
        border-left: 3px solid transparent;
    }

        .nav-link:hover {
            background: rgba(255,255,255,0.05);
            color: #fff;
        }

        .nav-link.active {
            background: rgba(255,193,7,0.1);
            color: #ffc107;
            border-left-color: #ffc107;
        }

        .nav-link i {
            width: 20px;
            text-align: center;
        }

    .sidebar-footer {
        padding: 15px;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    .user-profile {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px;
        background: rgba(255,255,255,0.03);
        border-radius: 12px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #ffc107, #ffdb4d);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: #1a1a2e;
        font-size: 16px;
    }

    .user-details {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .user-name {
        font-weight: 600;
        color: #fff;
        font-size: 14px;
    }

    .user-role {
        font-size: 12px;
        color: rgba(255,255,255,0.4);
    }

    .logout-btn {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        color: rgba(255,255,255,0.4);
        transition: all 0.2s;
    }

        .logout-btn:hover {
            background: rgba(248,81,73,0.1);
            color: #f85149;
        }
    /* Admin Main */
    .admin-main {
        flex: 1;
        margin-left: 260px;
        min-height: 100vh;
        background: #0d1117;
    }

    .admin-header {
        height: 64px;
        background: rgba(22,33,62,0.8);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 30px;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .page-title {
        font-size: 18px;
        font-weight: 600;
        color: #fff;
        margin: 0;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .search-box {
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 10px;
        padding: 8px 15px;
    }

        .search-box i {
            color: rgba(255,255,255,0.4);
        }

        .search-box input {
            background: transparent;
            border: none;
            outline: none;
            color: #fff;
            font-size: 14px;
            width: 200px;
        }

            .search-box input::placeholder {
                color: rgba(255,255,255,0.3);
            }

    .icon-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        color: rgba(255,255,255,0.6);
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
    }

        .icon-btn:hover {
            background: rgba(255,255,255,0.05);
            color: #fff;
        }

    .notification-dot {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 8px;
        height: 8px;
        background: #f85149;
        border-radius: 50%;
    }

    .admin-content {
        padding: 30px;
    }
    /* ══════════════════════════════════════════════════════════════
   FRONTEND LAYOUT - Modern Navbar
══════════════════════════════════════════════════════════════ */
    .frontend-wrapper {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .frontend-content {
        flex: 1;
    }

    .frontend-footer {
        margin-top: auto;
    }
    /* Frontend Navbar */
    .navbar-dark {
        background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%) !important;
        box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    }

    .navbar .brand-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .navbar .nav-link {
        padding: 8px 16px;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.2s;
    }

        .navbar .nav-link:hover,
        .navbar .nav-link.active {
            background: rgba(255,193,7,0.1);
            color: #ffc107 !important;
        }

    .user-avatar-sm {
        width: 28px;
        height: 28px;
        background: linear-gradient(135deg, #ffc107, #ffdb4d);
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: #1a1a2e;
        font-size: 12px;
    }
    /* Dropdown Enhancements */
    .dropdown-menu {
        background: #1a1a2e;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        padding: 10px;
    }

    .dropdown-item {
        color: rgba(255,255,255,0.8);
        border-radius: 8px;
        padding: 10px 15px;
        transition: all 0.2s;
    }

        .dropdown-item:hover {
            background: rgba(255,193,7,0.1);
            color: #ffc107;
        }

        .dropdown-item.text-danger {
            color: #f85149 !important;
        }

            .dropdown-item.text-danger:hover {
                background: rgba(248,81,73,0.1);
            }
    /* Card Enhancements */
    .card {
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 16px;
    }

    .card-header {
        background: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 20px;
    }

    .card-body {
        padding: 20px;
    }
    /* Stat Cards */
    .stat-card {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 16px;
        padding: 24px;
        transition: all 0.3s;
    }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .stat-card .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-bottom: 15px;
        }

        .stat-card .stat-value {
            font-size: 28px;
            font-weight: 700;
            color: #fff;
        }

        .stat-card .stat-label {
            font-size: 14px;
            color: rgba(255,255,255,0.5);
        }
    /* Table Enhancements */
    .table {
        color: rgba(255,255,255,0.8);
    }

        .table thead th {
            background: rgba(255,255,255,0.02);
            border-bottom: 1px solid rgba(255,255,255,0.05);
            color: rgba(255,255,255,0.5);
            font-weight: 600;
            text-transform: uppercase;
            font-size: 12px;
            letter-spacing: 1px;
            padding: 15px;
        }

        .table tbody td {
            border-bottom: 1px solid rgba(255,255,255,0.03);
            padding: 15px;
            vertical-align: middle;
        }

        .table tbody tr:hover {
            background: rgba(255,255,255,0.02);
        }
    /* Badge Enhancements */
    .badge {
        padding: 6px 12px;
        border-radius: 20px;
        font-weight: 500;
        font-size: 12px;
    }
    /* Button Enhancements */
    .btn-warning {
        background: linear-gradient(135deg, #ffc107, #ffdb4d);
        border: none;
        color: #1a1a2e;
        font-weight: 600;
        border-radius: 10px;
        padding: 10px 20px;
        transition: all 0.2s;
    }

        .btn-warning:hover {
            background: linear-gradient(135deg, #ffdb4d, #ffc107);
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(255,193,7,0.3);
        }

    .btn-outline-light {
        border: 1px solid rgba(255,255,255,0.2);
        color: #fff;
        border-radius: 10px;
        padding: 10px 20px;
        transition: all 0.2s;
    }

        .btn-outline-light:hover {
            background: rgba(255,255,255,0.1);
            border-color: rgba(255,255,255,0.3);
            color: #fff;
        }

    .page-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 30px;
    }

        .page-header h2 {
            color: #fff;
            font-weight: 700;
            margin: 0;
        }
    /* Responsive */
    @media (max-width: 991px) {
        .admin-sidebar {
            transform: translateX(-100%);
            transition: transform 0.3s;
        }

            .admin-sidebar.show {
                transform: translateX(0);
            }

        .admin-main {
            margin-left: 0;
        }
    }
