:root {
    --bg-color: #1e1e1e;
    --panel-color: #2b2b2b;
    --accent-color: #ffcc00;
    --text-color: #e0e0e0;
    --grid-color: #444;
    --curve-color: #ffffff;
    --spectrum-color: rgba(100, 200, 255, 0.3);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background-color: var(--panel-color);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

h1 {
    margin: 0;
    font-size: 24px;
    color: var(--accent-color);
}

.controls {
    display: flex;
    gap: 10px;
}

.btn {
    background-color: #444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover:not(:disabled) {
    background-color: #555;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.file-btn {
    background-color: #007acc;
}
.btn.file-btn:hover {
    background-color: #0062a3;
}

.playback-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background-color: #222;
    padding: 5px 10px;
    border-radius: 4px;
}

#progressBar {
    flex: 1;
    height: 5px;
    -webkit-appearance: none;
    background: #444;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    transition: transform 0.1s;
}

#progressBar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#currentTime, #totalTime {
    font-family: monospace;
    font-size: 12px;
    color: #aaa;
    min-width: 40px;
    text-align: center;
}

.eq-display {
    flex: 1;
    position: relative;
    background-color: #111;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.overlay-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    color: #aaa;
}

.footer {
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    text-align: right;
}
