@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@500;700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #06080d;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-solid: #0d121f;
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-purple: #a855f7;
    --accent-indigo: #818cf8;
    --accent-pink: #f472b6;
    --accent-cyan: #22d3ee;
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --border: rgba(255, 255, 255, 0.12);
    --border-bright: rgba(255, 255, 255, 0.25);
    --border-accent: rgba(168, 85, 247, 0.4);
    --sidebar-width: 270px;
    --header-height: 70px;
    --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    --glass-glow: 0 0 25px rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(129, 140, 248, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #06080d;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a855f7 0%, #818cf8 100%);
    border-radius: 4px;
}

/* ==========================================
   1. TOP NAVIGATION HEADER
   ========================================== */
.admin-top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(13, 18, 31, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-bright);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1050;
    box-shadow: 0 4px 25px rgba(0,0,0,0.4);
}

.top-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-bright);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

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

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.brand-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 9.5px;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7 0%, #818cf8 100%);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quick-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-bright);
    padding: 6px 16px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #f472b6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(244, 114, 182, 0.5);
}

/* ==========================================
   2. SIDEBAR DRAWER (TOGGLEABLE OPTIONS MENU)
   ========================================== */
.admin-sidebar-drawer {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: rgba(10, 14, 24, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border-bright);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.6);
}

body.sidebar-closed .admin-sidebar-drawer {
    transform: translateX(-100%);
}

.sidebar-overlay-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1030;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.sidebar-open .sidebar-overlay-backdrop {
    display: block;
    opacity: 1;
}

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

.sidebar-section-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 14px 6px 14px;
}

.sidebar-menu-item {
    margin-bottom: 6px;
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.sidebar-menu-item a i {
    font-size: 16px;
    width: 22px;
    text-align: center;
    transition: transform 0.25s ease;
}

.sidebar-menu-item:hover a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-bright);
    transform: translateX(4px);
}

.sidebar-menu-item:hover a i {
    color: var(--accent-purple);
    transform: scale(1.15);
}

.sidebar-menu-item.active a {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 1px solid var(--border-bright);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
}

.sidebar-menu-item.active a i {
    color: #ffffff;
}

/* ==========================================
   3. MAIN CONTENT CONTAINER & WHITE GLASS CARDS
   ========================================== */
.admin-main-container {
    margin-top: var(--header-height);
    margin-left: var(--sidebar-width);
    padding: 30px 32px;
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-closed .admin-main-container {
    margin-left: 0;
}

/* WHITE CRYSTAL GLASS CARDS (DARK MODE HIGH-CONTRAST) */
.glass-card-white, .glass-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: var(--glass-shadow), var(--glass-glow);
    transition: all 0.3s ease;
}

.glass-card-white:hover, .glass-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.08);
}

.glass-card-header {
    padding: 20px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
}

.glass-card-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}

.glass-card-body {
    padding: 26px;
}

/* ==========================================
   4. DASHBOARD STAT CARDS
   ========================================== */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 22px 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glass-shadow);
}

.hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.hero-stat-card.purple::before { background: linear-gradient(90deg, #a855f7, #f472b6); }
.hero-stat-card.blue::before { background: linear-gradient(90deg, #818cf8, #22d3ee); }
.hero-stat-card.emerald::before { background: linear-gradient(90deg, #34d399, #10b981); }
.hero-stat-card.amber::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }

.hero-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 255, 255, 0.1);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat-title {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.stat-icon-wrapper.purple { background: rgba(168, 85, 247, 0.18); color: #f472b6; border: 1px solid rgba(168, 85, 247, 0.35); }
.stat-icon-wrapper.blue { background: rgba(129, 140, 248, 0.18); color: #22d3ee; border: 1px solid rgba(129, 140, 248, 0.35); }
.stat-icon-wrapper.emerald { background: rgba(52, 211, 153, 0.18); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.35); }
.stat-icon-wrapper.amber { background: rgba(251, 191, 36, 0.18); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.35); }

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 25px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.stat-footer-text {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* ==========================================
   5. TABLES & FORM INPUTS
   ========================================== */
.custom-table-wrapper {
    overflow-x: auto;
}

.custom-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-admin-table th {
    background: rgba(0, 0, 0, 0.35);
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.custom-admin-table td {
    padding: 16px 20px;
    color: var(--text-primary);
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* Form Controls */
.form-label-custom {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.input-custom {
    width: 100%;
    padding: 13px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.input-custom:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 15px rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.6);
}

/* Buttons */
.btn-action {
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-approve {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-reject {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #a855f7 0%, #818cf8 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.4);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.6);
}

/* Badges */
.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending { background: rgba(251, 191, 36, 0.18); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.35); }
.badge-success { background: rgba(52, 211, 153, 0.18); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.35); }
.badge-rejected { background: rgba(248, 113, 113, 0.18); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.35); }

/* Responsive Breakpoints */
@media (max-width: 1100px) {
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-main-container {
        padding: 20px 16px;
        margin-left: 0 !important;
    }
    
    .hero-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar-drawer {
        transform: translateX(-100%);
    }

    body.sidebar-open .admin-sidebar-drawer {
        transform: translateX(0);
    }
}
