/* public/assets/css/pdf/doc-compress.css */

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

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

.doc-compress-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(239, 68, 68, 0.2); padding-bottom: 8px; display: inline-block; }

.file-drop-area { border: 2px dashed #ef4444; border-radius: 12px; padding: 40px 20px; text-align: center; cursor: pointer; transition: 0.3s; background: rgba(239, 68, 68, 0.03); position: relative; overflow: hidden; }
.file-drop-area:hover, .file-drop-area.drag-over { background: rgba(239, 68, 68, 0.08); border-color: #dc2626; }
.drop-text { margin-top: 12px; font-weight: 600; color: var(--text-main); font-size: 0.95rem; word-break: break-all; }
.file-size-badge { display: inline-block; background: #fee2e2; color: #b91c1c; font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-top: 8px; }
[data-theme="dark"] .file-size-badge { background: #7f1d1d; color: #fca5a5; }
.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: #ef4444; }

.tips-box { background: rgba(239, 68, 68, 0.05); border: 1px solid rgba(239, 68, 68, 0.15); border-radius: 8px; padding: 12px; font-size: 0.85rem; color: #b91c1c; line-height: 1.5; }
[data-theme="dark"] .tips-box { color: #fca5a5; }

.doc-btn-primary { background: #ef4444; 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(239, 68, 68, 0.3); width: 100%; }
.doc-btn-primary:hover:not(:disabled) { background: #dc2626; transform: translateY(-2px); }
.doc-btn-primary:disabled { background: #94a3b8; cursor: not-allowed; box-shadow: none; opacity: 0.7; }

.doc-compress-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: 300px; }
.status-text { font-size: 1.05rem; font-weight: 600; color: var(--text-main); margin-top: 12px; }
.loader-spinner { width: 36px; height: 36px; border: 4px solid var(--border-color); border-top-color: #ef4444; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-icon { font-size: 3rem; animation: popIn 0.5s 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: 320px; 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: #ef4444; transition: width 0.2s linear; }

.compare-stats { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 24px; background: var(--bg-body); padding: 16px 32px; border-radius: 12px; border: 1px solid var(--border-color); animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.stat-value { font-size: 1.4rem; font-weight: 900; }
.old-size { color: #94a3b8; text-decoration: line-through; }
.new-size { color: #16a34a; }
.stat-arrow { font-size: 1.5rem; color: #cbd5e1; }

.doc-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) {
    .doc-compress-workspace { grid-template-columns: 1fr; }
}