* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.controls {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
}

input, select {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    font-size: 1rem;
    color: #333;
}

input[type="range"] {
    background: transparent;
    -webkit-appearance: none;
    height: 6px;
}

input[type="range"]::-webkit-slider-track {
    background: rgba(255,255,255,0.3);
    height: 6px;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: #4CAF50;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
}

.views {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.view-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    max-width: 900px;
}

.view-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

canvas {
    width: 100%;
    background: #000;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.2);
}

.info-panel {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.spl-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .views {
        justify-content: center;
    }
    
    .controls {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
}
