/* ============================================
   STT APP CSS — matches tts-app.css design language
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

.stt-layout {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================
   CONTROL BAR
   ============================================ */
.control-bar {
    background: white;
    padding: 16px 0 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.control-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 16px 24px;
}

.left-actions  { display: flex; align-items: center; gap: 8px; }
.center-controls { display: flex; align-items: center; justify-content: center; }
.right-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }

/* ---- Settings toggle ---- */
.settings-info { position: relative; }

.settings-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: white; border: 1px solid #e5e7eb; border-radius: 8px;
    color: #6b7280; font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.settings-toggle:hover { background: #f9fafb; border-color: #d1d5db; color: #374151; }

.settings-panel {
    position: absolute; top: 100%; left: 0; margin-top: 8px;
    background: white; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 1000; min-width: 280px;
    animation: slideDown 0.2s ease;
}
.settings-panel-header h3 { font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 14px; }

.setting-toggle-row { margin-bottom: 12px; }
.setting-toggle-label {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; font-size: 14px; color: #374151;
}
.setting-toggle-label input[type="checkbox"] { display: none; }
.toggle-switch {
    width: 36px; height: 20px; background: #d1d5db; border-radius: 10px;
    position: relative; transition: background 0.2s; flex-shrink: 0;
}
.toggle-switch::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 14px; height: 14px; background: white; border-radius: 50%;
    transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.setting-toggle-label input:checked + .toggle-switch { background: #2563eb; }
.setting-toggle-label input:checked + .toggle-switch::after { transform: translateX(16px); }

.setting-row { margin-top: 14px; }
.setting-small-label { display: block; font-size: 12px; font-weight: 500; color: #6b7280; margin-bottom: 6px; }
.setting-select {
    width: 100%; padding: 8px 10px; font-size: 13px;
    border: 1px solid #e5e7eb; border-radius: 6px; background: #f9fafb;
    color: #374151; cursor: pointer;
}
.setting-select:focus { outline: none; border-color: #2563eb; }

/* ---- Admin key ---- */
.admin-info { position: relative; }
.admin-toggle-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: white; border: 1px solid #e5e7eb; border-radius: 8px;
    color: #6b7280; font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.admin-toggle-btn:hover { background: #f9fafb; border-color: #d1d5db; color: #374151; }
.admin-badge {
    background: #22c55e; color: white; font-size: 11px; font-weight: 700;
    padding: 2px 6px; border-radius: 10px;
}
.admin-panel {
    position: absolute; top: 100%; left: 0; margin-top: 8px;
    background: white; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 1000; min-width: 280px;
    animation: slideDown 0.2s ease;
}
.admin-key-input {
    width: 100%; padding: 8px 12px; font-size: 13px; font-family: monospace;
    border: 1px solid #e5e7eb; border-radius: 6px; background: #f9fafb;
    color: #374151; margin-bottom: 10px;
}
.admin-key-input:focus { outline: none; border-color: #2563eb; }
.admin-key-actions { display: flex; gap: 8px; }
.btn-apply-key {
    flex: 1; padding: 7px 12px; background: #2563eb; color: white;
    border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-apply-key:hover { background: #1d4ed8; }
.btn-clear-key {
    padding: 7px 12px; background: #f3f4f6; color: #6b7280;
    border: none; border-radius: 6px; font-size: 13px; cursor: pointer;
}
.btn-clear-key:hover { background: #e5e7eb; }
.key-status { font-size: 12px; margin-top: 8px; }
.key-status.ok { color: #16a34a; }
.key-status.error { color: #dc2626; }

/* ---- Tab switcher ---- */
.tab-switcher {
    display: flex; background: #f3f4f6; border-radius: 10px; padding: 4px; gap: 4px;
}
.tab-switch-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 22px; border: none; background: transparent;
    color: #6b7280; font-size: 14px; font-weight: 600; border-radius: 8px;
    cursor: pointer; transition: all 0.2s;
}
.tab-switch-btn.active {
    background: white; color: #111827;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.tab-switch-btn:hover:not(.active) { background: rgba(255,255,255,0.5); color: #374151; }

/* ---- Limit chips ---- */
.limit-info { display: flex; gap: 6px; align-items: center; }
.limit-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; background: #f3f4f6; border: 1px solid #e5e7eb;
    border-radius: 20px; font-size: 12px; font-weight: 500; color: #6b7280;
}
.limit-chip.admin { background: #f0fdf4; border-color: #bbf7d0; color: #16a34a; }

/* ---- Icon buttons ---- */
.btn-icon {
    width: 38px; height: 38px; border: none; background: transparent;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #6b7280; transition: all 0.2s;
}
.btn-icon:hover { background: #f3f4f6; color: #111827; }

.btn-control {
    width: 40px; height: 40px; border: none; background: transparent;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #6b7280; transition: all 0.2s;
}
.btn-control:hover { background: #f3f4f6; color: #111827; }

/* ---- Mobile more ---- */
.btn-more-mobile { display: none; }
.mobile-more-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: white; border: 1px solid #e5e7eb; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); z-index: 1000;
    min-width: 200px; overflow: hidden;
}
.more-menu-content { padding: 8px 0; }
.more-menu-item {
    width: 100%; display: flex; align-items: center; gap: 12px;
    padding: 13px 16px; border: none; background: transparent;
    color: #374151; font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.more-menu-item:hover { background: #f3f4f6; }

/* ============================================
   ALERTS
   ============================================ */
.stt-alerts {
    max-width: 1400px; margin: 12px auto 0; padding: 0 24px; width: 100%;
}
.stt-alert {
    padding: 12px 16px; border-radius: 8px; font-size: 14px;
    margin-bottom: 8px; animation: alertSlide 0.3s ease;
}
.stt-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.stt-alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
@keyframes alertSlide { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1; max-width: 1400px; margin: 0 auto;
    padding: 32px 24px; width: 100%;
}

/* ---- Upload box ---- */
.upload-box {
    background: white; border-radius: 12px; padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
}

.upload-drop-zone {
    border: 2px dashed #d1d5db; border-radius: 10px;
    padding: 52px 32px; text-align: center; cursor: pointer;
    transition: all 0.2s; background: #fafafa; margin-bottom: 20px;
    position: relative;
}
.upload-drop-zone:hover { border-color: #2563eb; background: #eff6ff; }
.upload-drop-zone.dragover { border-color: #2563eb; background: #dbeafe; transform: scale(1.01); }

.upload-icon {
    width: 72px; height: 72px; background: #eff6ff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
    color: #2563eb;
}
.upload-title { font-size: 18px; font-weight: 600; color: #111827; margin-bottom: 6px; }
.upload-sub { font-size: 14px; color: #9ca3af; margin-bottom: 10px; }
.upload-formats { font-size: 12px; color: #9ca3af; margin-bottom: 20px; }
.btn-browse {
    padding: 10px 24px; background: #2563eb; color: white; border: none;
    border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}
.btn-browse:hover { background: #1d4ed8; }

.file-preview {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: 10px; margin-bottom: 20px;
}
.file-preview-icon {
    width: 44px; height: 44px; background: #dbeafe; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: #2563eb; flex-shrink: 0;
}
.file-preview-info { flex: 1; min-width: 0; }
.file-preview-name { display: block; font-size: 14px; font-weight: 600; color: #1e40af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-preview-size { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }
.file-preview-warn { display: block; font-size: 12px; color: #dc2626; margin-top: 2px; }
.file-remove-btn {
    width: 30px; height: 30px; background: white; border: 1px solid #bfdbfe;
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #6b7280; transition: all 0.2s; flex-shrink: 0;
}
.file-remove-btn:hover { background: #fee2e2; border-color: #fecaca; color: #dc2626; }

.btn-transcribe {
    width: 100%; padding: 14px; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.2s; box-shadow: 0 2px 12px rgba(37,99,235,0.35);
}
.btn-transcribe:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(37,99,235,0.45); }
.btn-transcribe:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-transcribe.full-rec { margin-bottom: 0; flex: 1; }

/* ---- Record box ---- */
.record-box {
    background: white; border-radius: 12px; padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
}

.mic-info-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 16px; background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: 8px; font-size: 13px; color: #1e40af; margin-bottom: 32px;
}

.record-center { display: flex; flex-direction: column; align-items: center; margin: 20px 0 24px; }

.record-visual-wrap {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 120px; height: 120px; margin-bottom: 16px;
}

.pulse-ring {
    position: absolute; width: 120px; height: 120px;
    border-radius: 50%; border: 2.5px solid #ef4444; opacity: 0;
}
.recording-active .pulse-ring { animation: pulseOut 1.4s ease-out infinite; }
.r1 { animation-delay: 0s; }
.r2 { animation-delay: 0.45s; }
.r3 { animation-delay: 0.9s; }
@keyframes pulseOut {
    0% { transform: scale(0.7); opacity: 0.7; }
    100% { transform: scale(2.2); opacity: 0; }
}

.record-btn {
    width: 90px; height: 90px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; box-shadow: 0 6px 20px rgba(239,68,68,0.45); position: relative; z-index: 1;
}
.record-btn:hover { transform: scale(1.06); box-shadow: 0 8px 28px rgba(239,68,68,0.55); }
.record-btn.recording { animation: recPulse 1.6s ease-in-out infinite; }
@keyframes recPulse {
    0%,100% { box-shadow: 0 6px 20px rgba(239,68,68,0.45); }
    50% { box-shadow: 0 6px 36px rgba(239,68,68,0.85); }
}

.record-status-text { font-size: 14px; font-weight: 600; color: #6b7280; }
.record-status-text.recording-text { color: #ef4444; }
.record-timer { font-size: 28px; font-weight: 700; color: #111827; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: 2px; }

/* Waveform */
.waveform-container {
    width: 100%; max-width: 480px; height: 56px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center; gap: 3px;
}
.wave-bar {
    width: 4px; height: 6px; background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-radius: 2px; transition: height 0.1s ease;
}

/* Recording controls */
.recording-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.rec-ctrl-btn {
    padding: 10px 20px; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: all 0.2s;
}
.btn-pause { background: #fef3c7; color: #92400e; }
.btn-pause:hover { background: #fde68a; }
.btn-stop-rec { background: #1f2937; color: white; }
.btn-stop-rec:hover { background: #111827; }
.btn-discard { background: #f3f4f6; color: #6b7280; }
.btn-discard:hover { background: #e5e7eb; }

/* Live panel */
.live-panel {
    background: #f8faff; border: 1.5px solid #c7d7f8;
    border-radius: 10px; padding: 16px; margin-top: 8px;
}
.live-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.live-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; color: #2563eb; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.live-chunk-count { font-size: 12px; color: #9ca3af; }

.live-text-area {
    background: white; border-radius: 8px; padding: 14px;
    min-height: 80px; max-height: 240px; overflow-y: auto;
    font-size: 15px; line-height: 1.7; color: #111827;
}
.live-text-area::-webkit-scrollbar { width: 5px; }
.live-text-area::-webkit-scrollbar-track { background: #f3f4f6; }
.live-text-area::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.live-placeholder { color: #9ca3af; font-style: italic; }

.live-chunk { padding: 6px 0; border-bottom: 1px dashed #e8eeff; animation: chunkFade 0.4s ease; }
.live-chunk:last-child { border-bottom: none; }
@keyframes chunkFade { from { opacity:0; transform: translateY(4px); } to { opacity:1; transform: translateY(0); } }
.live-chunk-time { font-size: 11px; color: #2563eb; font-weight: 700; margin-bottom: 2px; }

.chunk-processing {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #9ca3af; font-style: italic; margin-top: 8px;
}
.mini-spinner {
    width: 12px; height: 12px; border: 2px solid #e5e7eb;
    border-top-color: #2563eb; border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Recorded preview */
.recorded-preview {
    background: #f8faff; border: 1.5px solid #c7d7f8;
    border-radius: 10px; padding: 20px; margin-top: 20px;
}
.preview-header {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #1e40af; margin-bottom: 14px;
}
.recorded-preview audio { width: 100%; margin-bottom: 10px; }
.preview-meta { display: flex; justify-content: space-between; font-size: 12px; color: #9ca3af; margin-bottom: 14px; }
.btn-discard-small {
    padding: 12px 18px; background: #f3f4f6; color: #6b7280;
    border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}
.btn-discard-small:hover { background: #e5e7eb; }

/* ============================================
   PROGRESS BAR
   ============================================ */
.stt-progress-bar {
    max-width: 1400px; margin: 0 auto; padding: 0 24px;
    width: 100%; margin-top: 16px; position: relative;
}
.stt-progress-fill {
    height: 4px; background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 2px; width: 0%; transition: width 0.5s ease;
    animation: progressPulse 1.5s ease-in-out infinite;
}
@keyframes progressPulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.stt-progress-text { display: block; text-align: center; font-size: 13px; color: #6b7280; margin-top: 8px; }

/* ============================================
   RESULT BOX
   ============================================ */
.result-box {
    background: white; border-radius: 12px; padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6; margin-top: 20px;
}

.result-view-toggle { display: flex; gap: 8px; margin-bottom: 20px; }
.result-view-btn {
    display: flex; align-items: center; gap: 6px; padding: 9px 18px;
    border: 1.5px solid #e5e7eb; background: white; color: #6b7280;
    border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.result-view-btn.active { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.result-view-btn:hover:not(.active) { border-color: #d1d5db; color: #374151; }

.result-text-area {
    font-size: 16px; line-height: 1.8; color: #111827; white-space: pre-wrap;
    word-wrap: break-word; padding: 4px 0;
    max-height: 500px; overflow-y: auto;
}
.result-text-area::-webkit-scrollbar { width: 5px; }
.result-text-area::-webkit-scrollbar-track { background: #f3f4f6; }
.result-text-area::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* Segments */
.segments-list { max-height: 500px; overflow-y: auto; padding-right: 4px; }
.segment-item {
    background: #fafafa; border: 1px solid #f3f4f6; border-left: 3px solid #2563eb;
    border-radius: 8px; padding: 14px; margin-bottom: 10px; transition: all 0.2s;
}
.segment-item:hover { background: #eff6ff; border-color: #bfdbfe; border-left-color: #2563eb; }
.segment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.segment-time { font-size: 12px; color: #6b7280; font-weight: 600; font-variant-numeric: tabular-nums; }
.segment-dur { font-size: 11px; background: #eff6ff; color: #2563eb; padding: 2px 8px; border-radius: 10px; }
.segment-text { font-size: 15px; color: #111827; line-height: 1.6; }
.words-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f3f4f6; }
.word-chip {
    background: #f3f4f6; padding: 4px 9px; border-radius: 6px;
    font-size: 13px; cursor: default; transition: all 0.15s; display: flex; align-items: baseline; gap: 4px;
}
.word-chip:hover { background: #2563eb; color: white; }
.word-chip-time { font-size: 10px; opacity: 0.65; }

/* ============================================
   HEALTH BADGE — stt-app.css sonuna ekle
   ============================================ */

.health-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.health-badge.checking {
    background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb;
}
.health-badge.online {
    background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0;
}
.health-badge.degraded {
    background: #fef2f2; color: #dc2626; border: 1px solid #fecaca;
}
.health-badge:hover { filter: brightness(0.95); }

.health-badge .health-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.health-badge.checking .health-dot {
    background: #9ca3af;
    animation: spin 1s linear infinite;
    border: 2px solid #d1d5db; border-top-color: #6b7280;
    border-radius: 50%; width: 8px; height: 8px;
}
.health-badge.online .health-dot {
    background: #22c55e;
    animation: blink 2s ease-in-out infinite;
}
.health-badge.degraded .health-dot {
    background: #ef4444;
}

/* Dark mode */
[data-bs-theme="dark"] .health-badge.checking { background: #2b2b40; color: #92929f; border-color: #565674; }
[data-bs-theme="dark"] .health-badge.online   { background: #1a3d2e; color: #86efac; border-color: #16a34a; }
[data-bs-theme="dark"] .health-badge.degraded { background: #3d1a1a; color: #fca5a5; border-color: #7f1d1d; }

/* ============================================
   ANIMATION HELPERS
   ============================================ */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }

    .control-grid {
        display: flex; flex-direction: row; justify-content: space-between;
        align-items: center; gap: 8px; padding: 0 16px 12px 16px;
    }

    .left-actions { flex: 0 0 auto; }
    .center-controls { flex: 1; justify-content: center; }
    .right-actions { position: relative; flex: 0 0 auto; }
    .right-actions > *:not(.btn-more-mobile):not(.mobile-more-menu) { display: none !important; }

    .btn-more-mobile { display: flex !important; }

    .settings-toggle, .admin-toggle-btn {
        padding: 8px 10px; font-size: 0;
        width: 40px; height: 40px; justify-content: center;
    }
    .settings-toggle span, .admin-toggle-btn span:not(.admin-badge) { display: none; }

    .settings-panel, .admin-panel {
        position: fixed; left: 50%; top: 50%;
        transform: translate(-50%, -50%); margin-top: 0;
        width: calc(100vw - 32px); max-width: 360px; z-index: 2000;
    }

    .tab-switcher { gap: 2px; }
    .tab-switch-btn { padding: 10px 12px; font-size: 0; gap: 0; }
    .tab-switch-btn span { display: none; }

    .main-content { padding: 20px 16px 60px; }

    .upload-box, .record-box { padding: 20px 16px; }
    .upload-drop-zone { padding: 36px 20px; }

    .btn-transcribe { font-size: 15px; padding: 13px; }

    .result-box { padding: 20px 16px; }
}

@media (min-width: 769px) {
    .btn-more-mobile { display: none !important; }
}

/* ============================================
   DARK MODE
   ============================================ */
[data-bs-theme="dark"] .stt-layout { background: #1e1e2d; }
[data-bs-theme="dark"] .control-bar { background: #1e1e2d; box-shadow: 0 2px 8px rgba(0,0,0,0.4); border-bottom: 1px solid #2b2b40; }
[data-bs-theme="dark"] .upload-box,
[data-bs-theme="dark"] .record-box,
[data-bs-theme="dark"] .result-box { background: #1e1e2d; border-color: #2b2b40; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .upload-drop-zone { background: #2b2b40; border-color: #565674; }
[data-bs-theme="dark"] .upload-drop-zone:hover { background: #1e3a5f; border-color: #3b82f6; }
[data-bs-theme="dark"] .upload-title { color: #f5f5f5; }
[data-bs-theme="dark"] .upload-sub,
[data-bs-theme="dark"] .upload-formats { color: #92929f; }
[data-bs-theme="dark"] .upload-icon { background: #1e3a5f; color: #3b82f6; }
[data-bs-theme="dark"] .file-preview { background: #1e3a5f; border-color: #3b82f6; }
[data-bs-theme="dark"] .file-preview-icon { background: #2b2b40; }
[data-bs-theme="dark"] .file-preview-name { color: #93c5fd; }
[data-bs-theme="dark"] .file-preview-size { color: #92929f; }
[data-bs-theme="dark"] .settings-toggle,
[data-bs-theme="dark"] .admin-toggle-btn { background: #1e1e2d; border-color: #2b2b40; color: #92929f; }
[data-bs-theme="dark"] .settings-toggle:hover,
[data-bs-theme="dark"] .admin-toggle-btn:hover { background: #2b2b40; border-color: #565674; color: #f5f5f5; }
[data-bs-theme="dark"] .settings-panel,
[data-bs-theme="dark"] .admin-panel { background: #1e1e2d; border-color: #2b2b40; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
[data-bs-theme="dark"] .settings-panel-header h3,
[data-bs-theme="dark"] .setting-toggle-label { color: #f5f5f5; }
[data-bs-theme="dark"] .setting-select,
[data-bs-theme="dark"] .admin-key-input { background: #2b2b40; border-color: #565674; color: #f5f5f5; }
[data-bs-theme="dark"] .tab-switcher { background: #2b2b40; }
[data-bs-theme="dark"] .tab-switch-btn { color: #92929f; }
[data-bs-theme="dark"] .tab-switch-btn.active { background: #1e1e2d; color: #f5f5f5; }
[data-bs-theme="dark"] .limit-chip { background: #2b2b40; border-color: #565674; color: #92929f; }
[data-bs-theme="dark"] .limit-chip.admin { background: #1a3d2e; border-color: #16a34a; color: #86efac; }
[data-bs-theme="dark"] .btn-icon,
[data-bs-theme="dark"] .btn-control { color: #92929f; }
[data-bs-theme="dark"] .btn-icon:hover,
[data-bs-theme="dark"] .btn-control:hover { background: #2b2b40; color: #f5f5f5; }
[data-bs-theme="dark"] .mic-info-bar { background: #1e3a5f; border-color: #3b82f6; color: #93c5fd; }
[data-bs-theme="dark"] .live-panel,
[data-bs-theme="dark"] .recorded-preview { background: #2b2b40; border-color: #565674; }
[data-bs-theme="dark"] .live-text-area { background: #1e1e2d; color: #f5f5f5; }
[data-bs-theme="dark"] .record-status-text { color: #92929f; }
[data-bs-theme="dark"] .record-timer { color: #f5f5f5; }
[data-bs-theme="dark"] .result-text-area { color: #f5f5f5; }
[data-bs-theme="dark"] .segment-item { background: #2b2b40; border-color: #565674; border-left-color: #3b82f6; }
[data-bs-theme="dark"] .segment-item:hover { background: #1e3a5f; border-color: #3b82f6; }
[data-bs-theme="dark"] .segment-time { color: #92929f; }
[data-bs-theme="dark"] .segment-text { color: #f5f5f5; }
[data-bs-theme="dark"] .word-chip { background: #2b2b40; color: #f5f5f5; }
[data-bs-theme="dark"] .word-chip:hover { background: #2563eb; }
[data-bs-theme="dark"] .result-view-btn { background: #1e1e2d; border-color: #2b2b40; color: #92929f; }
[data-bs-theme="dark"] .result-view-btn.active { background: #1e3a5f; border-color: #3b82f6; color: #93c5fd; }
[data-bs-theme="dark"] .mobile-more-menu { background: #1e1e2d; border-color: #2b2b40; }
[data-bs-theme="dark"] .more-menu-item { color: #f5f5f5; }
[data-bs-theme="dark"] .more-menu-item:hover { background: #2b2b40; }
[data-bs-theme="dark"] .stt-alert-error { background: #3d1a1a; color: #fca5a5; border-color: #7f1d1d; }
[data-bs-theme="dark"] .stt-alert-success { background: #1a3d2e; color: #86efac; border-color: #14532d; }
