/* Mobile-friendly navigation styles */
.sidebar {
    width: 200px;
    background: rgba(10, 14, 26, 0.82);
    border: 1px solid #1f2c46;
    border-radius: 14px;
    padding: 22px 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    position: sticky;
    top: 24px;
    align-self: flex-start;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar h2 {
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9fb3d9;
    margin-bottom: 14px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #dce6ff;
    text-decoration: none;
    background: rgba(49, 82, 130, 0.18);
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.nav-list a.active {
    background: rgba(94, 161, 255, 0.15);
    border-color: #5ea1ff;
    color: #ffffff;
}

.nav-list a:hover {
    background: rgba(94, 161, 255, 0.15);
    border-color: #5ea1ff;
    transform: translateX(2px);
}

.muted {
    color: #8fa1c2;
    font-size: 0.9rem;
}

.sidebar .muted {
    margin-top: 10px;
    display: block;
}

/* Mobile hamburger menu */
.nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid #5ea1ff;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.nav-toggle:hover {
    background: rgba(94, 161, 255, 0.15);
    transform: scale(1.05);
}

.nav-toggle:active {
    transform: scale(0.95);
}

.nav-toggle-icon {
    width: 24px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle-icon span {
    display: block;
    height: 3px;
    background: #5ea1ff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active .nav-toggle-icon span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-icon span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto !important;
    visibility: visible;
}

/* Mobile responsive styles */
@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        opacity: 0;
        border-radius: 0 14px 14px 0;
        max-width: 280px;
        height: 100vh;
        overflow-y: auto;
    }

    .sidebar.active {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-overlay {
        display: block;
    }
}

@media (max-width: 640px) {
    .sidebar {
        max-width: 240px;
    }
}
