/* Ensure the browser root fills the whole viewport */
html, body, #react-entry-point, #_dash-app-content {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Make the colorbar range slider rail and track transparent so the gradient shows through */
#salt-range-slider .rc-slider-rail,
#salt-range-slider .rc-slider-track,
#salt-range-slider .rc-slider-tracks {
    background: transparent !important;
    box-shadow: none !important;
}

/* Style the handles to stand out on the gradient */
#salt-range-slider .rc-slider-handle {
    background-color: white !important;
    border-color: rgba(0,0,0,0.4) !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.35) !important;
    opacity: 1 !important;
    width: 16px !important;
    height: 16px !important;
}

#salt-range-slider .rc-slider-handle:hover,
#salt-range-slider .rc-slider-handle:focus,
#salt-range-slider .rc-slider-handle-dragging {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.25) !important;
}

/* ── Navbar links ─────────────────────────────────────────────────────────── */
.nav-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.10);
}

.nav-link-active {
    color: white !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* ── Training spinner ─────────────────────────────────────────────────────── */
@keyframes ml-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ml-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(133, 100, 4, 0.25);
    border-top-color: #856404;
    border-radius: 50%;
    animation: ml-spin 0.8s linear infinite;
    flex-shrink: 0;
}

.ml-spinner-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Training log panel ───────────────────────────────────────────────────── */
.ml-log-panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 10px;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
}

/* ── Confidence threshold slider ──────────────────────────────────────────── */
.conf-slider .rc-slider {
    margin: 4px 6px;
}

