/* Spectrum Analyzer Tool Styles */

/* Spectrum Canvas */
#spectrumCanvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    background: #f0f0f0;
}

[data-bs-theme="dark"] #spectrumCanvas {
    background: #1a1a1a;
}

.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, .card-header h6 {
    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);
}

.filter-svg {
    filter: none;
}

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

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

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

.form-select {
    cursor: pointer;
}

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

/* Smoothing Range Slider */
#smoothing {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #dee2e6;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    border: 1px solid #ced4da;
}

#smoothing::-webkit-slider-track {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #dee2e6;
    border-radius: 4px;
}

#smoothing::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #052c65;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(5, 44, 101, 0.3);
    transition: all 0.2s ease;
}

#smoothing::-webkit-slider-thumb:hover {
    background: #041f4a;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(5, 44, 101, 0.4);
}

#smoothing::-webkit-slider-thumb:active {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(5, 44, 101, 0.5);
}

#smoothing::-moz-range-track {
    height: 8px;
    background: #dee2e6;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

#smoothing::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #052c65;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(5, 44, 101, 0.3);
    transition: all 0.2s ease;
}

#smoothing::-moz-range-thumb:hover {
    background: #041f4a;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(5, 44, 101, 0.4);
}

#smoothing::-moz-range-thumb:active {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(5, 44, 101, 0.5);
}

/* Dark mode */
[data-bs-theme="dark"] #smoothing {
    background: #6c757d;
    border-color: #495057;
}

[data-bs-theme="dark"] #smoothing::-webkit-slider-track {
    background: #6c757d;
}

[data-bs-theme="dark"] #smoothing::-moz-range-track {
    background: #6c757d;
    border-color: #495057;
}

[data-bs-theme="dark"] #smoothing::-webkit-slider-thumb {
    background: #a855f7;
    border-color: #212529;
}

[data-bs-theme="dark"] #smoothing::-moz-range-thumb {
    background: #a855f7;
    border-color: #212529;
}

[data-bs-theme="dark"] #smoothing::-webkit-slider-thumb:hover {
    background: #9333ea;
}

[data-bs-theme="dark"] #smoothing::-moz-range-thumb:hover {
    background: #9333ea;
}

/* Smoothing labels */
#smoothing + .d-flex .text-muted {
    user-select: none;
    cursor: default;
}

@media (max-width: 768px) {

    #spectrumCanvas {
        height: 200px;
    }
}
