:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --dark: #0f172a;
    --light: #f8fafc;
    --secondary: #64748b;
    --success: #10b981;
    --info: #0ea5e9;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --sidebar-width: 260px;
    --navbar-height: 70px;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f1f5f9;
    overflow-x: hidden;
}

/* Fix Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--dark);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050; /* Above navbar */
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0,0,0,0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.nav-link {
    color: #94a3b8;
    padding: 12px 20px;
    margin: 5px 15px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.nav-link i { font-size: 1.1rem; width: 24px; text-align: center; }
.nav-link:hover { color: white; background: rgba(255, 255, 255, 0.05); }
.nav-link.active {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Fix Top Navbar */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1040;
    padding: 0 30px;
}

.main-content {
    padding: calc(var(--navbar-height) + 30px) 30px 30px;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .sidebar { left: -100%; }
    .sidebar.active { left: 0; }
    .navbar { left: 0; }
    .main-content { margin-left: 0; }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 1045;
    }
    .sidebar-overlay.show { display: block; }
}

/* Dashboard Cards */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.stat-card { color: white; position: relative; }
.stat-icon { position: absolute; right: 15px; bottom: 15px; opacity: 0.2; transform: rotate(-10deg); font-size: 4rem; }

/* Buttons & Elements */
.btn { border-radius: 10px; font-weight: 600; padding: 8px 20px; transition: 0.3s; }
.badge { padding: 6px 10px; border-radius: 8px; text-transform: capitalize; font-weight: 600; }

.gsap-fade-up { opacity: 0; transform: translateY(20px); }
