#pdfTextExtractorTool .drop-zone {
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    background: #f8fafc;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

#pdfTextExtractorTool .drop-zone.dragover {
    border-color: #0d6efd;
    background: #eef4ff;
}

#pdfTextExtractorTool .preview-panel {
    max-height: 520px;
    overflow: auto;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
}

#pdfTextExtractorTool .preview-text {
    margin: 0;
    padding: 1rem;
    font-size: .95rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

#pdfTextExtractorTool .page-preview-card {
    border-bottom: 1px solid #e9ecef;
}

#pdfTextExtractorTool .page-preview-card:last-child {
    border-bottom: 0;
}

#pdfTextExtractorTool .search-chip {
    border: 1px solid #ced4da;
    border-radius: 999px;
    padding: .2rem .65rem;
    font-size: .85rem;
    background: #fff;
}

#pdfTextExtractorTool .search-chip.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

#pdfTextExtractorTool mark.search-hit {
    background: #fff3b0;
    color: #212529;
    padding: 0;
}

#pdfTextExtractorTool .stat-box {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: .85rem;
    background: #fff;
    height: 100%;
}

#pdfTextExtractorTool .stat-value {
    font-size: 1.3rem;
    font-weight: 700;
}

#pdfTextExtractorTool .muted-small {
    font-size: .875rem;
    color: #6c757d;
}

@media (max-width: 767px) {
    #pdfTextExtractorTool .preview-panel {
        max-height: 420px;
    }
}
