/* =============================================================================
   ui.components.css — Design system globals + UI shell components
   Extracted from index.html <style> block.
   ============================================================================= */

/* ── Design system globals ───────────────────────────────────────────────────── */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-panel {
    background: rgba(15, 25, 48, 0.7);
    backdrop-filter: blur(24px);
}

.spring-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Header ──────────────────────────────────────────────────────────────────── */

.header-blur {
    background: rgba(6, 14, 32, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(129, 233, 255, 0.05);
}

/* ── Navigation rail ─────────────────────────────────────────────────────────── */

.nav-rail {
    background: rgba(6, 14, 32, 0.8);
    backdrop-filter: blur(32px);
    border-right: 1px solid rgba(129, 233, 255, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: rgb(100 116 139);
    font-family: Inter, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s;
    padding: 8px 0;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}

.nav-item:hover  { color: #a5f3fc; }
.nav-item.active { color: #22d3ee; }

.nav-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 32px;
    background: #22d3ee;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(129, 233, 255, 0.8);
}

.nav-item .nav-label        { font-weight: 400; }
.nav-item.active .nav-label { font-weight: 700; }

/* ── Nav collapse toggle ─────────────────────────────────────────────────────── */

#main-nav {
    transition: width 0.25s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
}

#nav-toggle {
    left: 80px;
    top: calc(50vh - 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 44px;
    background: rgba(15, 25, 48, 0.30);
    border: 1px solid rgba(129, 233, 255, 0.07);
    border-left: none;
    border-radius: 0 6px 6px 0;
    color: rgba(163, 170, 196, 0.55);
    cursor: pointer;
    transition: left 0.25s cubic-bezier(.4, 0, .2, 1), color 0.15s, background 0.15s, border-color 0.15s;
}

#nav-toggle:hover {
    color: #81e9ff;
    background: rgba(15, 25, 48, 0.60);
    border-color: rgba(129, 233, 255, 0.18);
}

/* ── Changelog scrollbar ─────────────────────────────────────────────────────── */

.changelog-scrollbar {
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(129, 233, 255, 0.35) rgba(255, 255, 255, 0.04);
    /* Ensure mousewheel works even when not focused */
    overscroll-behavior: contain;
}

.changelog-scrollbar::-webkit-scrollbar       { width: 6px; }
.changelog-scrollbar::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 10px; }
.changelog-scrollbar::-webkit-scrollbar-thumb { background: rgba(129, 233, 255, 0.35); border-radius: 10px; }
.changelog-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(129, 233, 255, 0.6); }

/* ── Leaflet control overrides (replaced by custom UI) ───────────────────────── */

.msr-control.leaflet-bar          { display: none !important; }
.map-location-control.leaflet-bar { display: none !important; }
.cursor-coords-control            { display: none !important; }
