:root {
    /* Premium Yellow/Black Theme */
    --primary: #facc15;       /* Bold Yellow */
    --primary-light: #fef08a; /* Light Yellow */
    
    --secondary: #111111;     /* Black */
    --success: #16a34a;       /* Green */
    --danger: #ef4444;        /* Red */
    
    --bg-page: #fffdf5;       /* Soft cream background */
    --bg-main: #ffffff;       /* White for main container */
    --bg-card: #ffffff;
    
    --text-main: #111827;
    --text-muted: #6b7280;
    
    --border-color: #e2e8f0;  /* Slate 200 */
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Radii */
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: var(--font-family); 
    background-color: var(--bg-page); 
    color: var(--text-main); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Buttons */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 14px 28px; 
    font-weight: 600; 
    border-radius: var(--radius-md); 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    border: none; 
    font-size: 16px; 
    letter-spacing: -0.01em;
}
.btn-primary { 
    background: var(--secondary);
    color: var(--primary); 
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.3); 
    background: #000;
}
.btn-success { background: var(--success); color: #fff; box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39); }
.btn-success:hover { background: #059669; transform: translateY(-2px); }

/* Forms */
.form-group { margin-bottom: 24px; position: relative; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.form-control { 
    width: 100%; 
    padding: 14px 16px; 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-md); 
    font-size: 16px; 
    font-family: inherit;
    background: #fff;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.form-control:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px var(--primary-light); 
}

/* App Layout - Floating Container */
.app-container { 
    display: flex; 
    background: var(--bg-main); 
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Expanded Sidebar */
.sidebar { 
    width: 250px; 
    background: #ffffff; 
    border-right: 1px solid var(--border-color);
    padding: 30px 20px; 
    display: flex; 
    flex-direction: column; 
    align-items: stretch;
    z-index: 10;
}
.sidebar-logo { 
    color: var(--primary); 
    font-size: 32px; 
    font-weight: 800; 
    margin-bottom: 50px; 
    display: flex; 
    justify-content: flex-start;
    align-items: center;
    padding-left: 10px;
    gap: 12px;
}
.sidebar-logo::after {
    content: "Panel";
    font-size: 22px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.nav-link { 
    color: var(--text-muted); 
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
    gap: 12px;
}
.nav-link i { font-size: 22px; }
.nav-link span { display: inline-block; } 
.nav-link:hover { background: var(--bg-page); color: var(--primary); transform: translateX(5px); }
.nav-link.active { 
    background: rgba(250, 204, 21, 0.1); 
    color: var(--primary); 
}

/* Main Content Area */
.main-content { 
    flex: 1; 
    padding: 40px 60px; 
    overflow-y: auto; 
}
.main-content h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

/* Cards */
.card { 
    background: var(--bg-card); 
    border-radius: var(--radius-lg); 
    padding: 30px; 
    box-shadow: var(--shadow-md); 
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
/* Pastel Cards */
.card-green { background: #dcfce7; border: none; }
.card-green h2 { color: #166534; }
.card-purple { background: #e0e7ff; border: none; }
.card-purple h2 { color: #3730a3; }
.card-orange { background: #ffedd5; border: none; }
.card-orange h2 { color: #9a3412; }
.card-pink { background: #fce7f3; border: none; }
.card-pink h2 { color: #9d174d; }

/* Responsive Mobile Layout */
@media (max-width: 768px) {
    body { display: block; background: var(--bg-main); }
    .app-container { 
        width: 100%; 
        height: auto; 
        min-height: 100vh; 
        border-radius: 0; 
        box-shadow: none; 
        flex-direction: column; 
        padding-bottom: 90px; 
    }
    
    .sidebar { 
        position: fixed; 
        bottom: 20px; 
        left: 50%; 
        transform: translateX(-50%);
        width: 90%; 
        height: 70px;
        flex-direction: row; 
        justify-content: space-around; 
        align-items: center; 
        padding: 0 15px; 
        border: 1px solid #e5e7eb;
        border-radius: 35px;
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 1000;
        /* Removed backdrop filter to fix performance lag on mobile */
    }
    .sidebar-logo { display: none; } /* Hide logo on bottom nav */
    .sidebar > div { display: none; } /* Hide the flex spacer on mobile */
    .sidebar .nav-link span { display: none; } /* Hide text, show only icons */
    .sidebar-logo::after { display: none; }
    
    .nav-link { 
        width: auto;
        height: auto;
        padding: 12px; 
        font-size: 26px; 
        margin-bottom: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--text-muted);
        justify-content: center;
        transition: color 0.2s, transform 0.2s; /* Faster transitions */
    }
    .nav-link:hover {
        transform: translateY(-2px); /* smoother mobile hover */
        background: transparent;
    }
    .nav-link i { font-size: 28px; }
    .nav-link.active { 
        background: rgba(250, 204, 21, 0.2); 
        color: var(--primary); 
        box-shadow: none;
    }
    
    .main-content { padding: 20px 15px; }
    .main-content h1 { font-size: 24px; margin-bottom: 15px; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: var(--success); }
input:checked + .slider:before { transform: translateX(20px); }
