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

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.settings-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    overflow-y: auto;
    background-color: #f5f5f5;
    padding: 20px;
}

.main-content {
    position: fixed;
    left: 300px;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
    background-color: #ffffff;
}

.controls {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.control-group {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.control-group:last-child {
    border-bottom: none;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
input[type="range"] {
    width: 100%;
    margin: 10px 0;
}
input[type="color"] {
    padding: 0;
    width: 50px;
    height: 30px;
}
.color-input {
    display: flex;
    align-items: center;
    gap: 10px;
}
button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    margin-top: 5px;
}
button:hover {
    background: #1d4ed8;
}
button:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}
canvas {
    width: 100%;
    height: 100%;
    touch-action: none;
}
.value-display {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}
select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}
.gradient-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}
.resolution-info {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
