/* ============================================
   TRANSCRIPTOR PRO — MINIMAL PREMIUM CSS
   ============================================ */

:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-primary: #3b82f6;
    --color-accent: #10b981;
    --color-danger: #ef4444;
    --radius-lg: 20px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    min-height: 100vh;
}

.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at top left, #e2e8f0 0%, #f8fafc 100%);
}

.bg-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(120px);
    opacity: 0.1;
    border-radius: 50%;
}

.bg-orb-1 { background: #3b82f6; top: -100px; left: -100px; }
.bg-orb-2 { background: #10b981; bottom: -100px; right: -100px; }

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.app-header {
    margin-bottom: 60px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), #2563eb);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 800;
}

.version-tag {
    font-size: 0.7rem;
    background: var(--color-accent);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    vertical-align: middle;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    padding: 6px 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
}

.status-indicator.connected .status-dot { background: var(--color-accent); }
.status-indicator.error .status-dot { background: var(--color-danger); }

/* Upload Zone */
.upload-zone {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px dashed #e2e8f0;
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.upload-zone:hover {
    border-color: var(--color-primary);
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.upload-icon-wrapper {
    margin-bottom: 20px;
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.05);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-title { margin: 0 0 10px 0; font-size: 1.4rem; }
.upload-subtitle { color: var(--color-text-secondary); margin: 0 0 20px 0; }

.upload-hints { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hint-tag { background: #f1f5f9; padding: 4px 12px; border-radius: 12px; font-size: 0.7rem; color: var(--color-text-secondary); font-weight: 600; }

/* Progress */
.progress-card { background: white; padding: 25px; border-radius: 24px; box-shadow: 0 10px 20px rgba(0,0,0,0.03); margin-bottom: 40px; }
.progress-status { font-weight: 700; color: var(--color-text-primary); margin-bottom: 5px; display: block; }
.progress-bar-container { background: #f1f5f9; height: 10px; border-radius: 5px; overflow: hidden; margin: 15px 0; }
.progress-bar { background: var(--color-primary); height: 100%; width: 0; transition: width 0.5s ease; }

/* Cards */
.transcription-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.transcription-card:hover { border-color: var(--color-primary); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-content { flex: 1; cursor: pointer; }
.card-title { font-weight: 700; margin-bottom: 5px; }
.card-meta { font-size: 0.8rem; color: var(--color-text-secondary); }

.card-actions { display: flex; gap: 8px; }
.card-actions .btn-icon { margin-right: 0; background: #f8fafc; rotate: 0deg; }
.card-actions .btn-icon:hover { transform: scale(1.1); rotate: 0deg; border-color: var(--color-primary); }
.card-actions .btn-icon.btn-danger:hover { background: #fee2e2; border-color: #ef4444; color: #ef4444; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal { background: white; width: 95vw; max-width: 1200px; height: 90vh; border-radius: 20px; overflow: hidden; animation: modalIn 0.3s ease; display: flex; flex-direction: column; }
@keyframes modalIn { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header { padding: 20px 28px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.modal-header h2 { font-size: 1.2rem; margin: 0; }
.modal-close { background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-close:hover { background: #e2e8f0; }

.modal-body { padding: 24px 28px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.dual-panel { display: flex; gap: 24px; flex: 1; min-height: 0; }
.panel { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.panel-en { flex: 1.1; }
.panel-label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8; margin-bottom: 8px; display: block; flex-shrink: 0; }
.panel-text-readonly { 
    background: #f8fafc; 
    padding: 20px; 
    border-radius: 14px; 
    font-size: 0.95rem; 
    flex: 1;
    overflow-y: auto;
    color: #334155; 
    line-height: 1.7;
    border: 1px solid #e2e8f0;
}
.panel-textarea { 
    width: 100%; 
    flex: 1;
    padding: 20px; 
    border-radius: 14px; 
    border: 1px solid #e2e8f0; 
    font-family: inherit; 
    font-size: 0.95rem; 
    resize: none; 
    box-sizing: border-box;
    line-height: 1.7;
    color: #334155;
}
.panel-textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

.tts-player-section { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex-shrink: 0; padding-top: 4px; }
.tts-player-section audio { width: 100%; margin-top: 8px; border-radius: 12px; }
.btn { border: none; padding: 12px 24px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; font-family: inherit; font-size: 0.85rem; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-primary { background: var(--color-primary); color: white; }
.btn-accent { background: var(--color-accent); color: white; }
.btn-gemini { background: linear-gradient(135deg, #4285f4, #9b72cb); color: white; }
.btn-ghost { background: #f1f5f9; color: var(--color-text-secondary); }

.modal-footer { padding: 16px 28px; background: #f8fafc; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; border-top: 1px solid #e2e8f0; }

/* Toast */
.toast-container { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 2000; }
.toast { padding: 12px 25px; border-radius: 12px; color: white; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.1); animation: toastIn 0.3s ease; }
.toast.success { background: var(--color-accent); }
.toast.error { background: var(--color-danger); }
.toast.info { background: var(--color-primary); }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } }

.empty-state { text-align: center; padding: 40px; color: #94a3b8; font-style: italic; }

/* Settings Extra Styles */
.header-status { display: flex; align-items: center; }
.btn-icon {
    background: white;
    border: 1px solid #e2e8f0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
    margin-right: 12px;
}
.btn-icon:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: rotate(45deg);
}
.modal-settings { max-width: 500px !important; }
.settings-group { margin-bottom: 20px; }
.settings-hint { font-size: 0.75rem; color: #64748b; margin: 4px 0 10px 0; font-style: italic; line-height: 1.4; }