        /* TOOL UI */
        .pdf-ocr-wrap { max-width: 900px; margin: 2rem auto; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); padding: 2rem; }
        .drop-zone { border: 2px dashed #cbd5e0; border-radius: 8px; padding: 2.5rem 1rem; text-align: center; background: #f8fafc; cursor: pointer; margin-bottom: 20px; }
        .drop-zone.drag-over { border-color: #4299e1; background-color: #ebf8ff; }
        
        #preview-container { max-width: 450px; margin: 1rem auto; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; display: none; background: #f1f5f9; }
        #pdfPreview { width: 100%; height: auto; display: block; }

        .tool-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-bottom: 1.5rem; }
        .control-item label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: #4a5568; }
        .control-item input, .control-item select { width: 100%; padding: 10px; border: 1px solid #e2e8f0; border-radius: 6px; }
        
        .btn-process { background: #4299e1; color: white; border: none; padding: 14px; border-radius: 6px; font-weight: 700; cursor: pointer; width: 100%; font-size: 1.1rem; }
        .btn-process:disabled { background: #cbd5e0; cursor: not-allowed; }
        
        .output-header { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
        #copyBtn { background: #edf2f7; border: 1px solid #cbd5e0; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: 0.2s; }
        #copyBtn:hover { background: #e2e8f0; }

        progress { width: 100%; height: 12px; margin-top: 15px; border-radius: 10px; }
        #outText { width: 100%; min-height: 250px; margin-top: 0.5rem; padding: 12px; border: 1px solid #e2e8f0; border-radius: 6px; background: #f1f5f9; font-family: inherit; resize: vertical; }

        /* Loading spinner */
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(66, 153, 225, 0.3);
            border-radius: 50%;
            border-top-color: #4299e1;
            animation: spin 1s ease-in-out infinite;
            margin-right: 10px;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }