/* ── Sidebar ─────────────────────────────────────── */
.sidebar {
    display: none;
    width: 260px;
    background: #121824;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    flex-shrink: 0;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
}

.sidebar-nav {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar .nav-item:hover,
.sidebar .nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fcd34d;
    transform: translateX(4px);
}

.sidebar-logout-btn {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    cursor: pointer;
}

@media (max-width: 768px) {
    .sidebar {
        display: flex;
        position: fixed;
        top: 58px;
        bottom: 65px;
        left: 0;
        width: min(78vw, 300px);
        transform: translateX(-100%);
        z-index: 60;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }
}
