.pdf-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #8b5cf6; --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: #ede9fe; color: #5b21b6; 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: #f5f3ff; }
.pdf-input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; margin-top: 8px; margin-bottom: 16px; font-size:0.95rem; outline: none;}
.pdf-input:focus { border-color: var(--p-primary); }
.pdf-btn { padding: 12px 24px; border-radius: 30px; font-weight: 500; cursor: pointer; border: none; background: var(--p-primary); color: white; transition: 0.2s;}
.pdf-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pdf-file-card { display: none; background: white; border: 1px solid var(--p-border); border-radius: 12px; padding: 16px; margin-bottom: 24px; align-items: center; justify-content: space-between; }
.pdf-file-info { display: flex; align-items: center; gap: 12px; }
.pdf-file-name { font-weight: 500; font-size: 0.95rem; }
.pdf-status { margin-left: auto; font-size: 0.9rem; color: #64748b; font-weight: 500; }

@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-input { background: #1e293b; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .pdf-file-card { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .pdf-file-name { color: #f8fafc; }