:root {
    /* Emerald/Green System */
    --primary: #10b981;
    --primary-dark: #047857;
    --primary-light: #34d399;
    --primary-glow: rgba(16, 185, 129, 0.5);
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.5);
    --dark: #0f172a;
    --dark-darker: #020617;
}

body {
    background-color: var(--dark-darker);
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.625;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 25%);
    background-attachment: fixed;
}

/* Glassmorphism System */
.glass {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.5rem;
    /* Standardized wide rounding */
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.2);
}

/* Premium Components */
.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff !important;
    padding: 0.75rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.25);
    text-align: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-premium:hover {
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4);
}

.btn-premium:active {
    opacity: 0.8;
}

.nav-link-premium {
    color: #cbd5e1 !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.nav-link-premium:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link-premium.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.badge-premium {
    padding: 0.375rem 1rem;
    background-color: rgba(99, 102, 241, 0.1);
    color: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.metric-box {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2.5rem;
    text-align: center;
    border-radius: 1.5rem;
    /* Match glass rounding */
}

/* Dark Mode Form Helpers */
select option {
    background-color: var(--dark-darker);
    color: #ffffff;
}

select {
    color-scheme: dark;
}

/* Layout Helpers */
#navbarNav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbarNav.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
}

@media (max-width: 1279px) {
    #navbarNav:not(.hidden) {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.5rem;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link-premium {
        padding: 1rem 1.5rem;
        border-radius: 1rem;
        width: 100%;
        display: block;
        text-align: left;
    }

    .group:hover ul {
        display: block !important;
        position: static;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        box-shadow: none;
        margin-top: 0.5rem;
        width: 100% !important;
    }
}

@media (min-width: 1280px) {
    #navbarNav.hidden {
        display: flex !important;
        opacity: 1;
        transform: none;
    }
}

/* Animations */
@keyframes float {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}