/* --- GLOBÁLNÍ NASTAVENÍ A CUSTOM EFEKTY --- */

/* Pozadí stránky - ORANŽOVÉ TÓNY (Warm/Amber/Orange) */
body {
    background-color: #1c100b; /* Velmi tmavá hnědá jako základ */
    background-image: 
        radial-gradient(at 0% 0%, hsla(20, 80%, 15%, 1) 0, transparent 50%), /* Tmavá oranžová */
        radial-gradient(at 50% 0%, hsla(35, 85%, 20%, 1) 0, transparent 50%), /* Jantarová */
        radial-gradient(at 100% 0%, hsla(0, 50%, 15%, 1) 0, transparent 50%); /* Načervenalá pro hloubku */
    background-attachment: fixed;
    color: white;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* --- GLASSMORPHISM (Skleněný efekt) --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* --- OVLÁDACÍ PRVKY (Range Slider) --- */
input[type=range] {
    -webkit-appearance: none; 
    background: transparent; 
    width: 100%;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #fff;
    margin-top: -6px; 
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* --- DROP ZÓNA --- */
.drop-area {
    transition: all 0.3s ease;
    border: 2px dashed rgba(255, 255, 255, 0.15);
}
.drop-area:hover {
    border-color: #f97316; /* Orange 500 */
    background: rgba(249, 115, 22, 0.05);
}
.drop-area.file-loaded {
    border-color: #f97316; 
    background: rgba(249, 115, 22, 0.1);
    border-style: solid;
}

/* --- SKRÝVÁNÍ PRVKŮ --- */
.options-hidden {
    display: none !important;
}
/* Utility pro skrytí modalu */
.hidden {
    display: none !important;
}

/* --- ANIMACE --- */
.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MODAL (Vyskakovací okno) --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

/* --- STAVY SOUBORŮ VE FRONTĚ --- */
.file-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}
.file-card:last-child {
    border-bottom: none;
}

.file-status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    transition: all 0.2s;
}

.file-status.pending { color: #94a3b8; background: rgba(255,255,255,0.05); }
.file-status.processing { color: #fbbf24; background: rgba(251, 191, 36, 0.1); } /* Amber */
.file-status.error { color: #f87171; background: rgba(248, 113, 113, 0.1); }

.file-status.finished {
    background: linear-gradient(to right, #f97316, #ea580c); /* Orange Gradient */
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}
.file-status.finished:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.5);
}

/* STATUS MESSAGES */
.status {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(5px);
}
.status.loading { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.status.success { background: rgba(34, 197, 94, 0.2); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); } /* Zelená pro úspěch zůstává, dává smysl */
.status.error { background: rgba(248, 113, 113, 0.2); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.3); }