.controls {
    text-align: center;
    margin: 20px 0;
}

.controls label {
    margin-right: 10px;
}

.controls input {
    margin: 0 10px;
    width: 60px;
    text-align: center;
}

.controls button {
    margin: 0 5px;
}

.dither-output {
    margin: 20px auto;
    text-align: center;
}

.pattern-controls {
    text-align: center;
    margin: 10px 0;
    line-height: 1.5em;
}

.pattern-controls button {
    margin: 0 5px;
}

.dither-presets {
    margin: 20px auto;
    text-align: center;
}

.comparison-controls {
    text-align: center;
    margin: 20px auto;
}

.comparison-controls label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

#comparisonSlider {
    width: 100%;
    height: 8px;
    background: #ddd;
    outline: none;
    margin-bottom: 10px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

#comparisonSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    cursor: pointer;
    border: none;
}

#comparisonSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#comparisonSlider::-moz-range-track {
    height: 8px;
    background: #ddd;
    border: none;
}

.comparison-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.comparison-labels span {
    background: #f0f0f0;
    padding: 4px 8px;
}

