.pdf-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #10b981; --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: #d1fae5; color: #047857; 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: #ecfdf5; }

.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-password-group { margin-bottom: 24px; display: none; background: #fffbeb; padding: 20px; border-radius: 12px; border: 1px solid #fde68a; }
.pdf-input { width: 100%; padding: 12px 16px; border: 1px solid #fcd34d; border-radius: 10px; font-size: 1rem; outline: none; transition: 0.2s; margin-top: 8px;}
.pdf-input:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1); }

.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: none; }
.pdf-btn-primary { background: var(--p-primary); color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); }
.pdf-btn-primary:hover:not(:disabled) { background: #059669; transform: translateY(-1px); }
.pdf-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.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-file-card { background: #0f172a; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .pdf-password-group { background: rgba(245, 158, 11, 0.1); border-color: #713f12; }
[data-theme="dark"] .pdf-input { background: #1e293b; border-color: #713f12; color: #f8fafc; }