/* Visualization styles - Waveform, canvas, controls, volume slider, live indicator */

.waveform-container {
    width: 100%;
    height: 80px;
    margin-top: 10px;
    background: linear-gradient(180deg, #e8f4f8 0%, #d0e8f0 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

body.dark-mode .waveform-container {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.waveform-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.waveform-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.waveform-status {
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
}

body.dark-mode .waveform-status {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.waveform-controls {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.waveform-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    pointer-events: auto;
}

.waveform-btn.mute-btn-labeled {
    width: auto;
    height: 28px;
    border-radius: 14px;
    padding: 0 10px;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
}

.waveform-btn.mute-btn-labeled #mute-label {
    min-width: 38px;
    text-align: center;
}

.waveform-btn:hover {
    background: rgba(0, 0, 0, 0.25);
}

.waveform-btn.muted {
    background: rgba(231, 76, 60, 0.6);
    color: white;
}

body.dark-mode .waveform-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

body.dark-mode .waveform-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.volume-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    outline: none;
    pointer-events: auto;
}

body.dark-mode .volume-slider {
    background: rgba(255, 255, 255, 0.3);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
}

body.dark-mode .volume-slider::-webkit-slider-thumb {
    background: white;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    border: none;
}

body.dark-mode .volume-slider::-moz-range-thumb {
    background: white;
}

.live-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(231, 76, 60, 0.9);
    border-radius: 4px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-indicator.inactive {
    background: rgba(127, 140, 141, 0.7);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: livePulse 1.5s infinite;
}

.live-indicator.inactive .live-dot {
    animation: none;
    opacity: 0.5;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
