/**
 * Kalman Filter Visualization Styles
 * Dark theme for canvas only, scoped to simulation area
 */

.kalman-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

#p5canvas {
    display: block;
    margin: 20px auto;
    border: 2px solid #333333;
    border-radius: 5px;
}

#controls {
    display: block;
    padding: 20px;
    background-color: #000000;
    border: 1px solid #333333;
    border-radius: 5px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

#controls button {
    background-color: #003333;
    border: 1px solid #00aaaa;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 8px 16px;
    margin: 5px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s, border-color 0.2s;
    display: inline-block;
}

#controls button:hover {
    background-color: #004444;
    border-color: #00ffff;
}

#controls button:active {
    background-color: #005555;
}

#controls span {
    display: inline-block;
    margin: 0 5px;
}

#controls input[type="range"] {
    width: 200px;
    height: 6px;
    background-color: #333333;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

#controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background-color: #00ffff;
    border-radius: 50%;
    cursor: pointer;
}

#controls input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background-color: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Scoped styles for Kalman Filter canvas area only */
#content_sim {
    background-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    #controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    #controls input[type="range"] {
        width: 100%;
    }
}
