/* ==========================================================
   BUILD 11.2 — SIDEBAR VISUAL OVERHAUL
   Presentation-only overrides. No routing or shell changes.
   ========================================================== */

.sidebar {
    isolation: isolate;
    padding: 0;
    overflow: hidden;
    border-right: 1px solid rgba(198, 145, 67, 0.28);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.14), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.3)),
        radial-gradient(circle at 42% 4%, rgba(197, 137, 55, 0.09), transparent 30%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 7px),
        linear-gradient(180deg, #15110d 0%, #0d0d0c 38%, #090b0b 100%);
    box-shadow:
        inset -1px 0 rgba(255, 221, 158, 0.035),
        20px 0 65px rgba(0, 0, 0, 0.36);
}

.sidebar::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: 0.35;
    background:
        linear-gradient(105deg, transparent 0 45%, rgba(255, 255, 255, 0.018) 49%, transparent 53%),
        repeating-linear-gradient(0deg, transparent 0 45px, rgba(184, 127, 53, 0.025) 46px, transparent 47px);
}

.sidebar::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent, #b77a2f 12%, rgba(183, 122, 47, 0.22) 72%, transparent);
}

.brand {
    position: relative;
    min-height: 112px;
    gap: 15px;
    padding: 25px 22px 23px;
    border-bottom: 1px solid rgba(202, 154, 85, 0.18);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.02));
}

.brand::after {
    position: absolute;
    right: 22px;
    bottom: -1px;
    left: 22px;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(212, 160, 84, 0.58), transparent);
}

.brand-symbol {
    width: 48px;
    height: 48px;
    border-color: rgba(214, 162, 86, 0.62);
    background:
        radial-gradient(circle at 35% 30%, rgba(235, 188, 112, 0.14), transparent 32%),
        linear-gradient(145deg, #1e1710, #090909);
    box-shadow:
        inset 0 0 0 4px rgba(0, 0, 0, 0.34),
        inset 0 0 18px rgba(203, 143, 59, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.45);
}

.brand-symbol::after {
    width: 4px;
    height: 4px;
    background: #e0ad62;
    box-shadow: 0 0 12px rgba(224, 173, 98, 0.65);
}

.brand-symbol span {
    font-size: 10px;
    color: #e3bd82;
}

.brand-text { gap: 6px; }

.brand-text strong {
    color: #eee5d6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.045em;
}

.brand-text span {
    color: #b9915d;
    font-size: 8px;
    letter-spacing: 0.25em;
}

.main-navigation {
    gap: 4px;
    padding: 26px 14px 18px;
}

.main-navigation::before {
    content: "CONTROL ROOM";
    display: block;
    margin: 0 10px 12px;
    color: rgba(197, 155, 97, 0.6);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.24em;
}

.navigation-item {
    min-height: 45px;
    gap: 12px;
    padding: 0 13px;
    border-radius: 3px;
    color: #aaa294;
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.navigation-item::before {
    top: 8px;
    bottom: 8px;
    left: -1px;
    width: 2px;
    border-radius: 0;
    background: linear-gradient(180deg, transparent, #d79a48 18%, #e3b66f 82%, transparent);
    box-shadow: 0 0 12px rgba(211, 149, 68, 0.32);
}

.navigation-item::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0;
    border: 1px solid rgba(210, 158, 84, 0.15);
    border-radius: inherit;
    transition: opacity 180ms ease;
}

.navigation-item:hover {
    color: #e5dccd;
    background: linear-gradient(90deg, rgba(188, 128, 50, 0.08), rgba(255, 255, 255, 0.018));
    transform: translateX(1px);
}

.navigation-item:hover::after { opacity: 1; }

.navigation-item.active {
    color: #f1e7d6;
    border-color: rgba(210, 158, 84, 0.22);
    background:
        linear-gradient(90deg, rgba(190, 127, 46, 0.19), rgba(185, 130, 56, 0.065) 70%, transparent),
        rgba(255, 255, 255, 0.012);
    box-shadow:
        inset 0 1px rgba(255, 231, 190, 0.025),
        0 8px 22px rgba(0, 0, 0, 0.16);
}

.navigation-item.active::after { opacity: 1; }

.navigation-icon {
    width: 20px;
    height: 20px;
    color: #817768;
}

.navigation-icon svg {
    width: 17px;
    height: 17px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.navigation-item:first-of-type .navigation-icon svg path { fill: currentColor; stroke: none; }

.navigation-item:hover .navigation-icon { color: #c99752; }
.navigation-item.active .navigation-icon { color: #dfaa5e; }

.navigation-label {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.045em;
}

.navigation-divider {
    position: relative;
    height: 1px;
    margin: 16px 8px 14px;
    background: linear-gradient(90deg, transparent, rgba(202, 154, 85, 0.25), transparent);
}

.navigation-divider::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    content: "";
    border: 1px solid rgba(207, 157, 86, 0.55);
    background: #0d0d0c;
    transform: translate(-50%, -50%) rotate(45deg);
}

.sidebar-footer {
    margin: 0 14px;
    padding: 17px 0 18px;
    border-top: 1px solid rgba(202, 154, 85, 0.16);
}

.server-status {
    gap: 10px;
    padding: 11px 12px;
    border-color: rgba(202, 154, 85, 0.15);
    border-radius: 4px;
    background:
        linear-gradient(135deg, rgba(195, 137, 59, 0.055), transparent 60%),
        rgba(0, 0, 0, 0.19);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.018);
}

.server-status-dot {
    width: 6px;
    height: 6px;
    background: #76a88a;
    box-shadow: 0 0 9px rgba(118, 168, 138, 0.6);
}

.server-status strong {
    color: #cfc4b3;
    font-size: 10px;
    letter-spacing: 0.035em;
}

.server-status span {
    color: #706c64;
    font-size: 8px;
}

.version-information {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 2px 0;
    color: #625e57;
    font-size: 7px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .sidebar { overflow: visible; }
    .brand { min-height: 92px; padding: 18px 20px; }
    .main-navigation { padding: 18px 14px 4px; }
    .main-navigation::before { grid-column: 1 / -1; }
    .navigation-item { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .navigation-item,
    .navigation-item::before,
    .navigation-item::after { transition: none; }
}

/* ==========================================================
   BUILD 15.17 — MOBILE NAVIGATION
   ========================================================== */

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(214, 162, 86, 0.28);
    border-radius: 8px;
    color: #e3bd82;
    background: rgba(0, 0, 0, 0.24);
    cursor: pointer;
}

.mobile-menu-toggle__bar {
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 760px) {
    .sidebar {
        position: sticky;
        top: 0;
        z-index: 80;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid rgba(198, 145, 67, 0.28);
    }

    .brand {
        min-height: 72px;
        padding: 12px 16px;
        border-bottom: 0;
    }

    .brand::after {
        display: none;
    }

    .brand-symbol {
        width: 42px;
        height: 42px;
    }

    .brand-text strong {
        font-size: 16px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .main-navigation {
        display: none;
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 8px 12px 14px;
        border-top: 1px solid rgba(202, 154, 85, 0.14);
        background: rgba(10, 9, 8, 0.98);
    }

    .sidebar.is-mobile-open .main-navigation {
        display: grid;
    }

    .main-navigation::before {
        margin: 6px 8px 8px;
    }

    .navigation-item {
        min-height: 46px;
        padding: 0 12px;
    }

    .navigation-divider,
    .sidebar-footer {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-toggle__bar { transition: none; }
}
