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

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

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

/* 左侧控制区 */
.pdf-md-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; position: sticky; top: 20px; }
.control-section h4 { margin: 0 0 16px 0; font-size: 1rem; color: var(--text-main); border-bottom: 2px solid rgba(236, 72, 153, 0.2); padding-bottom: 8px; display: inline-block; }

.file-drop-area { border: 2px dashed #ec4899; border-radius: 12px; padding: 40px 20px; text-align: center; cursor: pointer; transition: 0.3s; background: rgba(236, 72, 153, 0.03); position: relative; overflow: hidden; }
.file-drop-area:hover, .file-drop-area.drag-over { background: rgba(236, 72, 153, 0.08); border-color: #db2777; }
.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; }

.tips-box { background: rgba(236, 72, 153, 0.05); border: 1px solid rgba(236, 72, 153, 0.15); border-radius: 8px; padding: 12px; font-size: 0.85rem; color: #be185d; line-height: 1.5; }
[data-theme="dark"] .tips-box { color: #f472b6; background: rgba(244, 114, 182, 0.05); }

.pdf-md-btn-primary { background: #ec4899; 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(236, 72, 153, 0.3); width: 100%; }
.pdf-md-btn-primary:hover:not(:disabled) { background: #db2777; transform: translateY(-2px); }
.pdf-md-btn-primary:disabled { background: #94a3b8; cursor: not-allowed; box-shadow: none; opacity: 0.7; }

/* 右侧工作台区 */
.pdf-md-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: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); min-height: 200px; }
.status-text { font-size: 1.05rem; font-weight: 600; color: var(--text-main); margin-top: 12px; }
.loader-spinner { width: 32px; height: 32px; border: 4px solid var(--border-color); border-top-color: #ec4899; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.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); } }
.progress-bar-wrap { width: 100%; max-width: 300px; height: 8px; background: var(--bg-body); border-radius: 4px; overflow: hidden; border: 1px solid var(--border-color); box-sizing: border-box; }
.progress-bar-fill { width: 0%; height: 100%; background: #ec4899; transition: width 0.2s linear; }

/* 🌟 极客终端 Markdown 编辑器 */
.pdf-render-box { background: #0f172a; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); overflow: hidden; display: flex; flex-direction: column; height: 600px; border: 1px solid #1e293b; }
.editor-header { background: #1e293b; padding: 12px 16px; display: flex; align-items: center; border-bottom: 1px solid #334155; }
.editor-dot { width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }
.editor-title { color: #94a3b8; font-size: 0.85rem; font-family: monospace; margin-left: auto; margin-right: auto; }

.markdown-textarea { flex: 1; width: 100%; background: #0f172a; color: #e2e8f0; font-family: 'Consolas', 'Courier New', Courier, monospace; font-size: 0.95rem; line-height: 1.6; padding: 20px; border: none; resize: none; outline: none; box-sizing: border-box; }
.markdown-textarea::-webkit-scrollbar { width: 10px; }
.markdown-textarea::-webkit-scrollbar-thumb { background: #334155; border-radius: 5px; }

.editor-footer { background: #1e293b; padding: 12px 20px; display: flex; justify-content: flex-end; gap: 12px; border-top: 1px solid #334155; }
.pdf-md-btn-secondary { background: #334155; color: #fff; border: none; padding: 8px 16px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: 0.2s; font-size: 0.9rem; }
.pdf-md-btn-secondary:hover { background: #475569; }
.pdf-md-btn-success { background: #ec4899; color: #fff; border: none; padding: 8px 16px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: 0.2s; font-size: 0.9rem; }
.pdf-md-btn-success:hover { background: #db2777; }

/* SEO */
.tool-seo-article { width: 100%; }
.pdf-info-card { background: var(--bg-surface); padding: 24px 32px; border-radius: 16px; border: 1px solid var(--border-color); box-sizing: border-box; max-width: 1200px; margin: 0 auto; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.pdf-info-card h3 { margin: 0 0 12px 0; color: var(--text-main); font-size: 1.25rem; }
.pdf-desc-text { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 900px) {
    .pdf-md-workspace { grid-template-columns: 1fr; }
}