.pdf-tools-wrapper {
padding: 2rem 0 4rem;
background-color: var(--color-bg, #f8fafc);
min-height: calc(100vh - 200px);
}
.pdf-page-header {
margin-bottom: 2rem;
text-align: left;
}
.pdf-page-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.35rem 0.85rem;
background-color: rgba(37, 99, 235, 0.08);
color: var(--color-accent-600, #2563EB);
border: 1px solid rgba(37, 99, 235, 0.18);
border-radius: 9999px;
font-size: 0.8125rem;
font-weight: 700;
margin-bottom: 0.85rem;
letter-spacing: 0.02em;
max-width: 100%;
box-sizing: border-box;
}
.pdf-page-badge svg {
width: 14px;
height: 14px;
flex-shrink: 0;
}
.pdf-page-title {
font-size: clamp(1.75rem, 4vw, 2.65rem);
color: var(--color-primary-900, #0A2540);
margin: 0 0 0.65rem 0;
font-weight: 800;
line-height: 1.2;
letter-spacing: -0.025em;
word-break: break-word;
overflow-wrap: break-word;
}
.pdf-page-subtitle {
font-size: 1.05rem;
color: var(--color-text-muted, #475569);
max-width: 820px;
line-height: 1.6;
margin: 0;
word-break: break-word;
overflow-wrap: break-word;
}
.pdf-privacy-banner {
display: flex;
align-items: center;
gap: 0.85rem;
background: #f0fdf4;
border: 1px solid #bbf7d0;
border-radius: var(--radius-lg, 12px);
padding: 0.85rem 1.25rem;
margin-top: 1.5rem;
margin-bottom: 2rem;
color: #166534;
max-width: 100%;
box-sizing: border-box;
box-shadow: 0 1px 3px rgba(22, 101, 52, 0.05);
}
.pdf-privacy-icon {
width: 24px;
height: 24px;
flex-shrink: 0;
color: #16a34a;
}
.pdf-privacy-banner p {
margin: 0;
font-size: 0.9375rem;
line-height: 1.5;
font-weight: 600;
word-break: break-word;
}
.pdf-global-alert {
background-color: #fef2f2;
border: 1px solid #fecaca;
color: #991b1b;
padding: 0.875rem 1.25rem;
border-radius: var(--radius-md, 8px);
margin-bottom: 1.5rem;
font-size: 0.9375rem;
display: flex;
align-items: flex-start;
gap: 0.75rem;
box-sizing: border-box;
word-break: break-word;
}
.pdf-global-alert-icon {
flex-shrink: 0;
width: 20px;
height: 20px;
color: #dc2626;
margin-top: 2px;
}
.pdf-tabs-nav {
margin-bottom: 2rem;
}
.pdf-tablist {
display: flex;
flex-wrap: wrap;
gap: 0.65rem;
background: #ffffff;
padding: 0.5rem;
border-radius: var(--radius-lg, 12px);
border: 1px solid #e2e8f0;
box-shadow: 0 2px 6px rgba(10, 37, 64, 0.04);
}
.pdf-tab {
flex: 1 1 auto;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem 1.25rem;
border-radius: var(--radius-md, 8px);
font-size: 0.9375rem;
font-weight: 700;
color: #475569;
background: transparent;
border: 1px solid transparent;
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
text-decoration: none;
}
.pdf-tab svg {
width: 18px;
height: 18px;
flex-shrink: 0;
}
.pdf-tab:hover {
color: #0A2540;
background: #f1f5f9;
}
.pdf-tab:focus-visible {
outline: 2px solid #2563EB;
outline-offset: 2px;
}
.pdf-tab.active,
.pdf-tab[aria-selected="true"] {
color: #ffffff;
background: #2563EB;
border-color: #2563EB;
box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.pdf-panel {
display: none;
}
.pdf-panel.active,
.pdf-panel:not([hidden]) {
display: block;
}
.pdf-panel[hidden] {
display: none !important;
}
.pdf-dropzone {
background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
border: 2px dashed #cbd5e1;
border-radius: var(--radius-xl, 16px);
padding: 2.75rem 1.5rem;
text-align: center;
cursor: pointer;
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
outline: none;
box-sizing: border-box;
margin-bottom: 2rem;
}
.pdf-dropzone:hover,
.pdf-dropzone:focus-visible {
border-color: #2563EB;
background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}
.pdf-dropzone.is-dragover {
border-color: #10B981;
background-color: #ecfdf5;
transform: scale(1.005);
box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}
.pdf-dropzone-icon-wrap {
width: 68px;
height: 68px;
border-radius: 50%;
background: rgba(37, 99, 235, 0.08);
color: #2563EB;
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: 1.25rem;
transition: transform 0.2s ease;
}
.pdf-dropzone:hover .pdf-dropzone-icon-wrap {
transform: translateY(-2px);
}
.pdf-dropzone-icon {
width: 32px;
height: 32px;
}
.pdf-dropzone-title {
font-size: 1.15rem;
font-weight: 700;
color: #0A2540;
margin: 0 0 0.5rem 0;
line-height: 1.4;
}
.pdf-dropzone-desc {
font-size: 0.9375rem;
color: var(--color-text-subtle, #4f5d73);
margin: 0 0 1.25rem 0;
line-height: 1.5;
}
.pdf-format-pills {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
flex-wrap: wrap;
margin-top: 1.25rem;
}
.pdf-format-pill {
font-size: 0.75rem;
font-weight: 700;
padding: 0.2rem 0.6rem;
border-radius: 9999px;
background: #e2e8f0;
color: #334155;
letter-spacing: 0.03em;
}
.pdf-btn-browse {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.7rem 1.5rem;
font-size: 0.9375rem;
font-weight: 700;
background: #2563EB;
color: #ffffff;
border: 1px solid #2563EB;
border-radius: var(--radius-md, 8px);
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.pdf-btn-browse:hover {
background: #1d4ed8;
border-color: #1d4ed8;
}
.pdf-queue-section {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: var(--radius-lg, 12px);
padding: 1.5rem;
margin-bottom: 2rem;
box-shadow: 0 1px 3px rgba(10, 37, 64, 0.04);
}
.pdf-queue-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid #f1f5f9;
margin-bottom: 1rem;
}
.pdf-queue-summary {
font-size: 0.9375rem;
font-weight: 700;
color: #0A2540;
}
.pdf-btn-clear-all {
padding: 0.4rem 0.85rem;
font-size: 0.8125rem;
font-weight: 600;
color: #ef4444;
background: #fef2f2;
border: 1px solid #fee2e2;
border-radius: var(--radius-md, 8px);
cursor: pointer;
transition: all 0.2s ease;
}
.pdf-btn-clear-all:hover {
background: #fee2e2;
color: #b91c1c;
}
.pdf-queue-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.pdf-item-card {
display: flex;
align-items: center;
gap: 1rem;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: var(--radius-md, 8px);
padding: 0.85rem 1.15rem;
transition: all 0.2s ease;
box-sizing: border-box;
}
.pdf-item-card:hover {
border-color: #cbd5e1;
background: #f1f5f9;
}
.pdf-item-thumb {
width: 48px;
height: 48px;
border-radius: 6px;
background: #e2e8f0;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
overflow: hidden;
}
.pdf-item-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.pdf-item-thumb svg {
width: 24px;
height: 24px;
color: var(--color-text-subtle, #4f5d73);
}
.pdf-item-details {
flex: 1 1 auto;
min-width: 0;
}
.pdf-item-name {
font-size: 0.9375rem;
font-weight: 700;
color: #0A2540;
margin: 0 0 0.25rem 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pdf-item-meta {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 0.8125rem;
color: var(--color-text-subtle, #4f5d73);
flex-wrap: wrap;
}
.pdf-item-badge {
background: #e0f2fe;
color: #0369a1;
font-size: 0.75rem;
font-weight: 700;
padding: 0.15rem 0.5rem;
border-radius: 9999px;
}
.pdf-item-actions {
display: flex;
align-items: center;
gap: 0.35rem;
flex-shrink: 0;
}
.pdf-btn-icon {
width: 32px;
height: 32px;
border-radius: 6px;
background: #ffffff;
border: 1px solid #cbd5e1;
color: #475569;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
}
.pdf-btn-icon:hover:not(:disabled) {
background: #f1f5f9;
color: #0A2540;
border-color: #94a3b8;
}
.pdf-btn-icon:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.pdf-btn-icon-danger:hover:not(:disabled) {
background: #fee2e2;
color: #dc2626;
border-color: #fca5a5;
}
.pdf-settings-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: var(--radius-lg, 12px);
padding: 1.75rem;
margin-bottom: 2rem;
box-shadow: 0 1px 3px rgba(10, 37, 64, 0.04);
}
.pdf-settings-header {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.pdf-settings-icon-wrap {
width: 38px;
height: 38px;
border-radius: 8px;
background: rgba(37, 99, 235, 0.08);
color: #2563EB;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.pdf-settings-title {
font-size: 1.15rem;
font-weight: 800;
color: #0A2540;
margin: 0;
}
.pdf-form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 1.25rem;
}
.pdf-form-group {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.pdf-form-label {
font-size: 0.875rem;
font-weight: 700;
color: #334155;
}
.pdf-select,
.pdf-input {
width: 100%;
padding: 0.65rem 0.85rem;
font-size: 0.9375rem;
border: 1px solid #cbd5e1;
border-radius: var(--radius-md, 8px);
background: #ffffff;
color: #0A2540;
box-sizing: border-box;
transition: all 0.2s ease;
font-family: inherit;
}
.pdf-select:focus,
.pdf-input:focus {
outline: none;
border-color: #2563EB;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.pdf-input-hint {
font-size: 0.8125rem;
color: var(--color-text-subtle, #4f5d73);
margin-top: 0.25rem;
line-height: 1.4;
}
.pdf-action-bar {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 1rem;
margin-top: 1.5rem;
margin-bottom: 2rem;
flex-wrap: wrap;
}
.pdf-btn-primary {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.85rem 1.85rem;
font-size: 1rem;
font-weight: 700;
color: #ffffff;
background: #2563EB;
border: 1px solid #2563EB;
border-radius: var(--radius-md, 8px);
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.pdf-btn-primary:hover:not(:disabled) {
background: #1d4ed8;
border-color: #1d4ed8;
}
.pdf-btn-primary:disabled {
opacity: 0.6;
cursor: not-allowed;
box-shadow: none;
}
.pdf-btn-secondary {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.85rem 1.5rem;
font-size: 1rem;
font-weight: 700;
color: #334155;
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: var(--radius-md, 8px);
cursor: pointer;
transition: all 0.2s ease;
}
.pdf-btn-secondary:hover {
background: #f1f5f9;
border-color: #94a3b8;
}
.pdf-status-banner {
display: flex;
align-items: center;
gap: 0.75rem;
background: #eff6ff;
border: 1px solid #bfdbfe;
color: #1e40af;
padding: 1rem 1.5rem;
border-radius: var(--radius-md, 8px);
margin-bottom: 1.5rem;
font-weight: 600;
font-size: 0.9375rem;
}
.pdf-spinner {
width: 20px;
height: 20px;
border: 3px solid rgba(37, 99, 235, 0.2);
border-top-color: #2563EB;
border-radius: 50%;
animation: pdf-spin 0.8s linear infinite;
flex-shrink: 0;
}
@keyframes pdf-spin {
to { transform: rotate(360deg); }
}
.pdf-result-card {
background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
border: 2px solid #86efac;
border-radius: var(--radius-xl, 16px);
padding: 2rem;
margin-top: 1.5rem;
margin-bottom: 2.5rem;
box-shadow: 0 4px 16px rgba(22, 101, 52, 0.08);
box-sizing: border-box;
}
.pdf-result-header {
display: flex;
align-items: center;
gap: 0.85rem;
margin-bottom: 1.25rem;
}
.pdf-result-icon-wrap {
width: 44px;
height: 44px;
border-radius: 50%;
background: #dcfce7;
color: #16a34a;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.pdf-result-title {
font-size: 1.35rem;
font-weight: 800;
color: #14532d;
margin: 0;
}
.pdf-result-details {
display: flex;
align-items: center;
gap: 1.5rem;
flex-wrap: wrap;
padding: 1rem;
background: #ffffff;
border: 1px solid #bbf7d0;
border-radius: var(--radius-md, 8px);
margin-bottom: 1.5rem;
}
.pdf-result-stat {
font-size: 0.9375rem;
color: #334155;
}
.pdf-result-stat strong {
color: #0A2540;
margin-left: 0.25rem;
}
.pdf-result-actions {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}
.pdf-btn-download {
display: inline-flex;
align-items: center;
gap: 0.6rem;
padding: 0.85rem 1.85rem;
font-size: 1rem;
font-weight: 800;
color: #ffffff;
background: #16a34a;
border: 1px solid #16a34a;
border-radius: var(--radius-md, 8px);
cursor: pointer;
text-decoration: none;
transition: all 0.2s ease;
box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}
.pdf-btn-download:hover {
background: #15803d;
border-color: #15803d;
}
.pdf-info-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: var(--radius-xl, 16px);
padding: 2.25rem;
margin-bottom: 3rem;
box-shadow: 0 2px 8px rgba(10, 37, 64, 0.04);
}
.pdf-info-header {
display: flex;
align-items: center;
gap: 0.85rem;
margin-bottom: 1rem;
}
.pdf-info-icon-wrap {
width: 40px;
height: 40px;
border-radius: 10px;
background: rgba(37, 99, 235, 0.08);
color: #2563EB;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.pdf-info-title {
font-size: 1.35rem;
font-weight: 800;
color: #0A2540;
margin: 0;
}
.pdf-info-desc {
font-size: 0.985rem;
color: #475569;
line-height: 1.7;
margin: 0;
}
.pdf-faq-section {
margin-top: 3rem;
margin-bottom: 3rem;
}
.pdf-faq-heading {
font-size: 1.75rem;
font-weight: 800;
color: #0A2540;
margin: 0 0 1.5rem 0;
}
.pdf-faq-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.25rem;
}
.pdf-faq-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: var(--radius-lg, 12px);
padding: 1.5rem;
box-shadow: 0 1px 3px rgba(10, 37, 64, 0.03);
transition: transform 0.2s ease, border-color 0.2s ease;
box-sizing: border-box;
}
.pdf-faq-card:hover {
border-color: #cbd5e1;
transform: translateY(-2px);
}
.pdf-faq-q {
font-size: 1.05rem;
font-weight: 700;
color: #0A2540;
margin: 0 0 0.65rem 0;
line-height: 1.4;
}
.pdf-faq-a {
font-size: 0.9375rem;
color: var(--color-text-subtle, #4f5d73);
line-height: 1.6;
margin: 0;
}
@media (max-width: 768px) {
.pdf-tools-wrapper {
padding: 1.5rem 0 3rem;
}
.pdf-tablist {
flex-direction: column;
}
.pdf-tab {
width: 100%;
justify-content: flex-start;
}
.pdf-dropzone {
padding: 2rem 1rem;
}
.pdf-settings-card {
padding: 1.25rem;
}
.pdf-form-grid {
grid-template-columns: 1fr;
}
.pdf-item-card {
flex-wrap: wrap;
}
.pdf-item-actions {
width: 100%;
justify-content: flex-end;
margin-top: 0.5rem;
}
.pdf-faq-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.pdf-page-title {
font-size: 1.75rem;
}
.pdf-btn-primary,
.pdf-btn-download,
.pdf-btn-secondary {
width: 100%;
justify-content: center;
}
.pdf-result-details {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
}
