/* public/assets/css/pdf/pdf-to-ppt.css */

.pdf-ppt-wrapper { padding: 32px 16px; position: relative; }
.pdf-ppt-header { text-align: center; margin-bottom: 32px; }
.pdf-ppt-title { font-size: 2.2rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.pdf-ppt-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.6; }

.pdf-ppt-workspace { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* ==========================================
   左侧：设置与文件上传
   ========================================== */
.pdf-ppt-controls { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column; gap: 24px; }
.control-section h4 { margin: 0 0 16px 0; font-size: 1rem; color: var(--text-main); border-bottom: 2px solid rgba(29, 78, 216, 0.2); padding-bottom: 8px; display: inline-block; }

/* 拖拽上传区 */
.file-drop-area { border: 2px dashed #1d4ed8; border-radius: 12px; padding: 40px 20px; text-align: center; cursor: pointer; transition: 0.3s; background: rgba(29, 78, 216, 0.03); position: relative; overflow: hidden; }
.file-drop-area:hover, .file-drop-area.drag-over { background: rgba(29, 78, 216, 0.08); border-color: #1e3a8a; }
.drop-text { margin-top: 12px; font-weight: 600; color: var(--text-main); font-size: 0.95rem; word-break: break-all; }
.file-input-hidden { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* 表单组合 */
.input-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.input-group select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-body); color: var(--text-main); font-size: 0.95rem; outline: none; transition: 0.2s; box-sizing: border-box; }
.input-group select:focus { border-color: #1d4ed8; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 按钮 */
.pdf-btn-primary { background: #1d4ed8; color: #fff; border: none; padding: 16px 20px; font-size: 1.1rem; font-weight: 800; border-radius: 12px; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3); width: 100%; margin-top: 8px; }
.pdf-btn-primary:hover:not(:disabled) { background: #1e40af; transform: translateY(-2px); }
.pdf-btn-primary:disabled { background: #94a3b8; cursor: not-allowed; box-shadow: none; opacity: 0.7; }

/* ==========================================
   右侧：进度与状态反馈区
   ========================================== */
.pdf-ppt-status { display: flex; flex-direction: column; gap: 24px; }

.status-box { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px; padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); min-height: 200px; justify-content: center; }
.status-text { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }
.status-icon { font-size: 3rem; animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn { 0% { transform: scale(0); } 100% { transform: scale(1); } }

.loader-container { width: 48px; height: 48px; position: relative; }
.loader-spinner { width: 100%; height: 100%; border: 5px solid var(--border-color); border-top-color: #1d4ed8; border-radius: 50%; animation: spin 1s linear infinite; box-sizing: border-box; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress-bar-wrap { width: 100%; height: 10px; background: var(--bg-body); border-radius: 5px; overflow: hidden; border: 1px solid var(--border-color); box-sizing: border-box; }
.progress-bar-fill { width: 0%; height: 100%; background: #1d4ed8; transition: width 0.2s linear; }

.tips-box { background: rgba(29, 78, 216, 0.05); border: 1px solid rgba(29, 78, 216, 0.15); border-radius: 12px; padding: 16px; font-size: 0.9rem; color: #1e40af; line-height: 1.5; }
[data-theme="dark"] .tips-box { background: rgba(29, 78, 216, 0.1); color: #60a5fa; }

.pdf-info-card { background: var(--bg-surface); padding: 24px; border-radius: 16px; border: 1px solid var(--border-color); box-sizing: border-box; max-width: 900px; margin: 0 auto; }

/* 📱 响应式 */
@media (max-width: 768px) {
    .pdf-ppt-workspace { grid-template-columns: 1fr; }
}