/* ========================================
   ADMIN DASHBOARD CSS - PERFECT CONTAINER SYSTEM
   Primary Colors: Blue (#1E4D8C) & Gold (#D4AF37)
   ======================================== */

/* ---------- CSS VARIABLES (Blue & Gold Theme) ---------- */
:root {
    /* Blue Palette */
    --blue-deep: #0F2942;
    --blue-primary: #1E4D8C;
    --blue-light: #2E6AB0;
    --blue-bg-light: rgba(30, 77, 140, 0.08);
    
    /* Gold Palette */
    --gold-primary: #D4AF37;
    --gold-light: #FFD700;
    --gold-dark: #B8941F;
    --gold-bg-light: rgba(212, 175, 55, 0.12);
    
    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Semantic Colors */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    /* Spacing - Perfect Container Harmony */
    --spacing-xs: 0.25rem;     /* 4px */
    --spacing-sm: 0.5rem;      /* 8px */
    --spacing-md: 1rem;        /* 16px */
    --spacing-lg: 1.5rem;      /* 24px */
    --spacing-xl: 2rem;        /* 32px */
    --spacing-2xl: 3rem;       /* 48px */
    --spacing-3xl: 4rem;       /* 64px */
    
    /* Container Max Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Border Radius - Consistent Curve Language */
    --radius-sm: 0.375rem;     /* 6px */
    --radius-md: 0.5rem;       /* 8px */
    --radius-lg: 0.75rem;      /* 12px */
    --radius-xl: 1rem;         /* 16px */
    --radius-2xl: 1.5rem;      /* 24px */
    --radius-full: 9999px;
    
    /* Shadows - Depth Hierarchy */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.25);
    --shadow-blue: 0 4px 15px rgba(30, 77, 140, 0.2);
    
    /* Transitions - Smooth & Elegant */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Indices */
    --z-sticky: 100;
    --z-fixed: 200;
    --z-modal: 300;
    --z-toast: 400;
    --z-tooltip: 500;
}

/* ---------- GLOBAL RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Perfect Container System - All Containers Beautifully Placed */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-2xl {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }
.container-2xl { max-width: var(--container-2xl); }
.container-fluid { max-width: 100%; }

/* Responsive Container Padding */
@media (max-width: 768px) {
    .container,
    .container-fluid,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-2xl {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .container,
    .container-fluid,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-2xl {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
}

/* ---------- GLOBAL ANIMATIONS ---------- */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- ADMIN LOGIN PAGE - PERFECT CENTERING ---------- */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-deep) 40%, var(--gold-primary) 60%, var(--blue-primary) 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-lg);
}

.admin-login-page::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: scaleIn 0.5s ease;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
    box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.login-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.login-logo {
    display: inline-block;
    margin-bottom: var(--spacing-md);
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.login-header h1 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue-primary), var(--gold-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.login-form .form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.login-form label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.login-form label i {
    margin-right: var(--spacing-sm);
    color: var(--gold-primary);
}

.login-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    background: var(--gray-50);
}

.login-form input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--gold-bg-light);
}

.password-toggle {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: var(--gold-bg-light);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    color: var(--gold-primary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.password-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
}

.login-form .btn-primary {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-gold);
}

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    filter: brightness(1.05);
}

/* ---------- ADMIN DASHBOARD LAYOUT - PERFECT STRUCTURE ---------- */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

/* ---------- SIDEBAR - ELEGANT NAVIGATION ---------- */
.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--gray-800) 0%, var(--gray-900) 100%);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: var(--z-fixed);
    transition: transform var(--transition-base);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
    padding: var(--spacing-xl) var(--spacing-lg);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.02));
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.brand-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-xs);
}

.sidebar-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: var(--spacing-lg) 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: var(--spacing-xs);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
    font-weight: 500;
}

.sidebar-nav a:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), transparent);
    color: var(--white);
    border-left-color: var(--gold-primary);
}

.sidebar-nav li.active a {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.25), transparent);
    color: var(--white);
    border-left-color: var(--gold-primary);
    font-weight: 600;
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: var(--gray-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.user-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.875rem;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.logout-btn {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    background: rgba(212, 175, 55, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logout-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ---------- MAIN CONTENT - PERFECT SPACING ---------- */
.admin-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
}

.admin-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1.25rem;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.admin-search {
    position: relative;
}

.admin-search input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    width: 250px;
    background: var(--gray-50);
    transition: all var(--transition-base);
}

.admin-search input:focus {
    outline: none;
    border-color: var(--gold-primary);
    width: 300px;
    box-shadow: var(--shadow-gold);
}

.admin-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.admin-content {
    padding: var(--spacing-xl);
}

/* ---------- PERFECT CARD SYSTEM ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-primary), var(--gold-primary), var(--blue-primary));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--blue-bg-light), var(--gold-bg-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.75rem;
    color: var(--blue-primary);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-primary);
    line-height: 1.2;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.stat-change {
    font-size: 0.75rem;
    margin-top: var(--spacing-xs);
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--error);
}

/* ---------- PERFECT DATA TABLE CONTAINER ---------- */
.data-table-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.table-header h3 {
    margin: 0;
    color: var(--blue-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
    color: var(--white);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.05);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-600), var(--gray-700));
    color: var(--white);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.data-table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th {
    background: var(--gray-50);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    font-size: 0.875rem;
}

.data-table tbody tr {
    transition: all var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--gold-bg-light);
}

/* ---------- PERFECT STATUS BADGES ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.status-badge.approved { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-badge.pending { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-badge.completed { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.status-badge.cancelled { background: rgba(239, 68, 68, 0.1); color: var(--error); }
.status-badge.active { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-badge.inactive { background: rgba(100, 116, 139, 0.1); color: var(--gray-600); }

/* ---------- PERFECT ACTION BUTTONS ---------- */
.action-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

.action-btn:hover {
    background: var(--gold-bg-light);
    color: var(--gold-primary);
    transform: scale(1.1);
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* ---------- PERFECT MODAL SYSTEM ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: slideIn var(--transition-base);
}

.modal-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    color: var(--blue-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--error);
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

/* ---------- PERFECT FORM STYLES ---------- */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-group label i {
    margin-right: var(--spacing-sm);
    color: var(--gold-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    background: var(--gray-50);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--gold-bg-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

/* ---------- PERFECT TOAST NOTIFICATIONS ---------- */
.toast-container {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.toast {
    background: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--gold-primary);
    animation: slideInRight var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 300px;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

.toast-icon {
    font-size: 1.25rem;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
}

/* ---------- PERFECT PAGE HEADER ---------- */
.page-header {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 50%, var(--blue-primary) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.page-header-content h2 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    margin: var(--spacing-xs) 0 0;
}

/* ---------- PERFECT FILTER CONTROLS ---------- */
.filter-controls {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    flex-wrap: wrap;
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px var(--gold-bg-light);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px var(--gold-bg-light);
}

/* ---------- PERFECT PAGINATION ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.pagination-btn:hover {
    background: var(--gold-bg-light);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
    color: var(--white);
    border-color: var(--blue-primary);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- PERFECT EMPTY STATES ---------- */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
    color: var(--gray-700);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    color: var(--gray-600);
    max-width: 400px;
    margin: 0 auto;
}

/* ---------- PERFECT LOADING STATES ---------- */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ---------- PERFECT RESPONSIVE DESIGN ---------- */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        z-index: var(--z-modal);
        height: 100vh;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .admin-header {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .admin-content {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .admin-search input {
        width: 100%;
    }
    
    .admin-search input:focus {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .stat-card {
        padding: var(--spacing-md);
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .page-header {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
    }
    
    .page-header-content h2 {
        font-size: 1.5rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box,
    .filter-select {
        width: 100%;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
        padding: var(--spacing-md);
    }
    
    .table-actions {
        justify-content: flex-start;
    }
    
    .modal {
        width: 95%;
        margin: var(--spacing-md);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--spacing-md);
    }
    
    .toast-container {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        left: var(--spacing-md);
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .sidebar-header {
        padding: var(--spacing-md);
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    .sidebar-nav a {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 0.875rem;
    }
    
    .user-info {
        padding: var(--spacing-sm);
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .admin-content {
        padding: var(--spacing-md);
    }
    
    .data-table th,
    .data-table td {
        padding: var(--spacing-sm);
        font-size: 0.75rem;
    }
    
    .action-group {
        gap: var(--spacing-xs);
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
    }
    
    .pagination {
        gap: var(--spacing-xs);
    }
    
    .pagination-btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .empty-state {
        padding: var(--spacing-xl);
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
}

/* ---------- PERFECT UTILITY CLASSES ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }
.gap-5 { gap: var(--spacing-xl); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ---------- SCROLLBAR STYLING ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* ---------- PRINT STYLES ---------- */
@media print {
    .admin-sidebar,
    .admin-header,
    .filter-controls,
    .pagination,
    .action-group,
    .modal-overlay,
    .toast-container {
        display: none !important;
    }
    
    .admin-main {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .admin-content {
        padding: 0 !important;
    }
    
    .stat-card,
    .data-table-container,
    .page-header {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
/* ---------- SETTINGS PAGE - PERFECT PROFILE SECTION ---------- */
.settings-container {
    max-width: var(--container-xl);
    margin: 0 auto;
}

.settings-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--spacing-xl);
}

.settings-sidebar {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    position: sticky;
    top: calc(var(--spacing-xl) + 60px);
    height: fit-content;
}

.settings-sidebar-header {
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
    color: var(--white);
    text-align: center;
}

.settings-sidebar-header .user-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.settings-sidebar-header h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.settings-sidebar-header p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.settings-nav {
    padding: var(--spacing-md) 0;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
    font-weight: 500;
}

.settings-nav-item:hover {
    background: var(--gold-bg-light);
    color: var(--gold-primary);
}

.settings-nav-item.active {
    background: var(--gold-bg-light);
    color: var(--gold-primary);
    border-left-color: var(--gold-primary);
}

.settings-nav-item i {
    width: 20px;
    text-align: center;
}

.settings-content-panel {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.settings-panel {
    display: none;
    animation: fadeIn var(--transition-base);
}

.settings-panel.active {
    display: block;
}

.settings-panel-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-50), var(--white));
}

.settings-panel-header h2 {
    font-size: 1.5rem;
    color: var(--blue-primary);
    margin-bottom: var(--spacing-xs);
}

.settings-panel-header p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.settings-panel-body {
    padding: var(--spacing-xl);
}

.profile-form-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.profile-image-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
}

.profile-image-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-primary);
}

.image-upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 60px 60px;
    padding: var(--spacing-xs);
    text-align: center;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.profile-image-container:hover .image-upload-overlay {
    transform: translateY(0);
}

.upload-btn {
    color: var(--white);
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.upload-btn:hover {
    color: var(--gold-primary);
}

.profile-info-text h4 {
    font-size: 1.125rem;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.profile-info-text p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Password Strength Meter */
.password-input-wrapper {
    position: relative;
}

.password-strength {
    margin-top: var(--spacing-sm);
}

.strength-meter {
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width var(--transition-base), background var(--transition-base);
}

.strength-bar.weak { background: var(--error); width: 25%; }
.strength-bar.fair { background: var(--warning); width: 50%; }
.strength-bar.good { background: var(--info); width: 75%; }
.strength-bar.strong { background: var(--success); width: 100%; }

.strength-text {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* Two Factor Authentication */
.twofa-section {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.twofa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.twofa-header h4 {
    font-size: 1rem;
    color: var(--gray-800);
}

.twofa-status {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.twofa-status.enabled {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.twofa-status.disabled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.twofa-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
}

/* Notification Settings */
.notification-group {
    margin-bottom: var(--spacing-xl);
}

.notification-group h4 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--gray-200);
}

.notification-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--gray-100);
}

.notification-option:last-child {
    border-bottom: none;
}

.notification-info h5 {
    font-size: 0.9375rem;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.notification-info p {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: var(--transition-base);
    border-radius: var(--radius-full);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: var(--transition-base);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-200);
}

/* ---------- REPORTS & ANALYTICS PAGE ---------- */
.reports-header {
    margin-bottom: var(--spacing-xl);
}

.date-range-picker {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.date-input {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.date-input label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.date-input input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.chart-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.chart-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header h3 {
    font-size: 1.125rem;
    color: var(--gray-800);
}

.chart-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.chart-body {
    padding: var(--spacing-lg);
    min-height: 300px;
}

.export-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-export {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-export:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* ---------- USER MANAGEMENT PAGE ---------- */
.user-list-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.user-filters {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.user-role-filter {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.role-filter-btn {
    padding: 0.375rem 1rem;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.role-filter-btn:hover,
.role-filter-btn.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--white);
}

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

.user-table th,
.user-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.user-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
}

.user-info-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--gray-800);
}

.user-email {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.role-badge.admin {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
    color: var(--white);
}

.role-badge.user {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* ---------- ACTIVITY LOGS PAGE ---------- */
.activity-timeline {
    position: relative;
    padding-left: var(--spacing-xl);
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold-primary), var(--blue-primary));
}

.activity-item {
    position: relative;
    padding-bottom: var(--spacing-xl);
    padding-left: var(--spacing-xl);
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold-primary);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--gold-primary);
}

.activity-date {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-xs);
}

.activity-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.activity-description {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.activity-icon {
    position: absolute;
    left: -24px;
    top: -2px;
    width: 32px;
    height: 32px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

/* ---------- DATABASE BACKUP PAGE ---------- */
.backup-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.backup-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.backup-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-primary);
}

.backup-stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: var(--spacing-xs);
}

.backup-list {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.backup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

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

.backup-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.backup-icon {
    width: 44px;
    height: 44px;
    background: var(--blue-bg-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.backup-icon i {
    font-size: 1.5rem;
    color: var(--blue-primary);
}

.backup-details h4 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.backup-details p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.backup-size {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.backup-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ---------- SYSTEM HEALTH PAGE ---------- */
.health-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.health-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.health-card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.health-card-header h3 {
    font-size: 1.125rem;
    color: var(--gray-800);
}

.health-status {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.health-status.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.health-status.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.health-status.offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.health-card-body {
    padding: var(--spacing-lg);
}

.metric-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-100);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.metric-value {
    font-weight: 600;
    color: var(--gray-800);
}

.progress-bar-container {
    background: var(--gray-200);
    border-radius: var(--radius-full);
    height: 8px;
    overflow: hidden;
    margin-top: var(--spacing-xs);
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.progress-bar-fill.success { background: var(--success); }
.progress-bar-fill.warning { background: var(--warning); }
.progress-bar-fill.danger { background: var(--error); }

/* ---------- RESPONSIVE FOR ADDITIONAL PAGES ---------- */
@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-sidebar {
        position: static;
        margin-bottom: var(--spacing-lg);
    }
    
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .health-status-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-image-section {
        flex-direction: column;
        text-align: center;
    }
    
    .backup-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .backup-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .user-filters {
        flex-direction: column;
    }
    
    .date-range-picker {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-input {
        justify-content: space-between;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .backup-info {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .backup-actions {
        justify-content: center;
    }
    
    .activity-item {
        padding-left: var(--spacing-md);
    }
    
    .activity-icon {
        display: none;
    }
}

/* ---------- DARK MODE SUPPORT (OPTIONAL) ---------- */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #1a1a2e;
        --gray-100: #16213e;
        --gray-200: #1f2a4a;
        --gray-300: #2a3a5c;
        --white: #0f0f1a;
    }
    
    /* Dark mode adjustments can be added here */
    .stat-card,
    .data-table-container,
    .settings-sidebar,
    .settings-content-panel,
    .chart-card,
    .user-list-container,
    .backup-list,
    .health-card {
        background: var(--gray-800);
        border-color: var(--gray-700);
    }
    
    .data-table td {
        color: var(--gray-300);
    }
    
    .data-table th {
        background: var(--gray-900);
        color: var(--gray-200);
    }
}

/* ---------- ACCESSIBILITY IMPROVEMENTS ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (forced-colors: active) {
    .stat-card,
    .data-table-container,
    .btn-primary,
    .status-badge {
        border: 1px solid CanvasText;
    }
}

/* ---------- PRINT OPTIMIZATION ---------- */
@media print {
    @page {
        margin: 2cm;
    }
    
    body {
        background: white;
    }
    
    .admin-sidebar,
    .admin-header,
    .filter-controls,
    .pagination,
    .action-group,
    .modal-overlay,
    .toast-container,
    .settings-sidebar,
    .chart-actions,
    .backup-actions {
        display: none !important;
    }
    
    .admin-main {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .admin-content {
        padding: 0 !important;
    }
    
    .stat-card,
    .data-table-container,
    .page-header,
    .chart-card,
    .health-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        background: white !important;
    }
    
    .page-header {
        background: var(--blue-primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .status-badge {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ---------- CUSTOMERS PAGE UNIQUE STYLING ---------- */
.customers-header {
    margin-bottom: var(--spacing-2xl);
}

.customers-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #fda085 100%);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3), 0 0 80px rgba(245, 87, 108, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.customers-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.btn-secondary-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    backdrop-filter: blur(10px);
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Customer Insights Section */
.insights-section {
    margin-bottom: var(--spacing-2xl);
}

.insights-header {
    margin-bottom: var(--spacing-xl);
}

.insights-header h2 {
    color: var(--gray-800);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.insights-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.insight-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-primary), var(--gold-primary));
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.insight-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.insight-card.total-customers .insight-icon {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
}

.insight-card.active-customers .insight-icon {
    background: linear-gradient(135deg, var(--success), #059669);
}

.insight-card.revenue .insight-icon {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
}

.insight-card.satisfaction .insight-icon {
    background: linear-gradient(135deg, var(--info), #0891b2);
}

.insight-data {
    flex: 1;
}

.insight-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.insight-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.insight-trend {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.insight-trend.positive {
    color: var(--success);
}

.insight-trend.stable {
    color: var(--gray-500);
}

.insight-trend.negative {
    color: var(--error);
}

/* Customer Directory */
.customers-directory {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.directory-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    background: linear-gradient(135deg, var(--gray-50), var(--white));
}

.header-info h2 {
    color: var(--gray-800);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.header-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.search-bar {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-bar input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    background: var(--white);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px var(--gold-bg-light);
}

.filter-options {
    display: flex;
    gap: var(--spacing-md);
}

.filter-dropdown {
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px var(--gold-bg-light);
}

/* Customers Table */
.customers-table-container {
    overflow-x: auto;
}

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

.customers-table th {
    background: var(--gray-50);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

.customers-table td {
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: middle;
}

.customers-table tr:hover td {
    background: var(--gold-bg-light);
}

/* Responsive Design for Customers Page */
@media (max-width: 1024px) {
    .customers-hero {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .directory-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .customers-hero {
        padding: var(--spacing-xl);
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary-gradient,
    .btn-secondary-outline {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- ANALYTICS PAGE UNIQUE STYLING ---------- */
.analytics-dashboard {
    margin-bottom: var(--spacing-2xl);
}

.analytics-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #fda085 100%);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3), 0 0 80px rgba(245, 87, 108, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.analytics-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.header-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.header-text h1 {
    color: var(--white);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    max-width: 500px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.date-range-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.date-input {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    color: var(--white);
    font-size: 0.875rem;
}

.date-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

.date-separator {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.export-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* KPI Section */
.kpi-section {
    margin-bottom: var(--spacing-2xl);
}

.kpi-header {
    margin-bottom: var(--spacing-xl);
}

.kpi-header h2 {
    color: var(--gray-800);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.kpi-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.kpi-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.kpi-card.revenue-kpi::before {
    background: linear-gradient(90deg, var(--success), #10b981);
}

.kpi-card.customers-kpi::before {
    background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
}

.kpi-card.packages-kpi::before {
    background: linear-gradient(90deg, var(--warning), #f59e0b);
}

.kpi-card.installations-kpi::before {
    background: linear-gradient(90deg, var(--info), #3b82f6);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.kpi-header-info {
    margin-bottom: var(--spacing-lg);
}

.kpi-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.kpi-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
}

.kpi-chart {
    height: 60px;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.mini-chart {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.mini-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(135deg, var(--blue-primary), var(--gold-primary));
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    font-weight: 600;
}

.kpi-trend.upward {
    color: var(--success);
}

.kpi-trend.downward {
    color: var(--error);
}

.kpi-trend.stable {
    color: var(--gray-500);
}

/* Analytics Reports */
.analytics-reports {
    margin-bottom: var(--spacing-2xl);
}

.reports-header {
    margin-bottom: var(--spacing-xl);
}

.reports-header h2 {
    color: var(--gray-800);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.reports-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-xl);
}

.report-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-base);
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.report-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
}

.report-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
}

.report-title i {
    color: var(--blue-primary);
    font-size: 1.25rem;
}

.report-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.report-action-btn {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-base);
}

.report-action-btn:hover {
    background: var(--gold-bg-light);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.period-selector {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.875rem;
    cursor: pointer;
}

.report-content {
    padding: var(--spacing-lg);
}

.report-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.summary-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.summary-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xs);
}

.summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-primary);
}

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

.analytics-table th {
    background: var(--gray-50);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-200);
}

.analytics-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-size: 0.875rem;
}

.analytics-table tr:hover td {
    background: var(--gold-bg-light);
}

.growth-chart-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--blue-bg-light), var(--gray-50));
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: var(--gray-600);
}

.growth-chart-placeholder i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--blue-primary);
}

.growth-chart-placeholder div {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.growth-chart-placeholder p {
    font-size: 0.875rem;
    text-align: center;
    max-width: 300px;
}

.growth-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.metric {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Responsive Design for Analytics Page */
@media (max-width: 1024px) {
    .analytics-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 2rem;
    }
    
    .kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .analytics-header {
        padding: var(--spacing-xl);
    }
    
    .header-controls {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-md);
    }
    
    .date-range-selector {
        justify-content: center;
    }
    
    .export-btn {
        width: 100%;
        justify-content: center;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .report-summary {
        grid-template-columns: 1fr;
    }
    
    .growth-metrics {
        grid-template-columns: 1fr;
    }
}

/* ---------- ENHANCED PACKAGES PAGE STYLING ---------- */
.package-hub {
    margin-bottom: var(--spacing-2xl);
}

.hub-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #fda085 100%);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3), 0 0 80px rgba(245, 87, 108, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hub-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

.hub-intro {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.intro-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.intro-text h1 {
    color: var(--white);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.intro-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    max-width: 500px;
}

.hub-actions {
    display: flex;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.create-package-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    backdrop-filter: blur(10px);
}

.create-package-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.bulk-actions-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.bulk-actions-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Categories Overview */
.categories-overview {
    margin-bottom: var(--spacing-2xl);
}

.categories-header {
    margin-bottom: var(--spacing-xl);
}

.categories-header h2 {
    color: var(--gray-800);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.categories-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.category-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.category-card.home-packages::before {
    background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
}

.category-card.business-packages::before {
    background: linear-gradient(90deg, var(--success), #10b981);
}

.category-card.enterprise-packages::before {
    background: linear-gradient(90deg, var(--warning), #f59e0b);
}

.category-card.total-stats::before {
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-dark));
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.category-card.home-packages .category-icon {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
}

.category-card.business-packages .category-icon {
    background: linear-gradient(135deg, var(--success), #10b981);
}

.category-card.enterprise-packages .category-icon {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
}

.category-card.total-stats .category-icon {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.category-count {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue-primary);
    margin-bottom: var(--spacing-xs);
}

.category-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.category-stats {
    text-align: center;
}

.stat-item .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    font-weight: 600;
}

/* Package Inventory */
.package-inventory {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 120px rgba(102, 126, 234, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
}

.inventory-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-50), var(--white));
}

.header-info {
    margin-bottom: var(--spacing-lg);
}

.header-info h2 {
    color: var(--gray-800);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.header-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.search-section {
    flex: 1;
    min-width: 300px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    background: var(--white);
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px var(--gold-bg-light);
}

.filter-section {
    display: flex;
    gap: var(--spacing-md);
}

.category-filter,
.status-filter {
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.category-filter:focus,
.status-filter:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px var(--gold-bg-light);
}

/* Inventory Table */
.inventory-table-container {
    overflow-x: auto;
}

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

.inventory-table th {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecf4 100%);
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 700;
    color: var(--gray-800);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--gold-primary);
    position: relative;
    z-index: 1;
}

.inventory-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--gray-700);
    vertical-align: middle;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.inventory-table tr:hover td {
    background: var(--gold-bg-light);
}

/* Responsive Design for Packages Page */
@media (max-width: 1024px) {
    .hub-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .hub-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .intro-text h1 {
        font-size: 2rem;
    }
    
    .category-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .header-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-section {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .hub-header {
        padding: var(--spacing-xl);
    }
    
    .intro-text h1 {
        font-size: 1.75rem;
    }
    
    .hub-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .create-package-btn,
    .bulk-actions-btn {
        width: 100%;
        justify-content: center;
    }
    
    .category-cards {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        flex-direction: column;
    }
}

/* ---------- REQUESTS PAGE UNIQUE STYLING ---------- */
.requests-command-center {
    margin-bottom: var(--spacing-2xl);
}

.command-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 25%, #43e97b 50%, #38f9d7 75%, #4facfe 100%);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.3), 0 0 80px rgba(67, 233, 123, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.command-header::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
}

.command-intro {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.intro-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.intro-badge i {
    font-size: 1.25rem;
}

.intro-text h1 {
    color: var(--white);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.intro-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    max-width: 500px;
}

.command-actions {
    display: flex;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.new-request-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    backdrop-filter: blur(10px);
}

.new-request-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.queue-manager-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.queue-manager-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Workflow Dashboard */
.workflow-dashboard {
    margin-bottom: var(--spacing-2xl);
}

.workflow-header {
    margin-bottom: var(--spacing-xl);
}

.workflow-header h2 {
    color: var(--gray-800);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.workflow-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.workflow-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.stage-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.stage-card.new-requests::before {
    background: linear-gradient(90deg, var(--warning), #f59e0b);
}

.stage-card.in-progress::before {
    background: linear-gradient(90deg, var(--info), #3b82f6);
}

.stage-card.scheduled::before {
    background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
}

.stage-card.completed::before {
    background: linear-gradient(90deg, var(--success), #10b981);
}

.stage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stage-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.stage-card.new-requests .stage-icon {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
}

.stage-card.in-progress .stage-icon {
    background: linear-gradient(135deg, var(--info), #3b82f6);
}

.stage-card.scheduled .stage-icon {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
}

.stage-card.completed .stage-icon {
    background: linear-gradient(135deg, var(--success), #10b981);
}

.stage-content {
    margin-bottom: var(--spacing-lg);
}

.stage-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.stage-count {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.stage-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.stage-trend {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success);
}

/* Requests Queue */
.requests-queue {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.queue-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-50), var(--white));
}

.header-info {
    margin-bottom: var(--spacing-lg);
}

.header-info h2 {
    color: var(--gray-800);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.header-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.queue-filters {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex: 1;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    background: var(--white);
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px var(--gold-bg-light);
}

.filter-group {
    display: flex;
    gap: var(--spacing-md);
}

.status-filter,
.priority-filter {
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.status-filter:focus,
.priority-filter:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px var(--gold-bg-light);
}

.queue-actions {
    display: flex;
    gap: var(--spacing-md);
}

.bulk-assign-btn {
    background: var(--blue-primary);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.bulk-assign-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.export-queue-btn {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.export-queue-btn:hover {
    background: var(--gold-bg-light);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Queue Table */
.queue-table-container {
    overflow-x: auto;
}

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

.queue-table th {
    background: var(--gray-50);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

.queue-table td {
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: middle;
}

.queue-table tr:hover td {
    background: var(--gold-bg-light);
}

.empty-queue {
    text-align: center;
    padding: var(--spacing-2xl);
}

.empty-queue i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: var(--spacing-lg);
    display: block;
}

.empty-queue div {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: var(--spacing-sm);
}

.empty-queue p {
    font-size: 0.9rem;
    color: var(--gray-500);
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Design for Requests Page */
@media (max-width: 1024px) {
    .command-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .command-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .intro-text h1 {
        font-size: 2rem;
    }
    
    .workflow-stages {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .header-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .queue-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .command-header {
        padding: var(--spacing-xl);
    }
    
    .intro-text h1 {
        font-size: 1.75rem;
    }
    
    .command-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .new-request-btn,
    .queue-manager-btn {
        width: 100%;
        justify-content: center;
    }
    
    .workflow-stages {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .queue-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .bulk-assign-btn,
    .export-queue-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- MODAL STYLING ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

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

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1.25rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-footer {
    padding: var(--spacing-xl);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px var(--gold-bg-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-primary {
    background: var(--gold-primary);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

/* ---------- TOAST NOTIFICATIONS ---------- */
.toast {
    position: fixed;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    min-width: 300px;
    max-width: 400px;
    z-index: 10000;
    animation: toastSlideIn 0.3s ease-out;
    border-left: 4px solid var(--info);
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-warning {
    border-left-color: var(--warning);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.toast-content i {
    font-size: 1.25rem;
}

.toast-success .toast-content i {
    color: var(--success);
}

.toast-error .toast-content i {
    color: var(--error);
}

.toast-warning .toast-content i {
    color: var(--warning);
}

.toast-info .toast-content i {
    color: var(--info);
}

.toast-content span {
    flex: 1;
    color: var(--gray-700);
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.toast-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ---------- REQUESTS PAGE SPECIFIC STYLING ---------- */
.request-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.request-id {
    font-weight: 700;
    color: var(--blue-primary);
    font-size: 0.9rem;
}

.request-date {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.customer-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.customer-contact {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.customer-phone {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.service-type {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.preferred-date {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.8rem;
}

.preferred-time {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.assigned-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.assigned-to {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.9rem;
}

/* Status and Priority Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.status-badge.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-badge.status-in-progress {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.status-badge.status-scheduled {
    background: rgba(30, 77, 140, 0.1);
    color: var(--blue-primary);
}

.status-badge.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.priority-badge.priority-urgent {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.priority-badge.priority-high {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.priority-badge.priority-normal {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray-500);
}

.priority-badge.priority-low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.action-group {
    display: flex;
    gap: var(--spacing-xs);
}

.action-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 249, 255, 0.9));
    color: var(--gray-800);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.action-btn.btn-view:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border-color: var(--info);
}

.action-btn.btn-edit:hover {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: var(--warning);
}

.action-btn.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-color: var(--error);
}

/* ---------- DARK MODE STYLES ---------- */
[data-theme="dark"] {
    --blue-deep: #1a3a5c;
    --blue-primary: #2E6AB0;
    --blue-light: #4a8bc9;
    --blue-bg-light: rgba(46, 106, 176, 0.15);
    
    --gold-primary: #E5C158;
    --gold-light: #FFE55C;
    --gold-dark: #C9A52A;
    --gold-bg-light: rgba(229, 193, 88, 0.15);
    
    --white: #1E293B;
    --gray-50: #0F172A;
    --gray-100: #1E293B;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-600: #94A3B8;
    --gray-700: #CBD5E1;
    --gray-800: #E2E8F0;
    --gray-900: #F1F5F9;
}

[data-theme="dark"] .admin-dashboard {
    background: var(--gray-50);
}

[data-theme="dark"] .admin-sidebar {
    background: var(--gray-100);
    border-right: 1px solid var(--gray-300);
}

[data-theme="dark"] .sidebar-header .brand-text {
    color: var(--gray-800);
}

[data-theme="dark"] .sidebar-header p {
    color: var(--gray-600);
}

[data-theme="dark"] .sidebar-nav a {
    color: var(--gray-700);
}

[data-theme="dark"] .sidebar-nav a:hover,
[data-theme="dark"] .sidebar-nav li.active a {
    background: var(--blue-bg-light);
    color: var(--blue-primary);
}

[data-theme="dark"] .sidebar-footer {
    border-top: 1px solid var(--gray-300);
}

[data-theme="dark"] .user-name,
[data-theme="dark"] .user-role {
    color: var(--gray-700);
}

[data-theme="dark"] .admin-header {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-300);
}

[data-theme="dark"] .admin-header h1 {
    color: var(--gray-800);
}

[data-theme="dark"] .admin-search {
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
}

[data-theme="dark"] .admin-search input {
    background: transparent;
    color: var(--gray-800);
}

[data-theme="dark"] .admin-search input::placeholder {
    color: var(--gray-600);
}

[data-theme="dark"] .admin-search i {
    color: var(--gray-600);
}

[data-theme="dark"] .theme-toggle {
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--gray-300);
    color: var(--gray-800);
}

[data-theme="dark"] .notification-btn {
    background: var(--gray-200);
    color: var(--gray-700);
}

[data-theme="dark"] .notification-btn:hover {
    background: var(--gray-300);
}

[data-theme="dark"] .admin-content {
    background: var(--gray-50);
}

[data-theme="dark"] .stat-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
}

[data-theme="dark"] .stat-label {
    color: var(--gray-600);
}

[data-theme="dark"] .stat-change {
    color: var(--gray-600);
}

[data-theme="dark"] .package-hub,
[data-theme="dark"] .requests-command-center,
[data-theme="dark"] .customers-header,
[data-theme="dark"] .analytics-dashboard {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
}

[data-theme="dark"] .hub-intro h1,
[data-theme="dark"] .header-info h2 {
    color: var(--gray-800);
}

[data-theme="dark"] .hub-intro p,
[data-theme="dark"] .header-info p {
    color: var(--gray-600);
}

[data-theme="dark"] .inventory-table-container {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
}

[data-theme="dark"] .inventory-table {
    background: var(--gray-100);
}

[data-theme="dark"] .inventory-table thead {
    background: var(--gray-200);
}

[data-theme="dark"] .inventory-table th {
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-300);
}

[data-theme="dark"] .inventory-table td {
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-300);
}

[data-theme="dark"] .inventory-table tbody tr:hover {
    background: var(--gray-200);
}

[data-theme="dark"] .county-name,
[data-theme="dark"] .estates-count {
    color: var(--gray-800);
}

[data-theme="dark"] .coverage-id,
[data-theme="dark"] .estates-list-preview {
    color: var(--gray-600);
}

[data-theme="dark"] .form-group label {
    color: var(--gray-700);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
    color: var(--gray-800);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: var(--gray-600);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--blue-primary);
    background: var(--gray-100);
}

[data-theme="dark"] .modal-content {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
}

[data-theme="dark"] .modal-header {
    border-bottom: 1px solid var(--gray-300);
}

[data-theme="dark"] .modal-header h3 {
    color: var(--gray-800);
}

[data-theme="dark"] .modal-close {
    color: var(--gray-600);
}

[data-theme="dark"] .modal-close:hover {
    color: var(--gray-800);
}

[data-theme="dark"] .modal-footer {
    border-top: 1px solid var(--gray-300);
}

[data-theme="dark"] .btn-primary {
    background: var(--blue-primary);
    color: var(--white);
}

[data-theme="dark"] .btn-secondary {
    background: var(--gray-300);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
}

[data-theme="dark"] .btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

[data-theme="dark"] .empty-state {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
}

[data-theme="dark"] .empty-state i {
    color: var(--gray-600);
}

[data-theme="dark"] .empty-state h3 {
    color: var(--gray-800);
}

[data-theme="dark"] .empty-state p {
    color: var(--gray-600);
}

[data-theme="dark"] .status-badge {
    background: var(--gray-200);
    color: var(--gray-700);
}

[data-theme="dark"] .status-badge.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

[data-theme="dark"] .status-badge.status-inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
}

[data-theme="dark"] .action-btn {
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

[data-theme="dark"] .action-btn:hover {
    background: var(--gray-300);
    color: var(--gray-800);
}

[data-theme="dark"] .search-wrapper {
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
}

[data-theme="dark"] .search-wrapper input {
    background: transparent;
    color: var(--gray-800);
}

[data-theme="dark"] .search-wrapper input::placeholder {
    color: var(--gray-600);
}

[data-theme="dark"] .search-wrapper i {
    color: var(--gray-600);
}

[data-theme="dark"] .category-filter {
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
    color: var(--gray-800);
}

[data-theme="dark"] .category-filter option {
    background: var(--gray-100);
    color: var(--gray-800);
}