/* Moved out of base.html on 2026-09-23.
   It was 127 lines inside a template that every panel page includes, and _base.html sends those pages with Cache-Control: no-cache - so it crossed the wire again on every load.
   A static file is not covered by that meta tag.
   No Jinja in here; pinned by tests/spec/test_the_page_is_not_mostly_one_script.py */

/* Floating Navigation - Glassmorphism */
.floating-nav form.d-contents {
    display: contents;   /* the button stays a nav dot, the form adds no box */
}
.floating-nav .nav-dot-logout {
    background: none;
    border: none;
    padding: 0;
}
.floating-nav {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    background: rgba(30, 33, 37, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.floating-nav:hover {
    background: rgba(30, 33, 37, 0.85);
    border-color: rgba(54, 207, 255, 0.2);
}

.nav-dot {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    font-size: 14px;
}

.nav-dot:hover {
    color: #36cfff;
    background: rgba(54, 207, 255, 0.15);
    transform: scale(1.1);
}

.nav-dot.active {
    color: #36cfff;
    background: rgba(54, 207, 255, 0.2);
}

/* Tooltip */
.nav-dot::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    margin-right: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(5px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.nav-dot:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-divider {
    width: 16px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

/* Pulse animation for active section */
@keyframes navPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(54, 207, 255, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(54, 207, 255, 0); }
}

.nav-dot.active {
    animation: navPulse 2s ease-in-out infinite;
}

/* Hide on mobile - too small */
@media (max-width: 768px) {
    .floating-nav {
        display: none;
    }
}

/* Compact on smaller screens */
@media (max-height: 700px) {
    .floating-nav {
        gap: 2px;
        padding: 6px 4px;
    }
    .nav-dot {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .nav-divider {
        margin: 2px 0;
    }
}
