/* All styles moved from the original <style> block */

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.gray-glow {
    box-shadow: 0 0 10px rgba(100, 100, 100, 0.3);
    transition: all 0.3s ease;
}
.gray-glow:hover {
    box-shadow: 0 0 15px rgba(100, 100, 100, 0.5);
}

.gray-gradient-text {
    background: linear-gradient(-45deg, var(--gradient-colors));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-morph {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.theme-toggle:hover {
    transform: scale(1.1);
}

:root {
    --text-color: #f0f0f0;
    --bg-gradient-from: #000;
    --bg-gradient-via: #222;
    --bg-gradient-to: #000;
    --border-color: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(0, 0, 0, 0.3);
    --badge-bg: linear-gradient(to right, #333, #222);
    --badge-text: #eee;
    --gradient-colors: #fff, #ccc, #999, #666;
    --scrollbar-track: linear-gradient(180deg, #1a1a1a, #0a0a0a);
    --scrollbar-thumb: linear-gradient(180deg, #666, #555);
    --scrollbar-thumb-hover: linear-gradient(180deg, #777, #666);
    --button-bg: #666;
    --project-card-bg: rgba(30, 30, 30, 0.7);
    --project-card-border: rgba(100, 100, 100, 0.3);
    --project-card-hover: rgba(40, 40, 40, 0.8);
}

body.wb-theme {
    --text-color: #333;
    --bg-gradient-from: #fff;
    --bg-gradient-via: #eee;
    --bg-gradient-to: #fff;
    --border-color: rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.5);
    --badge-bg: linear-gradient(to right, #ddd, #eee);
    --badge-text: #333;
    --gradient-colors: #333, #555, #777, #999;
    --scrollbar-track: linear-gradient(180deg, #e0e0e0, #d0d0d0);
    --scrollbar-thumb: linear-gradient(180deg, #888, #666);
    --scrollbar-thumb-hover: linear-gradient(180deg, #666, #555);
    --button-bg: #999;
    --project-card-bg: rgba(240, 240, 240, 0.7);
    --project-card-border: rgba(200, 200, 200, 0.5);
    --project-card-hover: rgba(220, 220, 220, 0.8);
}

body {
    background: linear-gradient(to bottom right, var(--bg-gradient-from), var(--bg-gradient-via), var(--bg-gradient-to));
    color: var(--text-color);
    transition: all 0.5s ease;
    min-height: 100vh;
}

.project-card {
    background: var(--project-card-bg);
    border: 1px solid var(--project-card-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.project-card:hover {
    background: var(--project-card-hover);
    transform: translateY(-5px);
}

.theme-button {
    background: linear-gradient(to right, #9ca3af, #6b7280);
    transition: all 0.3s ease;
}
.theme-button:hover {
    background: linear-gradient(to right, #8b95a6, #5a6578);
}

.theme-button-private {
    background: linear-gradient(to right, #6b7280, #4b5563);
    opacity: 0.6;
}

.badge {
    background: var(--badge-bg);
    color: var(--badge-text);
}

audio {
    background-color: var(--button-bg);
    border-radius: 30px;
    padding: 5px;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.1);
    border-left-color: #9ca3af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #f0f0f0;
    text-align: center;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: block;
    padding: 1.5rem;
    background: var(--project-card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    background: var(--project-card-hover);
    border-color: #9ca3af;
}

.audio-preview {
    margin-top: 1.5rem;
    width: 100%;
    border-radius: 1rem;
}

.speed-slider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--project-card-bg);
    border-radius: 5px;
    outline: none;
}

.speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(to right, #9ca3af, #6b7280);
    cursor: pointer;
}

.speed-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(to right, #9ca3af, #6b7280);
    cursor: pointer;
    border: none;
}

.speed-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    min-width: 50px;
    text-align: center;
}

/* Success result section */
.success-result {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-btn {
    background: linear-gradient(to right, #10b981, #059669);
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(to right, #059669, #047857);
    transform: scale(1.05);
}

.preview-btn {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    transition: all 0.3s ease;
}

.preview-btn:hover {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    transform: scale(1.05);
}

/* Audio quality settings */
.quality-slider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--project-card-bg);
    border-radius: 5px;
    outline: none;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(to right, #3b82f6, #2563eb);
    cursor: pointer;
}

.quality-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(to right, #3b82f6, #2563eb);
    cursor: pointer;
    border: none;
}

.quality-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    min-width: 50px;
    text-align: center;
}

.quality-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.quality-low {
    background: linear-gradient(to right, #ef4444, #dc2626);
}

.quality-medium {
    background: linear-gradient(to right, #f59e0b, #d97706);
}

.quality-high {
    background: linear-gradient(to right, #10b981, #059669);
}

.quality-very-high {
    background: linear-gradient(to right, #3b82f6, #2563eb);
}
