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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2rem;
    background: linear-gradient(90deg, #00d9ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: #888;
    font-size: 1rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1rem;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

canvas {
    width: 100%;
    height: 600px;
    background: #0d1117;
    border-radius: 8px;
    border: 1px solid #333;
}

.controls {
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group h3 {
    color: #00d9ff;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.control-item {
    margin-bottom: 0.75rem;
}

.control-item label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.25rem;
}

.control-item input[type="range"] {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

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

.checkbox-item {
    margin-bottom: 0.5rem;
}

.checkbox-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #aaa;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    accent-color: #00d9ff;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preset-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(0,217,255,0.1);
    border: 1px solid #00d9ff;
    color: #00d9ff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: rgba(0,217,255,0.2);
}

.preset-btn.active {
    background: #00d9ff;
    color: #0a0a0f;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.actions button {
    flex: 1;
    padding: 0.6rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.actions button:hover {
    background: rgba(255,255,255,0.15);
}

.stats {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    padding: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid #222;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item span:first-child {
    color: #888;
}

.stat-item span:last-child {
    color: #00ffaa;
    font-family: monospace;
}

footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.85rem;
}
