:root {
    --primary: #6366f1; /* Indigo */
    --primary-dark: #4f46e5;
    --secondary: #a855f7; /* Purple */
    --accent: #fbbf24; /* Amber/Gold */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --bg-main: #0f172a; /* Slate 900 for dark mode feel */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --sidebar-width: 280px;
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-outfit: 'Outfit', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-outfit);
    background: #f1f5f9;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(251, 191, 36, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.sidebar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.nav-links {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-link i {
    font-size: 1.2rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

/* Components */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out backwards;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
}

.bg-purple { background: linear-gradient(135deg, #818cf8, #6366f1); }
.bg-blue { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.bg-green { background: linear-gradient(135deg, #34d399, #10b981); }
.bg-orange { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.stat-info h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-info .value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover { 
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Tables */
.table-container {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}
td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Login Page Special */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}
.login-card {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
}
/ *   P r i n t   U t i l i t i e s   * / 

/* Print Utilities */
.print-only { display: none !important; }
@media print {
    .print-only { display: block !important; }
    .no-print { display: none !important; }
    .sidebar, .top-bar, .btn, .search-box { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 0 !important; }
    .card { box-shadow: none !important; border: none !important; background: white !important; }
}
/ *   G l o b a l   F i x   f o r   H o r i z o n t a l   S c r o l l i n g   * / 
 b o d y   {   o v e r f l o w - x :   v i s i b l e   ! i m p o r t a n t ;   } 
 . t a b l e - c o n t a i n e r   {   o v e r f l o w - x :   a u t o   ! i m p o r t a n t ;   w i d t h :   1 0 0 %   ! i m p o r t a n t ;   - w e b k i t - o v e r f l o w - s c r o l l i n g :   t o u c h ;   } 
 t a b l e   {   m i n - w i d t h :   1 0 0 0 p x   ! i m p o r t a n t ;   } 
 @ m e d i a   p r i n t   {   t a b l e   {   m i n - w i d t h :   1 0 0 %   ! i m p o r t a n t ;   }   }  
 @ m e d i a   p r i n t   {   @ p a g e   {   s i z e :   l a n d s c a p e ;   m a r g i n :   1 c m ;   }   . s i d e b a r ,   . t o p - b a r ,   . n o - p r i n t   {   d i s p l a y :   n o n e   ! i m p o r t a n t ;   }   . m a i n - c o n t e n t   {   m a r g i n :   0   ! i m p o r t a n t ;   p a d d i n g :   0   ! i m p o r t a n t ;   w i d t h :   1 0 0 %   ! i m p o r t a n t ;   }   }  
 