/* Audio Normalizer Tool Styles */

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

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

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

.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);
}

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

.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-label {
    cursor: default;
    user-select: none;
}

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

.form-select {
    cursor: pointer;
}

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

/* Audio Controls Styling */
.audio-preview-wrapper {
    background: var(--bs-light-border-subtle);
    border-radius: 8px;
    padding: 15px;
    border: 1px dotted var(--bs-dark-bg-subtle);
}

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

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

/* Preset Button Styling - Based on swap button from base58-encoder-decoder */
.btn-preset {
    background-color: transparent;
    border: 1px solid #052c65;
    color: #052c65;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
}

.btn-preset .me-1 {
    filter: none;
}

.btn-preset:hover {
    background-color: #052c65;
    border-color: #052c65;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-preset:hover .me-1 {
    filter: brightness(0) invert(1);
}

.btn-preset:focus,
.btn-preset:active {
    background-color: #041f4d;
    border-color: #041f4d;
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(5, 44, 101, 0.25);
}

.btn-preset:focus .me-1,
.btn-preset:active .me-1 {
    filter: brightness(0) invert(1);
}

[data-bs-theme="dark"] .btn-preset {
    border-color: #6ea8fe;
    color: #6ea8fe;
}

[data-bs-theme="dark"] .btn-preset:hover {
    background-color: #6ea8fe;
    border-color: #6ea8fe;
    color: #000000;
}

[data-bs-theme="dark"] .btn-preset:hover .me-1 {
    filter: none;
}

[data-bs-theme="dark"] .btn-preset:focus,
[data-bs-theme="dark"] .btn-preset:active {
    background-color: #548cd4;
    border-color: #548cd4;
    color: #000000;
}

@media (max-width: 768px) {
    .audio-preview-wrapper {
        padding: 15px;
    }

}
