/* Enhanced navigation system shared across all pages */
@media (max-width: 1023px) {
    .mobile-container {
        padding-bottom: 130px;
    }

    .bottom-nav {
        position: fixed;
        bottom: calc(16px + env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        width: min(420px, calc(100% - 24px));
        padding: 14px 16px;
        border-radius: 28px;
        background: rgba(12, 23, 17, 0.82);
        border: 1px solid rgba(255, 255, 255, 0.12);
        display: flex;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 25px 60px rgba(18, 35, 27, 0.35);
        backdrop-filter: blur(28px) saturate(160%);
        -webkit-backdrop-filter: blur(28px) saturate(160%);
        z-index: 9999;
        isolation: isolate;
        overflow: hidden;
    }

    .bottom-nav::before,
    .bottom-nav::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 55%),
                    radial-gradient(circle at 80% 0%, rgba(104, 210, 168, 0.25), transparent 45%);
        opacity: 0.4;
        z-index: 0;
        animation: navAurora 12s ease-in-out infinite alternate;
    }

    .bottom-nav::after {
        filter: blur(30px);
        opacity: 0.25;
    }

    .nav-floating-indicator {
        position: absolute;
        top: 10px;
        height: calc(100% - 20px);
        width: var(--indicator-width, 0px);
        border-radius: 22px;
        background: linear-gradient(120deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.06));
        box-shadow: 0 15px 35px rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
        opacity: 0;
        z-index: 0;
    }

    .bottom-nav .nav-item {
        flex: 1;
        min-width: 0;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.6);
        font: inherit;
        font-weight: 500;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        padding: 8px 4px;
        border-radius: 20px;
        position: relative;
        z-index: 1;
        transition: color 0.35s ease, transform 0.35s ease;
    }

    .bottom-nav .nav-item:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.35);
        outline-offset: 4px;
    }

    .bottom-nav .nav-icon-wrapper {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        transition: all 0.35s ease;
    }

    .bottom-nav .nav-icon-wrapper::after {
        content: '';
        position: absolute;
        inset: -10%;
        background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 60%);
        opacity: 0;
        transition: opacity 0.35s ease;
        animation: navGlow 6s ease-in-out infinite;
    }

    .bottom-nav .nav-icon {
        font-size: 20px;
        color: inherit;
        transition: transform 0.35s ease, color 0.35s ease;
    }

    .bottom-nav .nav-label {
        font-size: 11px;
        letter-spacing: 0.02em;
        color: inherit;
        transition: inherit;
    }

    .bottom-nav .nav-item.active,
    .bottom-nav .nav-item:hover {
        color: #ffffff;
        transform: translateY(-2px);
    }

    .bottom-nav .nav-item.active .nav-icon-wrapper,
    .bottom-nav .nav-item:hover .nav-icon-wrapper {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        box-shadow: 0 14px 30px rgba(34, 58, 42, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    }

    .bottom-nav .nav-item.active .nav-icon-wrapper::after,
    .bottom-nav .nav-item:hover .nav-icon-wrapper::after {
        opacity: 0.5;
    }

    .bottom-nav .nav-item.active .nav-icon,
    .bottom-nav .nav-item:hover .nav-icon {
        transform: translateY(-2px) scale(1.05);
        color: #ffffff;
    }

    .bottom-nav .nav-item.active .nav-label {
        font-weight: 600;
    }

    @media (max-width: 480px) {
        .bottom-nav {
            width: calc(100% - 20px);
            padding: 12px 12px;
            border-radius: 24px;
        }

        .bottom-nav .nav-icon-wrapper {
            width: 42px;
            height: 42px;
        }
    }
}

@media (min-width: 1024px) {
    .desktop-sidebar {
        background: linear-gradient(180deg, rgba(50, 77, 62, 0.15), rgba(34, 58, 42, 0.45)), var(--surface-color);
        border-right: 1px solid rgba(50, 77, 62, 0.15);
    }

    .desktop-nav {
        list-style: none;
        padding: 18px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(50, 77, 62, 0.12);
        box-shadow: 0 25px 55px rgba(18, 35, 27, 0.12);
        position: relative;
        overflow: hidden;
        isolation: isolate;
    }

    .desktop-nav::before {
        content: '';
        position: absolute;
        inset: -50% -20% auto;
        height: 120%;
        background: radial-gradient(circle at top, rgba(104, 210, 168, 0.15), transparent 60%);
        animation: navAurora 14s ease-in-out infinite;
        opacity: 0.8;
        z-index: 0;
    }

    .desktop-nav-item {
        position: relative;
        z-index: 1;
    }

    .desktop-nav-link {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 18px 20px;
        border-radius: 18px;
        text-decoration: none;
        color: var(--text-secondary);
        font-weight: 600;
        position: relative;
        overflow: hidden;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease, box-shadow 0.35s ease;
    }

    .desktop-nav-link::after {
        content: '';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        height: 28px;
        width: 0;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        opacity: 0;
        transition: width 0.35s ease, opacity 0.35s ease;
    }

    .desktop-nav-link:hover {
        color: var(--primary-dark);
        transform: translateX(8px);
        box-shadow: 0 18px 35px rgba(34, 58, 42, 0.18);
    }

    .desktop-nav-link:hover::after {
        width: 48px;
        opacity: 0.4;
    }

    .desktop-nav-link.active {
        background: linear-gradient(135deg, rgba(50, 77, 62, 0.25), rgba(34, 58, 42, 0.4));
        color: #ffffff;
        box-shadow: 0 25px 40px rgba(34, 58, 42, 0.35);
    }

    .desktop-nav-link.active::after {
        width: 60px;
        opacity: 0.8;
    }

    .desktop-nav-icon {
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
}

@keyframes navAurora {
    0% {
        transform: translateX(-10%) translateY(-5%) scale(1);
    }
    100% {
        transform: translateX(10%) translateY(5%) scale(1.2);
    }
}

@keyframes navGlow {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6%);
    }
}



