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

:root {
    --color-original: #525252;
    --color-compressed: #ecb01a;
    --color-threshold: #971616;
    --canvas-background: #252525;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1d1d1d;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #2d2d2d;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    padding: 40px;
    max-width: 1000px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #ecb01a;
    margin-bottom: 30px;
    font-size: 28px;
}

.canvas-container {
    position: relative;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
    border: 2px solid #ecb01a;
}

#waveformCanvas {
    width: 100%;
    border-radius: 8px;
    background: #0f0f0f;
    display: block;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #bbb;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.legend-original {
    background-color: var(--color-original);
}

.legend-compressed {
    background-color: var(--color-compressed);
}

.legend-threshold {
    background-color: var(--color-threshold);
}

.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 500px;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

label {
    font-size: 16px;
    font-weight: 600;
    color: #ecb01a;
}

.value-display {
    font-size: 14px;
    color: #ecb01a;
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

.slider-input {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #ecb01a 0%, #d4911a 100%);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(236, 176, 26, 0.3);
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ecb01a;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 2px solid #ecb01a;
    transition: all 0.2s ease;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(236, 176, 26, 0.6);
}

.slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ecb01a;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 2px solid #ecb01a;
    transition: all 0.2s ease;
}

.slider-input::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(236, 176, 26, 0.6);
}

.info {
    background: #252525;
    border-left: 4px solid #ecb01a;
    padding: 20px;
    border-radius: 8px;
    color: #bbb;
    font-size: 14px;
}

.info h2 {
    margin-bottom: 10px;
    font-weight: 600;
    color: #ecb01a;
    font-size: 18px;
}

.info p {
    margin-bottom: 10px;
    font-weight: 600;
    color: #ecb01a;
}

.info ul {
    list-style: none;
    margin-left: 0;
}

.info li {
    padding: 8px 0;
    color: #999;
}

.footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 12px;
    margin-top: 40px;
    border-top: 1px solid #444;
}

.footer p {
    margin: 0;
}

.info strong {
    color: #ecb01a;
}

/* Responsivo */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .slider-group {
        max-width: 100%;
    }

    .legend {
        gap: 15px;
    }

    #waveformCanvas {
        max-width: 100%;
    }
}
