/* =========================================================================
   PlayML - Base Styles & Theme Variables
========================================================================= */

:root {
    /* Color Palette - Premium Futuristic Glassmorphism Theme */
    --bg-dark: #05050A;
    /* Deepest space black */
    --bg-panel: rgba(20, 20, 30, 0.45);
    /* Glass pane */
    --bg-panel-hover: rgba(30, 30, 45, 0.65);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;

    /* Accents */
    --accent-primary: #00e5ff;
    /* Vivid cyan */
    --accent-secondary: #ff0055;
    /* Neon pink */
    --accent-success: #00ffaa;
    --accent-warning: #ffcc00;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Orbitron', var(--font-sans);

    /* Layout */
    --nav-height: 70px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Effects */
    --glow-primary: 0 0 20px rgba(0, 229, 255, 0.6);
    --glow-secondary: 0 0 20px rgba(255, 0, 85, 0.6);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Glassmorphism Classes */
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* =========================================================================
   Reset & Accessibility Foundation
========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Ensure high contrast for readability */
    color-scheme: dark;
    background-color: var(--bg-dark);
    /* Prevent white flash behind body */
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: #fff;
    text-shadow: var(--glow-primary);
    outline: none;
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

.highlight {
    color: var(--accent-primary);
    text-shadow: var(--glow-primary);
}

.hidden {
    display: none !important;
}

/* Essential Loader to show immediately while JS loads */
#initial-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 240, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-secondary);
    border-radius: 50%;
    animation: loadspin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes loadspin {
    100% {
        transform: rotate(360deg);
    }
}

/* =========================================================================
   Global Background Canvas
========================================================================= */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.5;
    /* Keeps content readable */
    pointer-events: none;
}

/* =========================================================================
   Navigation
========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-smooth);
    box-shadow: var(--glow-primary);
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item:hover::after {
    width: 100%;
}

.user-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.xp-badge {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================================================
   Components (Buttons)
========================================================================= */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, rgba(0, 160, 255, 1) 100%);
    color: #000;
    box-shadow: var(--glow-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 229, 255, 0.8);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: var(--glow-primary);
}

/* =========================================================================
   Layout Sections
========================================================================= */
#app-container {
    padding-top: var(--nav-height);
    flex: 1;
    display: flex;
    flex-direction: column;
}

main>footer,
footer#footer {
    margin-top: auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================================
   Hero Section
========================================================================= */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================================================
   Concept Explorer Grid
========================================================================= */
.concept-explorer {
    padding: var(--spacing-lg) 5%;
    min-height: 100vh;
}

/* ==========================================================================
   Concept Explorer Node Map (V2 Update)
   ========================================================================== */

.exploration-map {
    position: relative;
    width: 100%;
    padding: 2rem 0 4rem 0;
}

.map-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.map-node:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 10;
}

.map-node .node-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 240, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 240, 255, 0.2);
    margin-bottom: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.map-node:hover .node-icon {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.8), inset 0 0 15px rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.1);
}

.map-node span {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

/* Tooltips */
.node-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    pointer-events: none;
    /* Let hover rely on the parent node */
}

.node-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 240, 255, 0.3);
}

.map-node:hover .node-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.node-tooltip h4 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-family: var(--font-secondary);
}

.node-tooltip p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.btn-micro {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================================================
   AI Tutor Global UI Placeholder
========================================================================= */
.ai-tutor {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 350px;
    background: var(--bg-panel);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), var(--glow-primary);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tutor-header {
    background: rgba(0, 240, 255, 0.1);
    padding: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.tutor-messages {
    height: 250px;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.message {
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    max-width: 85%;
}

.message.system {
    background: rgba(0, 240, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.tutor-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tutor-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    outline: none;
}

.tutor-input input:focus {
    border-color: var(--accent-primary);
}

.tutor-input button {
    background: none;
    border: none;
    color: var(--accent-primary);
    padding: 0 1rem;
    cursor: pointer;
    font-size: 1.2rem;
}

/* =========================================================================
   Responsive Design (Mobile First adjustments handled throughout, this is for breakpoints)
========================================================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 1rem 5%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-actions {
        flex-direction: column;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .ai-tutor {
        width: calc(100% - 2rem);
        bottom: 1rem;
        right: 1rem;
    }
}

/* =========================================================================
   Individual Module View Layouts
========================================================================= */
.module-view {
    padding: var(--spacing-md) 5%;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-header {
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.box-panel {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 0, 0, 0.5));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--accent-primary);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.box-panel h4 {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.box-panel p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.module-grid-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-md);
}

.viz-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.control-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-group label {
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

.slider-group label span {
    color: var(--accent-primary);
    font-family: var(--font-display);
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: var(--glow-primary);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.metrics-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
}

.loss-display {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-secondary);
    text-shadow: var(--glow-secondary);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: var(--spacing-md);
}

@media (max-width: 900px) {
    .module-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* CNN V4 Enhancements */
.flatten-neuron {
    flex: 1;
    background: var(--accent-primary);
    opacity: 0.3;
    transition: height 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

.flatten-neuron.active {
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.drawing-active {
    cursor: crosshair;
}

#dl-cnn-input-canvas.drawing {
    border-color: #ff00ff !important;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.cnn-signal-line {
    stroke: var(--accent-primary);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    animation: flowSignal 2s linear infinite;
    opacity: 0.2;
}

@keyframes flowSignal {
    to {
        stroke-dashoffset: -20;
    }
}

.btn-micro.active {
    background: var(--accent-primary);
    color: #000;
}

#cnn-story-hint {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    border-left: 4px solid var(--accent-primary);
    margin-bottom: 0.5rem;
}

.pulse-border {
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {
    0% {
        border-color: rgba(0, 240, 255, 0.4);
    }

    50% {
        border-color: rgba(0, 240, 255, 1);
    }

    100% {
        border-color: rgba(0, 240, 255, 0.4);
    }
}

/* CNN Laboratory Layout & Components */
.cnn-lab-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.kernel-grid input {
    width: 100%;
    height: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: monospace;
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.kernel-grid input:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Animations for sliding windows */
@keyframes slideWindow {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100%, 100%);
    }
}

/* 3x3 Glowing Receptive Field Grid */
#cnn-conv-sliding-window {
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary), inset 0 0 15px rgba(0, 240, 255, 0.5);
    background: rgba(0, 240, 255, 0.15);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    transition: all 0.1s linear;
}

#cnn-conv-sliding-window div {
    border: 1px dashed rgba(0, 240, 255, 0.6);
}

/* 2x2 Glowing Pooling Field Grid */
#cnn-pool-sliding-window {
    border: 2px solid var(--accent-warning);
    box-shadow: 0 0 15px var(--accent-warning), inset 0 0 15px rgba(255, 204, 0, 0.5);
    background: rgba(255, 204, 0, 0.15);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    transition: all 0.05s linear;
}

#cnn-pool-sliding-window div {
    border: 1px dashed rgba(255, 204, 0, 0.6);
}

/* Visual Math Tooltip */
.cnn-math-tooltip {
    position: absolute;
    background: rgba(10, 10, 20, 0.9);
    border: 1px solid var(--accent-secondary);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    color: #fff;
    font-family: monospace;
    font-size: 0.8rem;
    padding: 0.5rem;
    border-radius: 4px;
    pointer-events: none;
    z-index: 100;
    transform: translate(-50%, -120%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

.cnn-math-tooltip.visible {
    opacity: 1;
}

/* Animated Glowing Arrows */
.glowing-arrow {
    font-size: 2rem;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    animation: bounceArrow 1.5s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes bounceArrow {

    0%,
    100% {
        transform: translateY(0);
        text-shadow: 0 0 5px var(--accent-primary);
    }

    50% {
        transform: translateY(5px);
        text-shadow: 0 0 15px var(--accent-primary), 0 0 25px var(--accent-primary);
        color: #fff;
    }
}

/* Footer Creator Link */
.footer-creator-link {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.4);
    animation: creatorPulse 2.5s infinite alternate ease-in-out;
}

.footer-creator-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8), 0 0 20px rgba(0, 240, 255, 1);
    transform: scale(1.05);
}

@keyframes creatorPulse {
    from {
        text-shadow: 0 0 2px rgba(0, 240, 255, 0.2);
    }

    to {
        text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
    }
}

/* Split Indicators */
.split-labels {
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.label-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.dot-train {
    color: rgba(0, 240, 255, 1);
}

.dot-test {
    color: rgba(255, 0, 85, 1);
}

#explanation-output {
    background: rgba(0, 240, 255, 0.1);
    border-left: 4px solid var(--accent-primary);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
}