/**
 * Audio Normalizer Pro - Modern Golden Gradient Design
 * Version: 1.0.0
 * Überschreibt Basis-Styles mit Golden-Gradient-Farbpalette und modernem Design
 * Gradient: linear-gradient(135deg, #FFE135, #FFD700, #B8860B, #2F4F4F, #000000)
 */

/* === CSS VARIABLEN - GOLDEN GRADIENT PALETTE === */
:root {
    /* Haupt-Gradient */
    --gradient-bg: linear-gradient(135deg, #FFE135, #FFD700, #B8860B, #2F4F4F, #000000);
    
    /* Einzelfarben aus dem Gradient */
    --golden-light: #FFE135;      /* Helles Gold */
    --golden-medium: #FFD700;     /* Gold */
    --golden-dark: #B8860B;       /* Dunkles Gold */
    --slate-blue: #2F4F4F;        /* Schieferblau */
    --black: #000000;             /* Schwarz */
    
    /* Funktionale Farben */
    --text-primary: #000000;      /* Schwarzer Text auf hellen Bereichen */
    --text-secondary: #2F4F4F;    /* Schieferblau für sekundären Text */
    --text-light: #FFE135;        /* Heller Text auf dunklen Bereichen */
    --text-gold: #FFD700;         /* Gold-Text */
    
    /* Schatten und Effekte */
    --shadow-light: 0 2px 8px rgba(255, 215, 0, 0.2);
    --shadow-medium: 0 4px 15px rgba(255, 215, 0, 0.3);
    --shadow-heavy: 0 8px 25px rgba(255, 215, 0, 0.4);
    --shadow-dark: 0 4px 15px rgba(0, 0, 0, 0.5);
    
    /* Transitions und Geometrie */
    --transition: all 0.2s ease;
    --border-radius: 8px;
    
    /* Gradient-Varianten */
    --gradient-light: linear-gradient(135deg, #FFE135, #FFD700, #B8860B);
    --gradient-medium: linear-gradient(135deg, #FFD700, #B8860B, #2F4F4F);
    --gradient-dark: linear-gradient(135deg, #B8860B, #2F4F4F, #000000);
    --gradient-reverse: linear-gradient(315deg, #000000, #2F4F4F, #B8860B, #FFD700, #FFE135);
}

/* === BODY OVERRIDE - GOLDEN GRADIENT === */
body {
    background: var(--gradient-bg) !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    min-height: 100vh !important;
}

/* === HOME ICON === */
.home-icon-container {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
}

.home-icon-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: var(--border-radius) !important;
    color: var(--text-secondary) !important;
    transition: var(--transition) !important;
    box-shadow: var(--shadow-light) !important;
    backdrop-filter: blur(10px);
    text-decoration: none !important;
}

.home-icon-link:hover {
    background: var(--golden-light) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-medium) !important;
    color: var(--text-primary) !important;
}

.home-icon {
    width: 20px !important;
    height: 20px !important;
}

/* === CARDS MODERNISIERUNG - GOLDEN THEME === */
.card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: var(--shadow-medium) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3) !important;
}

.card:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-heavy) !important;
    border-color: var(--golden-medium) !important;
}

/* === MODERNE BUTTONS - GOLDEN THEME === */
.btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-height: 30px !important;
    gap: 6px !important;
    transition: var(--transition) !important;
    border-radius: var(--border-radius) !important;
    border: none !important;
    font-weight: 500 !important;
}

.btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-light) !important;
}

/* === BUTTON FARBEN - GOLDEN GRADIENT THEME === */
.btn-primary {
    background: var(--gradient-medium) !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.btn-primary:hover {
    background: var(--gradient-light) !important;
    color: var(--text-primary) !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5) !important;
}

.btn-success {
    background: linear-gradient(135deg, #10B981, #059669, #047857) !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #34D399, #10B981, #059669) !important;
}

.btn-warning {
    background: var(--gradient-light) !important;
    color: var(--text-primary) !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5) !important;
}

.btn-warning:hover {
    background: var(--golden-light) !important;
    box-shadow: 0 0 15px rgba(255, 225, 53, 0.6) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626, #B91C1C) !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #F87171, #EF4444, #DC2626) !important;
}

.btn-secondary {
    background: rgba(255, 215, 0, 0.2) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--golden-medium) !important;
}

.btn-secondary:hover {
    background: var(--golden-medium) !important;
    color: var(--text-primary) !important;
}

/* === HORIZONTALE BUTTON GRUPPEN === */
.btn-group {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    margin: 12px 0 !important;
}

.btn-group-center {
    justify-content: center !important;
}

.controls-horizontal {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.export-controls {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 16px 0 !important;
}

/* === UPLOAD AREA - GOLDEN GRADIENT === */
.upload-area {
    border: 2px dashed var(--golden-medium) !important;
    border-radius: var(--border-radius) !important;
    padding: 1.5rem !important;
    background: var(--gradient-light) !important;
    transition: var(--transition) !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

.upload-area::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    z-index: 1 !important;
}

.upload-area > * {
    position: relative !important;
    z-index: 2 !important;
}

.upload-area:hover, 
.upload-area.dragover {
    border-color: var(--golden-light) !important;
    background: var(--gradient-reverse) !important;
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: var(--shadow-heavy) !important;
}

.upload-text {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5) !important;
}

.upload-button {
    background: var(--gradient-dark) !important;
    color: var(--text-light) !important;
    font-size: 12px !important;
    transition: var(--transition) !important;
    pointer-events: none !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

.upload-button:hover {
    background: var(--gradient-medium) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-light) !important;
}

/* === FORMAT SELECTOR - GOLDEN THEME === */
.format-option {
    min-width: 100px !important;
    padding: 10px !important;
    border: 2px solid var(--golden-dark) !important;
    transition: var(--transition) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: var(--border-radius) !important;
}

.format-option:hover {
    border-color: var(--golden-medium) !important;
    transform: translateY(-1px) !important;
    background: var(--gradient-light) !important;
    box-shadow: var(--shadow-light) !important;
}

.format-option.active {
    border-color: var(--golden-light) !important;
    background: var(--gradient-medium) !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.format-name {
    font-size: 13px !important;
    color: inherit !important;
    font-weight: 600 !important;
}

.format-description {
    font-size: 11px !important;
    color: inherit !important;
    opacity: 0.8 !important;
}

/* === FORMAT OPTIONS (ERWEITERT) - GOLDEN THEME === */
.format-options {
    background: var(--gradient-dark) !important;
    color: var(--text-light) !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin-top: 12px !important;
    display: none;
    border: 2px solid var(--golden-medium) !important;
}

.format-options.active-format {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

.format-options h4 {
    color: var(--text-light) !important;
    font-size: 13px !important;
    margin-bottom: 12px !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

.option-row {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    flex-wrap: wrap !important;
}

.option-group {
    flex: 1 !important;
    min-width: 120px !important;
}

.option-group label {
    color: var(--text-light) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    display: block !important;
    margin-bottom: 4px !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

.option-group select {
    background: rgba(255, 215, 0, 0.2) !important;
    border: 1px solid var(--golden-medium) !important;
    color: var(--text-primary) !important;
    border-radius: 4px !important;
    width: 100% !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
}

.option-group select option {
    background: var(--golden-light) !important;
    color: var(--text-primary) !important;
}

/* === PROGRESS BAR - GOLDEN GRADIENT === */
.progress-container {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 6px !important;
    padding: 12px !important;
    border: 2px solid var(--golden-medium) !important;
    box-shadow: var(--shadow-medium) !important;
}

.progress-label {
    font-size: 12px !important;
    color: var(--text-primary) !important;
    font-weight: 500 !important;
}

.progress-bar {
    height: 6px !important;
    background: rgba(184, 134, 11, 0.3) !important;
    border-radius: 3px !important;
    border: 1px solid var(--golden-dark) !important;
}

.progress-bar-inner {
    background: var(--gradient-light) !important;
    border-radius: 3px !important;
    transition: width 0.3s ease !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6) !important;
}

/* === STATUS - GOLDEN THEME === */
#status {
    background: rgba(255, 225, 53, 0.2) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--golden-medium) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: var(--border-radius) !important;
    padding: 12px !important;
}

#status.success {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #065F46 !important;
    border-color: #10B981 !important;
}

#status.error {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #991B1B !important;
    border-color: #EF4444 !important;
}

/* === FILE LIST - GOLDEN THEME === */
.file-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid var(--golden-dark) !important;
    border-radius: 6px !important;
    transition: var(--transition) !important;
    padding: 12px !important;
    margin-bottom: 8px !important;
}

.file-item:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    box-shadow: var(--shadow-light) !important;
    border-color: var(--golden-medium) !important;
}

.file-item.normalized {
    border-left: 4px solid #10B981 !important;
    background: rgba(16, 185, 129, 0.05) !important;
}

.file-name {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.file-details {
    color: var(--text-secondary) !important;
    font-size: 12px !important;
}

.file-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    min-height: 26px !important;
}

/* === SETTINGS - GOLDEN THEME === */
.setting-group input,
.setting-group select {
    border: 1px solid var(--golden-dark) !important;
    font-size: 12px !important;
    border-radius: 4px !important;
    padding: 6px 8px !important;
}

.setting-group input:focus,
.setting-group select:focus {
    border-color: var(--golden-medium) !important;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2) !important;
    outline: none !important;
}

.setting-group label {
    color: var(--text-secondary) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

/* === SECTION TITLES - GOLDEN THEME === */
.section-title {
    font-size: 14px !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.section-title::before {
    content: '' !important;
    width: 3px !important;
    height: 16px !important;
    background: var(--gradient-medium) !important;
    border-radius: 2px !important;
}

/* === BADGES - GOLDEN THEME === */
.normalized-badge {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #065F46 !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
    border: 1px solid #10B981 !important;
}

.not-normalized-badge {
    background: rgba(255, 225, 53, 0.3) !important;
    color: var(--text-primary) !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
    border: 1px solid var(--golden-medium) !important;
}

.playing {
    background: var(--gradient-medium) !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    animation: pulse 2s infinite !important;
}

/* === RESPONSIVE OVERRIDES === */
@media (max-width: 768px) {
    .btn-group, 
    .controls-horizontal, 
    .export-controls {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .format-option {
        min-width: auto !important;
    }
    
    .option-row {
        flex-direction: column !important;
    }
    
    .option-group {
        min-width: auto !important;
    }
}

/* === ANIMATIONEN === */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

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

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05); 
    }
}

.fade-in {
    animation: fadeIn 0.3s ease !important;
}

.slide-in {
    animation: slideIn 0.3s ease !important;
}

/* === SPEZIELLE GOLDEN EFFECTS === */
.golden-glow {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5) !important;
}

.golden-text {
    background: var(--gradient-light) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: bold !important;
}

/* === APP TITLE GOLDEN === */
.app-title {
    background: var(--gradient-light) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-align: center !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 2rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* === BEAUTIFUL PROGRESS BAR - GOLDEN === */
#beautiful-progress {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid var(--golden-medium) !important;
    box-shadow: var(--shadow-heavy) !important;
}

#beautiful-text {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.progress-track-beautiful {
    background: rgba(184, 134, 11, 0.3) !important;
    border: 1px solid var(--golden-dark) !important;
}

#beautiful-bar {
    background: var(--gradient-light) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6) !important;
}

#beautiful-bar.progress-green {
    background: linear-gradient(90deg, #10B981, #059669) !important;
}

#beautiful-bar.progress-red {
    background: linear-gradient(90deg, #EF4444, #DC2626) !important;
}

#beautiful-bar.progress-yellow {
    background: var(--gradient-light) !important;
}