body {
    margin: 0;
    padding: 0;
    background: #1a1a1a;
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

.controls {
    background: #2a2a2a;
    padding: 16px;
    width: 320px;
    min-width: 320px;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #333;
    border-radius: 6px;
}

.control-group h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

select, input[type="range"] {
    background: #444;
    border: 1px solid #555;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

select {
    width: 120px;
}

input[type="range"] {
    flex: 1;
}

input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

label {
    font-size: 14px;
    min-width: 100px;
}

.value-display {
    font-size: 14px;
    color: #aaa;
    min-width: 45px;
    text-align: right;
}

.canvas-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    padding: 16px;
}

canvas {
    image-rendering: pixelated;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
}

/* Scrollbar styling */
.controls::-webkit-scrollbar {
    width: 8px;
}

.controls::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.controls::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.controls::-webkit-scrollbar-thumb:hover {
    background: #555;
}