/* Channel Mixer Tool Styles */

/* ============================================
   WAVEFORM SECTION
   ============================================ */

.waveform-container {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.06) 100%);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-height: 128px;
}

[data-bs-theme="dark"] .waveform-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.waveform-controls {
    font-size: 0.9rem;
}

.time-display {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================
   PLAYBACK CONTROLS
   ============================================ */

.playback-controls .btn {
    transition: all 0.2s ease;
}

.playback-controls .btn:hover {
    transform: scale(1.05);
}

.playback-controls .btn-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   CARD STYLES
   ============================================ */

.card {
    border-radius: 8px;
    border: 1px dotted var(--bs-dark-bg-subtle);
    background: var(--bs-light-border-subtle);
}

.card-header {
    background: var(--bs-secondary-bg-subtle);
    border-bottom: 1px dotted var(--bs-dark-bg-subtle);
}

.card-header h5 {
    margin: 0;
}

[data-bs-theme="dark"] .card {
    background-color: rgba(30, 34, 42, 0.6);
    border-color: rgba(168, 85, 247, 0.3);
}

[data-bs-theme="dark"] .card-header {
    background: rgba(30, 34, 42, 0.8);
    border-bottom-color: rgba(168, 85, 247, 0.3);
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress {
    height: 30px;
    font-size: 14px;
}

/* ============================================
   FILTER SVG
   ============================================ */

.filter-svg {
    filter: none;
}

[data-bs-theme="dark"] .filter-svg {
    filter: invert(1) brightness(0.8);
}

[data-bs-theme="dark"] .alert-info {
    background-color: #132a4a;
    border-color: #0d6efd;
    color: #9db5d0;
}

[data-bs-theme="dark"] .alert-info .filter-svg {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(175deg);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-label {
    cursor: default;
    user-select: none;
}

.form-control[readonly] {
    cursor: default;
}

.form-select {
    cursor: pointer;
}

.btn img {
    display: inline-block;
    vertical-align: middle;
}

/* ============================================
   FORM RANGE SLIDER
   ============================================ */

.form-range {
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        #e9ecef,
        #e9ecef 5px,
        #d3d6d9 5px,
        #d3d6d9 10px
    );
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #052c65;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-range::-webkit-slider-thumb:hover {
    background: #041f4a;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #052c65;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-range::-moz-range-thumb:hover {
    background: #041f4a;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.form-range::-webkit-slider-runnable-track {
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        #e9ecef,
        #e9ecef 5px,
        #d3d6d9 5px,
        #d3d6d9 10px
    );
    border-radius: 4px;
}

.form-range::-moz-range-track {
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        #e9ecef,
        #e9ecef 5px,
        #d3d6d9 5px,
        #d3d6d9 10px
    );
    border-radius: 4px;
}

.form-range::-moz-range-progress {
    height: 8px;
    background: #052c65;
    border-radius: 4px;
}

/* Dark mode slider */
[data-bs-theme="dark"] .form-range {
    background: repeating-linear-gradient(
        45deg,
        #343a40,
        #343a40 5px,
        #495057 5px,
        #495057 10px
    );
}

[data-bs-theme="dark"] .form-range::-webkit-slider-thumb {
    background: #6ea8fe;
}

[data-bs-theme="dark"] .form-range::-webkit-slider-thumb:hover {
    background: #9ec5fe;
}

[data-bs-theme="dark"] .form-range::-moz-range-thumb {
    background: #6ea8fe;
}

[data-bs-theme="dark"] .form-range::-moz-range-thumb:hover {
    background: #9ec5fe;
}

[data-bs-theme="dark"] .form-range::-webkit-slider-runnable-track {
    background: repeating-linear-gradient(
        45deg,
        #343a40,
        #343a40 5px,
        #495057 5px,
        #495057 10px
    );
}

[data-bs-theme="dark"] .form-range::-moz-range-track {
    background: repeating-linear-gradient(
        45deg,
        #343a40,
        #343a40 5px,
        #495057 5px,
        #495057 10px
    );
}

[data-bs-theme="dark"] .form-range::-moz-range-progress {
    background: #6ea8fe;
}

/* ============================================
   AUDIO PREVIEW (for processed audio)
   ============================================ */

.audio-preview-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bs-light-border-subtle);
    border-radius: 8px;
    overflow: hidden;
    padding: 15px;
    border: 1px dotted var(--bs-dark-bg-subtle);
}

.audio-preview {
    width: 100%;
    display: block;
    outline: none;
}

[data-bs-theme="dark"] .audio-preview-wrapper {
    background: rgba(30, 34, 42, 0.6);
    border-color: rgba(168, 85, 247, 0.3);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .waveform-container {
        padding: 10px;
        min-height: 100px;
    }

    .playback-controls .btn-lg {
        width: 48px;
        height: 48px;
    }

    .audio-preview-wrapper {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .time-display {
        font-size: 0.9rem;
    }
}
