:root {
    --eye-red: #E00513;
    --eye-red-low: rgba(224, 5, 19, 0.1);
    --bg-zinc: #F4F4F5;
}

/* --- BASE --- */
body { 
    background-color: var(--bg-zinc); 
    overflow-x: hidden;
}

/* --- ANIMATIONS --- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* --- COMPOSANTS UI --- */
.glass-panel {
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--eye-red) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(224, 5, 19, 0.08);
}

/* --- MOTEUR DE SIMULATION (CANVAS) --- */
#ultraCanvas { 
    display: block; 
    width: 100%; 
    height: 100%; 
}

.sim-ui {
    position: absolute; 
    top: 0; 
    left: 0; 
    padding: 25px; 
    pointer-events: none; 
    z-index: 5; 
    color: #fff;
    width: 100%;
}

.ui-header h2 { 
    font-size: 0.75rem; 
    letter-spacing: 2px; 
    color: #ffffff; 
    margin: 0; 
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.ui-legend { 
    margin-top: 20px; 
    background: rgba(10, 12, 16, 0.9); 
    padding: 15px; 
    border-radius: 4px; 
    pointer-events: auto; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: fit-content;
}

.legend-item { 
    font-size: 0.65rem; 
    display: flex; 
    align-items: center; 
    margin: 6px 0; 
    color: #a0a0a0; 
    font-weight: 700;
    text-transform: uppercase;
}

.color-box { width: 10px; height: 10px; margin-right: 10px; border-radius: 2px; }
.v360 { background: rgba(255, 0, 255, 0.6); box-shadow: 0 0 8px rgba(255, 0, 255, 0.4); }
.v180 { background: rgba(0, 255, 255, 0.6); box-shadow: 0 0 8px rgba(0, 255, 255, 0.4); }
.v90 { background: rgba(255, 165, 0, 0.6); box-shadow: 0 0 8px rgba(255, 165, 0, 0.4); }

.status-dot { 
    width: 8px; 
    height: 8px; 
    background: #00ff44; 
    border-radius: 50%; 
    display: inline-block; 
    margin-right: 10px; 
    box-shadow: 0 0 8px #00ff44;
    animation: pulse 1.5s infinite;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-zinc); }
::-webkit-scrollbar-thumb { background: #bbb; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--eye-red); }