/* ═══════════════════════════════════════
   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);
}

/* ═══════════════════════════════════════
   TOOLS SUB-NAVIGATION (Radar, Avatars, Messaging, Settings)
   ═══════════════════════════════════════ */

.tools-nav {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tools-nav__item {
    flex: 1 1 0;
    text-align: center;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.tools-nav__item:hover {
    background: rgba(var(--green-rgb), 0.06);
    color: var(--text);
}

.tools-nav__item--active {
    background: rgba(var(--green-rgb), 0.12);
    color: var(--green);
    font-weight: 600;
}

@media (max-width: 600px) {
    .tools-nav { gap: 2px; padding: 4px; }
    .tools-nav__item { padding: 6px 8px; font-size: 0.78rem; }
}

