/* ═══════════════════════════════════════
   BOTTOM NAVIGATION (Mobile)
   ═══════════════════════════════════════ */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--panel);
    border-top: 1px solid var(--line);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

/* bottom-nav mobile — see consolidated mobile block below */

.nav-item {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.15s;
}

.nav-item:hover {
    color: var(--text);
}

.nav-item.active {
    color: var(--green);
}

.nav-item span {
    display: block;
}

.nav-item-icon {
    font-size: 18px;
    line-height: 1.2;
}

/* ── Sidebar menu toggle (collapse/expand nav section) ── */
.sidebar-menu-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 6px 8px;
    background: none;
    border: none;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s;
}
.sidebar-menu-toggle:hover {
    color: var(--green);
}
.sidebar-menu-toggle-icon {
    font-size: 10px;
    transition: transform 0.2s;
}

/* Collapsible body — smooth slide */
.sidebar-menu-body {
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.25s ease-out, opacity 0.2s ease-out;
    opacity: 1;
}
.sidebar-menu-body.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

/* ── Sidebar nav links (desktop) ── */
.sidebar-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}

.sidebar-nav-link {
    background: none;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 12px;
    padding: 6px 8px;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    display: block;
}

.sidebar-nav-link:hover {
    color: var(--green);
    background: rgba(var(--green-rgb), 0.05);
}

.sidebar-nav-link.active {
    color: var(--green);
    background: rgba(var(--green-rgb), 0.08);
}

