/* Fast PDF — tool UI (Tailwind-free, matches FastWebTools brand) */
body.fastpdf-page {
    background-color: #f1f5f9;
    font-family: 'Inter', system-ui, sans-serif;
}

[hidden] { display: none !important; }

.fastpdf-wrap {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 20px 40px -4px rgba(15, 23, 42, 0.08);
    border: 1px solid #f1f5f9;
}

.fastpdf-brand-banner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    text-align: center;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.fastpdf-brand-banner:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}
.fastpdf-brand-banner:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.fastpdf-brand-banner__inner {
    display: inline-grid;
    grid-template-columns: 52px auto;
    column-gap: 12px;
    align-items: center;
    justify-items: start;
    width: min(100%, 248px);
    text-align: left;
}
.fastpdf-brand-banner__icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
}
.fastpdf-brand-banner__label {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.1;
    color: #0f172a;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .fastpdf-brand-banner__label { font-size: 18px; }
    .fastpdf-brand-banner__icon { width: 44px; height: 44px; }
    .fastpdf-brand-banner__inner {
        grid-template-columns: 44px auto;
        width: min(100%, 220px);
    }
}

.fastpdf-logo-banner {
    text-align: center;
    margin: 0 0 4px;
}
.fastpdf-logo-banner img {
    max-height: 120px;
    width: auto;
    display: inline-block;
}

.fastpdf-tagline {
    text-align: center;
    color: rgb(49, 51, 63);
    opacity: 0.65;
    font-size: 0.875rem;
    margin: 0 0 0.75rem;
    line-height: 1.6;
}

.fastpdf-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #e2e8f0;
}
.fastpdf-tab {
    flex: 1;
    padding: 0.65rem 0.5rem;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.fastpdf-tab:hover { color: #0f172a; }
.fastpdf-tab.active {
    color: #059669;
    border-bottom-color: #059669;
}

.fastpdf-panel { display: none; }
.fastpdf-panel.active { display: block; }

.fastpdf-panel h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
}
.fastpdf-caption {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0 0 1rem;
    font-weight: 500;
}

.fastpdf-drop-hint {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 14px 16px;
    margin: 0 0 12px;
    background: #fcfcfd;
    text-align: center;
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
}

.fastpdf-drop-hint__part {
    white-space: nowrap;
}

.fastpdf-drop-hint__sep {
    color: #94a3b8;
}

@media (max-width: 640px) {
    .fastpdf-drop-hint {
        flex-direction: column;
        gap: 4px;
    }

    .fastpdf-drop-hint__sep {
        display: none;
    }

    .fastpdf-drop-hint__part {
        display: block;
        width: 100%;
        white-space: normal;
    }
}

.fastpdf-hybrid-badge {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 0 0 12px;
    color: #3730a3;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.fastpdf-disclaimer {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-left: 4px solid #f97316;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 10px 0 14px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.fastpdf-upload-zone {
    position: relative;
    margin-bottom: 12px;
}
.fastpdf-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.fastpdf-upload-label {
    display: block;
    text-align: center;
    padding: 1rem;
    border: 2px dashed #94a3b8;
    border-radius: 14px;
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.fastpdf-upload-zone:hover .fastpdf-upload-label,
.fastpdf-upload-zone.dragover .fastpdf-upload-label {
    border-color: #059669;
    background: #ecfdf5;
}

.fastpdf-file-list { list-style: none; padding: 0; margin: 0 0 12px; }
.fastpdf-file-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 6px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.fastpdf-file-name {
    word-break: break-all;
    line-height: 1.4;
    font-size: 0.9rem;
}
.fastpdf-file-meta { color: #64748b; font-size: 0.75rem; }

.fastpdf-icon-btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}
.fastpdf-icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.fastpdf-icon-btn:not(:disabled):hover {
    background: #f1f5f9;
}

.fastpdf-empty {
    text-align: center;
    padding: 1rem;
    color: #64748b;
    font-size: 0.9rem;
    background: #f8fafc;
    border-radius: 12px;
}

.fastpdf-total {
    font-weight: 600;
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.fastpdf-btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: opacity 0.15s, box-shadow 0.15s;
}
.fastpdf-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}
.fastpdf-btn-primary:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
}
.fastpdf-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.fastpdf-alert {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin: 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}
.fastpdf-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.fastpdf-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.fastpdf-alert-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.fastpdf-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fastpdf-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 0.35rem;
}
@keyframes fastpdf-spin { to { transform: rotate(360deg); } }

.fastpdf-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.75rem 0 1rem;
}
.fastpdf-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.fastpdf-field {
    margin-bottom: 1rem;
}
.fastpdf-field label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    color: #334155;
}
.fastpdf-field input[type="text"],
.fastpdf-field input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
}

.fastpdf-download-link {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 0.5rem;
}

.fastpdf-file-info {
    font-size: 0.9rem;
    margin: 0.75rem 0;
    color: #334155;
}

@media (max-width: 480px) {
    .fastpdf-wrap { padding: 1.25rem 1rem; border-radius: 16px; }
    .fastpdf-file-row { grid-template-columns: 1fr auto auto auto; gap: 4px; }
}

/* SEO crawl block — matches FastWebTools main page style (mirrors /seo-crawl.css) */
.fw-seo-crawl-block {
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 10px;
    padding: 0 14px;
    max-height: 100px;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    border: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}
.fw-seo-crawl-block::-webkit-scrollbar { width: 4px; }
.fw-seo-crawl-block::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 4px;
}
.fw-seo-crawl-block h2 {
    font-size: 8pt;
    font-weight: 600;
    margin: 0 0 4px;
    color: #94a3b8;
    line-height: 1.3;
}
.fw-seo-crawl-block h3 {
    font-size: 7.5pt;
    font-weight: 600;
    margin: 8px 0 3px;
    color: #94a3b8;
    line-height: 1.3;
}
.fw-seo-crawl-block p,
.fw-seo-crawl-block li {
    font-size: 7pt;
    line-height: 1.45;
    margin: 0 0 6px;
    color: #94a3b8;
}
.fw-seo-crawl-block ul {
    margin: 0 0 6px;
    padding-left: 1.1em;
}
.fw-seo-crawl-block strong {
    font-weight: 600;
    color: #94a3b8;
}
