:root {
    /* Color Palette - Professional SaaS (Slate & Blue) */
    --bg-deep: #020617;     /* Slate 950 */
    --bg-main: #050b18;     /* Custom Deep */
    --bg-card: #0f172a;     /* Slate 900 */
    --bg-glass: rgba(15, 23, 42, 0.6);
    --bg-glass-heavy: rgba(15, 23, 42, 0.8);

    /* Accents */
    --primary: #2563eb;     /* Blue 600 */
    --primary-light: #3b82f6; 
    --primary-glow: rgba(37, 99, 235, 0.2);
    --accent: #4f46e5;      /* Indigo 600 */
    --accent-glow: rgba(79, 70, 229, 0.2);
    
    --success: #10b981;     /* Emerald 500 */
    --warning: #f59e0b;     /* Amber 500 */
    --danger: #ef4444;      /* Red 500 */

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Borders */
    --border-dim: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(37, 99, 235, 0.5);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) transparent;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--slate-800);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Layout Elements */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-dim);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.5);
}

.glass-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}

/* Interactive Components */
.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-premium:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-premium:active {
    transform: scale(0.98);
}

.input-premium {
    background: #020617; /* Slate 950 */
    border: 1px solid var(--border-dim);
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    color: white;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.input-premium:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    outline: none;
}

/* Sidebar & Navigation */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    margin: 0.25rem 0.75rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.sidebar-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.sidebar-link i {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

/* Badges */
.badge-premium {
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: var(--bg-glass-heavy);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-dim);
        z-index: 100;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--text-secondary);
        text-decoration: none;
        flex: 1;
        font-size: 0.65rem;
        font-weight: 600;
        gap: 2px;
    }

    .mobile-nav-item.active {
        color: var(--primary);
    }

    .mobile-nav-item i {
        font-size: 1.2rem;
    }
}
