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

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

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

/* 左侧：控制面板 */
.pdf-p2w-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(59, 130, 246, 0.2); padding-bottom: 8px; display: inline-block; }

.file-drop-area { border: 2px dashed #3b82f6; border-radius: 12px; padding: 40px 20px; text-align: center; cursor: pointer; transition: 0.3s; background: rgba(59, 130, 246, 0.03); position: relative; overflow: hidden; }
.file-drop-area:hover, .file-drop-area.drag-over { background: rgba(59, 130, 246, 0.08); border-color: #2563eb; }
.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 input { 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 input:focus { border-color: #3b82f6; }
.helper-text { font-size: 0.75rem; color: #64748b; line-height: 1.4; }

.tips-box { background: rgba(59, 130, 246, 0.05); border: 1px solid rgba(59, 130, 246, 0.15); border-radius: 8px; padding: 12px; font-size: 0.85rem; color: #1d4ed8; line-height: 1.5; }
[data-theme="dark"] .tips-box { color: #60a5fa; }

.pdf-btn-primary { background: #3b82f6; color: #fff; border: none; padding: 14px 20px; font-size: 1.05rem; font-weight: 800; border-radius: 12px; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3); width: 100%; }
.pdf-btn-primary:hover:not(:disabled) { background: #2563eb; transform: translateY(-2px); }
.pdf-btn-primary:disabled { background: #94a3b8; cursor: not-allowed; box-shadow: none; opacity: 0.7; }

/* 右侧：状态与数据流输出 */
.pdf-p2w-preview { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.status-box { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.status-text { font-size: 1.05rem; font-weight: 600; color: var(--text-main); }
.loader-spinner { width: 24px; height: 24px; border: 3px solid var(--border-color); border-top-color: #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-icon { font-size: 1.5rem; }

/* 极客终端风格的数据流窗口 */
.data-stream-box { background: #0f172a; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 10px rgba(0,0,0,0.5); border: 1px solid #1e293b; }
.stream-header { background: #1e293b; color: #94a3b8; padding: 8px 16px; font-size: 0.75rem; font-family: monospace; border-bottom: 1px solid #0f172a; }
.stream-content { padding: 16px; height: 350px; overflow-y: auto; font-family: "Courier New", Courier, monospace; font-size: 0.85rem; color: #22c55e; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.stream-content p { margin: 0 0 12px 0; border-left: 2px solid #3b82f6; padding-left: 8px; }
.stream-content::-webkit-scrollbar { width: 6px; }
.stream-content::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

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

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