/* public/assets/css/text/audio-to-text.css */

.a2t-container { padding: 32px; border-radius: var(--radius-lg); }

.a2t-header-area { text-align: center; margin-bottom: 32px; border-bottom: 1px solid var(--border-color); padding-bottom: 24px; }
.a2t-title { font-size: 1.8rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.a2t-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 800px; margin: 0 auto; line-height: 1.6; }

.a2t-workspace { display: flex; flex-direction: column; gap: 24px; max-width: 900px; margin: 0 auto; }

/* 拖拽上传区 */
.a2t-dropzone { border: 2px dashed #cbd5e1; border-radius: 16px; padding: 40px 20px; text-align: center; cursor: pointer; transition: 0.2s; background: var(--bg-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.a2t-dropzone:hover, .a2t-dropzone.dragover { border-color: var(--primary-color); background: rgba(0, 102, 204, 0.05); }
.a2t-drop-title { font-weight: 700; color: var(--text-main); font-size: 1.1rem; margin-bottom: 8px; }
.a2t-drop-desc { font-size: 0.9rem; color: var(--text-muted); }

/* 播放器与控制区 */
.a2t-player-area { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.a2t-controls-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.a2t-file-info { font-weight: 600; color: var(--primary-color); font-size: 0.95rem; background: rgba(0, 102, 204, 0.08); padding: 6px 12px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.a2t-select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-body); color: var(--text-main); font-size: 0.9rem; outline: none; }

.a2t-status-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--border-color); }
.a2t-badge { padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; display: inline-flex; align-items: center; }
.a2t-badge-ready { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); border: 1px solid var(--border-color); }
.a2t-badge-active { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; animation: pulse-red 2s infinite; }

.a2t-action-row { display: flex; gap: 16px; justify-content: center; }
.a2t-btn { flex: 1; max-width: 300px; border: none; padding: 14px 24px; border-radius: 12px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: 0.2s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.a2t-btn-primary { background: var(--primary-color); color: #fff; box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3); }
.a2t-btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4); }
.a2t-btn-danger { background: #ef4444; color: #fff; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); }
.a2t-btn-danger:hover { background: #dc2626; transform: translateY(-2px); }

/* 编辑器区 */
.a2t-editor-area { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.a2t-editor-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--bg-body); border-bottom: 1px solid var(--border-color); font-weight: 600; font-size: 0.95rem; color: var(--text-main); }
.a2t-textarea { width: 100%; min-height: 250px; padding: 20px; border: none; outline: none; background: transparent; color: var(--text-main); font-size: 1.05rem; line-height: 1.7; resize: vertical; box-sizing: border-box; }
.a2t-editor-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px dashed var(--border-color); background: var(--bg-surface); }
.a2t-btn-secondary { padding: 8px 16px; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.a2t-btn-secondary:hover { border-color: var(--primary-color); color: var(--primary-color); }
.a2t-btn-text { background: none; border: none; cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: 0.2s; padding: 4px 8px; border-radius: 6px; }
.a2t-btn-text:hover { background: rgba(0,0,0,0.05); }

@media (max-width: 768px) {
    .a2t-container { padding: 20px 16px; }
    .a2t-controls-top { flex-direction: column; align-items: stretch; }
    .a2t-file-info { max-width: 100%; }
}

[data-theme="dark"] .a2t-dropzone { background: #1e293b; border-color: #475569; }
[data-theme="dark"] .a2t-dropzone:hover { background: rgba(96, 165, 250, 0.1); border-color: var(--primary-color); }
[data-theme="dark"] .a2t-select { background: #0f172a; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .a2t-badge-active { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); }
[data-theme="dark"] .a2t-btn-secondary:hover { background: rgba(255, 255, 255, 0.05); }