:root {
    --bg-color: #0D0B14;
    --card-bg-color: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.15);
    --text-color: #f0f0f0;
    --text-muted-color: #a0a0a0;
    --accent-color: #A855F7;
    --accent-hover-color: #9333EA;
    --success-color: #10B981;
    --font-family: 'Inter', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 2rem 1rem;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}
.aurora-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; }
.blob1 { width: 400px; height: 400px; background: var(--accent-color); top: -150px; left: -150px; animation: move 20s infinite alternate; }
.blob2 { width: 500px; height: 500px; background: #3B82F6; bottom: -200px; right: -200px; animation: move 25s infinite alternate-reverse; }
.blob3 { width: 300px; height: 300px; background: var(--success-color); bottom: 100px; left: 100px; animation: move 15s infinite alternate; }
@keyframes move { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(200px, 100px) rotate(180deg); } }
.container { width: 100%; max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; position: relative; z-index: 1; }
.main-header h1 { font-weight: 700; letter-spacing: 2px; text-align: center; }
.card { background: var(--card-bg-color); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); }
h2 { text-align: left; margin-bottom: 1.5rem; font-weight: 500; }
.setting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.setting-grid.voice-settings { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.setting { display: flex; flex-direction: column; gap: 0.5rem; }
label { font-size: 0.9rem; color: var(--text-muted-color); }
select, input[type="text"] { width: 100%; padding: 0.75rem; background-color: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-color); font-size: 1rem; cursor: pointer; }
select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: #444; border-radius: 5px; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; background: var(--accent-color); border-radius: 50%; transition: box-shadow 0.2s; }
input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 10px var(--accent-color); }
#drop-zone { border: 2px dashed var(--border-color); border-radius: 12px; padding: 2rem; text-align: center; cursor: pointer; transition: background-color 0.3s, border-color 0.3s; }
#drop-zone.dragover { border-color: var(--accent-color); background-color: rgba(168, 85, 247, 0.1); }
.drop-zone-prompt { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: var(--text-muted-color); }
.drop-zone-prompt svg { color: var(--accent-color); }
.drop-zone-prompt p { font-size: 1.1rem; font-weight: 500; color: var(--text-color); }
button, #browse-btn { padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 500; color: #ffffff; background-color: var(--accent-color); border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 0 15px rgba(168, 85, 247, 0.3); }
button:hover, #browse-btn:hover { background-color: var(--accent-hover-color); box-shadow: 0 0 25px rgba(168, 85, 247, 0.6); transform: translateY(-2px); }
button:disabled { background-color: #555; cursor: not-allowed; box-shadow: none; transform: none;}
#file-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.file-item { background-color: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-color); border-radius: 8px; padding: 0.75rem 1rem; display: flex; align-items: center; font-size: 0.9rem; color: var(--text-muted-color); }
.file-item::before { content: '🗎'; margin-right: 0.75rem; font-size: 1.2rem; color: var(--accent-color); }
#start-processing-btn { margin-top: 1.5rem; width: 100%; }
#task-queue { display: flex; flex-direction: column; gap: 1rem; }
.task-item { background-color: rgba(0,0,0,0.2); padding: 1rem; border-radius: 8px; border: 1px solid var(--border-color); }
.task-header { display: flex; justify-content: space-between; align-items: center; font-weight: 500; word-break: break-all; }
.task-status { font-size: 0.9rem; color: #bbb; margin-top: 0.25rem; }
.task-progress-bar-container { width: 100%; background-color: rgba(0,0,0,0.3); border-radius: 5px; overflow: hidden; margin-top: 0.75rem; }
.task-progress-bar { width: 0%; height: 8px; background: linear-gradient(90deg, var(--success-color), #6EE7B7); transition: width 0.5s ease-in-out; position: relative; overflow: hidden; }
.task-progress-bar::after { content: ''; position: absolute; top: 0; left: -50%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%); animation: shimmer 2s infinite; }
@keyframes shimmer { 100% { transform: translateX(300%); } }
.download-button { display: inline-block; margin-top: 0.75rem; padding: 0.5rem 1rem; background-color: var(--success-color); color: white; text-decoration: none; border-radius: 6px; font-size: 0.9rem; text-align: center; transition: all 0.2s; }
.download-button:hover { background-color: #059669; transform: translateY(-1px); }
.toggle-setting { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--accent-color); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
@media (max-width: 600px) { .setting-grid, .card:nth-of-type(2) .setting-grid { grid-template-columns: 1fr; } body { padding: 1rem 0.5rem; } }
