/* PDF Tools Suite — stylesheet */

.pdftools-wrap {
    max-width: 680px;
    margin: 0 auto 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── AdSense slots ────────────────────────────────────────────────────────── */
.pdftools-ad { margin: 1rem 0; text-align: center; min-height: 90px; }

/* ── Card ─────────────────────────────────────────────────────────────────── */
.pdftools-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.pdftools-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 .4rem;
}

.pdftools-subtitle {
    color: #6b7280;
    font-size: .95rem;
    margin: 0 0 1.6rem;
}

/* ── Drop zone ────────────────────────────────────────────────────────────── */
.pdftools-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    margin-bottom: 1.2rem;
}

.pdftools-dropzone--active,
.pdftools-dropzone:hover {
    border-color: #185FA5;
    background: #f0f7ff;
}

.pdftools-dropzone__icon { margin-bottom: 1rem; }

.pdftools-dropzone__text {
    color: #374151;
    font-size: .95rem;
    margin: 0 0 .4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
}

.pdftools-link {
    color: #185FA5;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

.pdftools-file-input { display: none; }

.pdftools-dropzone__limit {
    font-size: .8rem;
    color: #9ca3af;
    margin: 0;
}

/* ── File list ────────────────────────────────────────────────────────────── */
.pdftools-file-list {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.pdftools-file-item {
    display: flex;
    justify-content: space-between;
    padding: .6rem 1rem;
    font-size: .875rem;
    border-bottom: 1px solid #f3f4f6;
}

.pdftools-file-item:last-child { border-bottom: none; }
.pdftools-file-name { color: #374151; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.pdftools-file-size { color: #9ca3af; white-space: nowrap; }

/* ── Button ───────────────────────────────────────────────────────────────── */
.pdftools-btn {
    display: inline-block;
    padding: .75rem 2rem;
    background: #185FA5;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, opacity .2s, transform .1s;
    margin: .3rem;
}

.pdftools-btn:hover:not(:disabled) { background: #0c447c; }
.pdftools-btn:active:not(:disabled) { transform: scale(.98); }
.pdftools-btn:disabled { opacity: .45; cursor: not-allowed; }

.pdftools-btn--download { background: #3B6D11; }
.pdftools-btn--download:hover { background: #27500A; }

.pdftools-btn--ghost {
    background: transparent;
    color: #6b7280 !important;
    border: 1px solid #d1d5db;
}

.pdftools-btn--ghost:hover { background: #f9fafb; }

/* ── Progress bar ─────────────────────────────────────────────────────────── */
.pdftools-progress { margin: 1rem 0; }

.pdftools-progress__bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: .5rem;
}

.pdftools-progress__fill {
    height: 100%;
    width: 0%;
    background: #185FA5;
    border-radius: 4px;
    transition: width .3s ease;
}

.pdftools-progress__label { font-size: .875rem; color: #6b7280; margin: 0; }

/* ── Result ───────────────────────────────────────────────────────────────── */
.pdftools-result {
    padding: 1.5rem 0 .5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.pdftools-result p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

/* ── Error ────────────────────────────────────────────────────────────────── */
.pdftools-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: .75rem 1rem;
    color: #b91c1c;
    font-size: .875rem;
    margin-top: .75rem;
    text-align: left;
    line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .pdftools-card { padding: 1.25rem; }
    .pdftools-title { font-size: 1.2rem; }
    .pdftools-dropzone { padding: 1.5rem 1rem; }
}
