/* White Noise Generator Styles */

/* ============================================
   VISUALIZER
   ============================================ */

.visualizer-container {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

[data-bs-theme="dark"] .visualizer-container {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.visualizer-canvas {
    width: 100%;
    height: 120px;
    display: block;
}

/* ============================================
   EQ SLIDERS CONTAINER
   ============================================ */

.eq-sliders-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 10px;
    padding: 25px 15px;
    background: linear-gradient(135deg, rgba(5, 44, 101, 0.03) 0%, rgba(5, 44, 101, 0.08) 100%);
    border-radius: 12px;
    border: 1px solid rgba(5, 44, 101, 0.15);
    min-height: 280px;
    overflow-x: auto;
}

[data-bs-theme="dark"] .eq-sliders-container {
    background: linear-gradient(135deg, rgba(5, 44, 101, 0.1) 0%, rgba(5, 44, 101, 0.2) 100%);
    border-color: rgba(5, 44, 101, 0.3);
}

/* Individual EQ Slider */
.eq-slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 70px;
    min-width: 35px;
    transition: transform 0.2s ease;
}

.eq-slider-wrapper:hover {
    transform: scale(1.02);
}

/* Slider Label (Frequency) */
.eq-slider-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-primary-text-emphasis);
    text-align: center;
    min-height: 18px;
}

/* Slider Value Display */
.eq-slider-value {
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--bs-success-text-emphasis);
    min-height: 18px;
    text-align: center;
}

/* Vertical Slider Container */
.eq-slider-vertical {
    position: relative;
    width: 35px;
    height: 150px;
}

/* Vertical Range Input */
.eq-slider-vertical input[type="range"] {
    appearance: none;
    width: 150px;
    height: 35px;
    background: transparent;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center;
}

/* Range Track */
.eq-slider-vertical input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right,
        #dc3545 0%,
        #dc3545 25%,
        #ffc107 25%,
        #ffc107 50%,
        #28a745 50%,
        #28a745 75%,
        #ffc107 75%,
        #ffc107 100%
    );
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .eq-slider-vertical input[type="range"]::-webkit-slider-runnable-track {
    border-color: rgba(255, 255, 255, 0.2);
}

.eq-slider-vertical input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right,
        #dc3545 0%,
        #dc3545 25%,
        #ffc107 25%,
        #ffc107 50%,
        #28a745 50%,
        #28a745 75%,
        #ffc107 75%,
        #ffc107 100%
    );
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Range Thumb */
.eq-slider-vertical input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--bs-primary);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease;
    margin-top: -6px;
}

.eq-slider-vertical input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.eq-slider-vertical input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--bs-primary);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease;
}

.eq-slider-vertical input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Zero dB Line */
.eq-zero-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(220, 53, 69, 0.4);
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   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;
}

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

.filter-svg {
    filter: none;
}

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

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

@media (max-width: 992px) {
    .eq-sliders-container {
        gap: 8px;
        padding: 20px 12px;
        min-height: 250px;
    }

    .eq-slider-wrapper {
        max-width: 55px;
    }

    .eq-slider-vertical {
        width: 28px;
        height: 120px;
    }

    .eq-slider-vertical input[type="range"] {
        width: 120px;
        height: 28px;
    }

    .eq-slider-label {
        font-size: 0.7rem;
    }

    .eq-slider-value {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .visualizer-canvas {
        height: 80px;
    }

    .eq-sliders-container {
        gap: 5px;
        padding: 15px 8px;
        min-height: 220px;
    }

    .eq-slider-wrapper {
        max-width: 40px;
        min-width: 25px;
    }

    .eq-slider-vertical {
        width: 22px;
        height: 100px;
    }

    .eq-slider-vertical input[type="range"] {
        width: 100px;
        height: 22px;
    }

    .eq-slider-vertical input[type="range"]::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
        margin-top: -4px;
    }

    .eq-slider-vertical input[type="range"]::-moz-range-thumb {
        width: 14px;
        height: 14px;
    }

    .eq-slider-label {
        font-size: 0.6rem;
    }

    .eq-slider-value {
        font-size: 0.55rem;
    }
}

@media (max-width: 576px) {
    .eq-sliders-container {
        padding: 12px 5px;
    }

    .eq-slider-vertical {
        height: 80px;
    }

    .eq-slider-vertical input[type="range"] {
        width: 80px;
    }
}
