/* public/assets/css/audio/format-converter.css */

.afc-workspace { display: flex; flex-wrap: wrap; gap: 24px; width: 100%; margin-bottom: 40px; align-items: stretch; }
.afc-panel { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); overflow: hidden; display: flex; flex-direction: column; }
.afc-panel-header { padding: 16px 24px; border-bottom: 1px solid var(--border-color); background: rgba(0,0,0,0.01); }
.afc-panel-header h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
.afc-panel-body { padding: 24px; flex: 1; display: flex; flex-direction: column;}

/* 左侧：设置与上传 */
.afc-sidebar { flex: 1; min-width: 340px; max-width: 450px; }

.afc-dropzone {
    border: 2px dashed var(--border-color); border-radius: 12px; padding: 40px 20px;
    text-align: center; cursor: pointer; background: var(--bg-body); transition: all 0.3s;
    overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.afc-dropzone:hover { border-color: var(--primary-color); background: rgba(var(--primary-rgb, 0, 102, 204), 0.02); }
.afc-dropzone.has-file { border: 1px solid var(--primary-color); background: rgba(var(--primary-rgb, 0, 102, 204), 0.05); }

.afc-dropzone-icon { font-size: 2.5rem; margin-bottom: 12px; }
.afc-dropzone-title { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.afc-dropzone-desc { font-size: 0.85rem; color: var(--text-muted); }

.afc-divider { border: none; border-top: 1px dashed var(--border-color); margin: 24px 0; }
.afc-sub-heading { font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin: 0 0 16px 0; }

.afc-form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.afc-form-group { display: flex; flex-direction: column; gap: 8px; }
.afc-form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

.afc-select { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-body); color: var(--text-main); font-size: 0.9rem; font-weight: 600; outline: none; cursor: pointer; transition: 0.2s;}
.afc-select:focus { border-color: var(--primary-color); }

.afc-btn-primary { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary-color); color: white; border: none; border-radius: 8px; padding: 14px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 10px rgba(var(--primary-rgb, 0, 102, 204), 0.2); }
.afc-btn-primary:hover:not(:disabled) { transform: translateY(-2px); opacity: 0.9; }
.afc-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.afc-btn-success { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: #10b981; color: white; border: none; border-radius: 8px; padding: 14px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2); }
.afc-btn-success:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3); }

/* 右侧：终端与日志区 */
.afc-main-content { flex: 2; min-width: 0; }

.afc-status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-safe { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-safe .status-dot { background: #10b981; }
.status-working { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.status-working .status-dot { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; animation: afcPulse 1s infinite; }
.status-error { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.status-error .status-dot { background: #ef4444; }
@keyframes afcPulse { 0% { opacity: 1;} 50% { opacity: 0.4;} 100% { opacity: 1;} }

.afc-terminal {
    background: #0f172a; border-radius: 8px; padding: 16px; font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem; line-height: 1.5; color: #a1a1aa; height: 100%; min-height: 350px;
    overflow-y: auto; overflow-wrap: break-word; flex: 1; border: 1px solid #334155;
}

.afc-progress-container { margin-bottom: 16px; background: rgba(59, 130, 246, 0.1); padding: 12px; border-radius: 8px; border: 1px dashed rgba(59, 130, 246, 0.3); }
.afc-progress-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.afc-progress-fill { height: 100%; width: 0%; background: #3b82f6; transition: width 0.3s; }