.pdf-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #2563eb; --p-text: #0f172a; width: 100%; max-width: 800px; margin: 0 auto; background: var(--p-bg); border-radius: 24px; padding: 32px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); border: 1px solid var(--p-border); }
.pdf-header { font-size: 1.5rem; font-weight: 600; color: var(--p-text); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.pdf-badge { background: #dbeafe; color: #1e40af; padding: 4px 12px; border-radius: 30px; font-size: 0.8rem; font-weight: 500; }
.pdf-subtitle { color: #64748b; font-size: 0.95rem; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; margin-bottom: 24px; }

.pdf-upload-area { border: 2px dashed #cbd5e1; border-radius: 16px; padding: 40px 20px; text-align: center; cursor: pointer; transition: 0.2s; background: #f8fafc; margin-bottom: 24px; }
.pdf-upload-area.drag-over { border-color: var(--p-primary); background: #eff6ff; }
.pdf-upload-icon { font-size: 40px; margin-bottom: 12px; }
.pdf-file-list { border: 1px solid var(--p-border); border-radius: 12px; overflow: hidden; background: white; margin-bottom: 20px; }
.pdf-file-item { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.pdf-file-item:last-child { border-bottom: none; }
.pdf-file-info { flex: 1; display: flex; align-items: center; gap: 12px; overflow: hidden; }
.pdf-file-name { font-weight: 500; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-file-size { font-size: 0.8rem; color: #94a3b8; background: #f1f5f9; padding: 2px 8px; border-radius: 12px;}
.pdf-remove-btn { background: none; border: none; color: #ef4444; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: 0.2s; }
.pdf-remove-btn:hover { background: #fef2f2; }

.pdf-rule-box { background: #f8fafc; border-radius: 12px; padding: 16px; border-left: 4px solid var(--p-primary); margin-bottom: 24px; font-size: 0.9rem; color: #475569; }
.pdf-rule-box p { margin: 4px 0; }

.pdf-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pdf-btn { padding: 12px 24px; border-radius: 30px; font-weight: 500; font-size: 0.95rem; cursor: pointer; transition: 0.2s; border: 1px solid transparent; }
.pdf-btn-primary { background: var(--p-primary); color: white; box-shadow: 0 4px 12px rgba(37,99,235,0.2); }
.pdf-btn-primary:hover:not(:disabled) { background: #1d4ed8; transform: translateY(-1px); }
.pdf-btn-secondary { background: white; border-color: #cbd5e1; color: #334155; }
.pdf-btn-secondary:hover { background: #f1f5f9; }
.pdf-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pdf-status { margin-left: auto; font-size: 0.9rem; color: #64748b; font-weight: 500; }
.pdf-progress { width: 100%; height: 6px; background: #e2e8f0; border-radius: 3px; margin-top: 20px; overflow: hidden; display: none; }
.pdf-progress-bar { height: 100%; background: var(--p-primary); width: 0%; transition: width 0.3s; }

@media(max-width: 768px) { .pdf-tool-wrapper { padding: 20px; border-radius: 16px; } }

[data-theme="dark"] .pdf-tool-wrapper { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .pdf-upload-area { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .pdf-file-list { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .pdf-file-item { border-bottom-color: #334155; }
[data-theme="dark"] .pdf-file-size { background: #1e293b; color: #94a3b8; }
[data-theme="dark"] .pdf-file-name { color: #f8fafc; }
[data-theme="dark"] .pdf-rule-box { background: #0f172a; border-left-color: var(--p-primary); color: #cbd5e1; }
[data-theme="dark"] .pdf-btn-secondary { background: #1e293b; border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .pdf-btn-secondary:hover { background: #334155; }
[data-theme="dark"] .pdf-progress { background: #334155; }