:root {
    /* Primary Color Palette (SaaS Professional) */
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --secondary: #0F172A;
    --accent: #10B981;
    --accent-glow: rgba(16, 185, 129, 0.15);

    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Backgrounds & Surfaces (Light Mode) */
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.7);
    --sidebar: #FFFFFF;
    --border: #E2E8F0;

    /* Typography */
    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-on-primary: #FFFFFF;

    /* Shadows & Depth */
    --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-3d: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --background: #0B1120;
    --surface: #0F172A;
    --surface-glass: rgba(15, 23, 42, 0.7);
    --sidebar: #0F172A;
    --border: #1E293B;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

/* Premium 3D Layered Cards */
.card-3d {
    background: var(--surface);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-3d:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-3d);
    border-color: var(--primary-glow);
}

.card-3d:hover::after {
    opacity: 1;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Professional Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-size: 0.9375rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px var(--primary-glow);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 10px 15px -3px var(--accent-glow);
}

/* Premium Form UI */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.form-control {
    width: 100%;
    padding: 1.15rem 1.25rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Scroll Revelations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Status Badges with Subtle Glow */
.badge {
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* Dashboard Specific Layout */
.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    left: 0;
    top: 0;
    padding: 2rem 1.5rem;
    z-index: 1000;
    transition: var(--transition);
}

.main-content {
    margin-left: 280px;
    padding: 3rem 4rem;
    min-height: 100vh;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 2rem 0.5rem;
    }

    .sidebar span,
    .sidebar .logo-text {
        display: none;
    }

    .main-content {
        margin-left: 80px;
    }
}

/* Animations */
.stagger-in>* {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-in>*.active {
    animation: staggerFadeIn 0.5s ease forwards;
}

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}