        .ocr-container { max-width: 900px; margin: 2rem auto; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); padding: 2rem; }
        
        /* The Unified Box */
        .unified-box { 
            position: relative;
            border: 2px dashed #cbd5e0; 
            border-radius: 8px; 
            min-height: 150px; 
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8fafc; 
            cursor: pointer; 
            transition: all 0.2s;
            overflow: hidden;
            margin-bottom: 1.5rem;
        }
        .unified-box.drag-over { border-color: #4299e1; background-color: #ebf8ff; }
        .unified-box.has-image { border-style: solid; cursor: default; }

        .upload-prompt { text-align: center; pointer-events: none; }
        
        /* Cropper Container (Hidden until image uploaded) */
        #cropperWrapper { width: 1000px; height: 400px; display: none; }
        #imgPreview { max-width: 100%; display: block; }

        .ocr-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 1.5rem; }
        .control-group { display: flex; flex-direction: column; gap: 5px; }
        .control-group label { font-size: 0.9rem; font-weight: 600; color: #4a5568; }
        select { padding: 10px; border: 1px solid #e2e8f0; border-radius: 6px; }

        .btn-run { background: #4299e1; color: white; border: none; padding: 14px; border-radius: 6px; font-weight: 700; cursor: pointer; width: 100%; font-size: 1.1rem; transition: background 0.2s; }
        .btn-run:hover { background: #3182ce; }
        .btn-run:disabled { background: #a0aec0; cursor: not-allowed; }

        textarea#outText { width: 100%; min-height: 250px; margin-top: 1rem; padding: 12px; border: 1px solid #e2e8f0; border-radius: 6px; background: #f1f5f9; font-family: inherit; font-size: 1rem; }
        
        /* Progress Styles */
        .progress-container { margin: 1rem 0; display: none; }
        .progress-bar { width: 100%; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
        .progress-fill { height: 100%; background: #4299e1; width: 0%; transition: width 0.3s; }
        .progress-text { font-size: 0.9rem; color: #4a5568; margin-top: 0.5rem; text-align: center; }

        .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 linear infinite; margin-right: 10px; vertical-align: middle; }
        @keyframes spin { to { transform: rotate(360deg); } }
