/* OCR Upload Field Styles */
.frm_ocr_upload_container {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.frm_ocr_upload_container:hover {
    border-color: #0073aa;
}

.frm_ocr_file_input {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
}

.frm_ocr_preview {
    margin: 15px 0;
    text-align: center;
}

.frm_ocr_preview img {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.frm_ocr_processing {
    margin: 15px 0;
    text-align: center;
}

.frm_ocr_progress_bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.frm_ocr_progress_fill {
    height: 100%;
    background-color: #0073aa;
    width: 0%;
    transition: width 0.3s ease;
    animation: progress-animation 2s ease-in-out infinite;
}

@keyframes progress-animation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.frm_ocr_result {
    margin: 15px 0;
    text-align: left;
}

.frm_ocr_result h4 {
    margin-bottom: 10px;
    color: #333;
}

.frm_ocr_result textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
}

.frm_ocr_result textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Form Builder Styles */
.frm_ocr_upload_container .frm_icon_font {
    font-size: 24px;
    color: #0073aa;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .frm_ocr_upload_container {
        padding: 15px;
    }
    
    .frm_ocr_file_input {
        width: 100%;
    }
    
    .frm_ocr_preview img {
        max-width: 100%;
        height: auto;
    }
}

/* Error States */
.frm_ocr_upload_container.error {
    border-color: #dc3232;
    background-color: #ffeaea;
}

.frm_ocr_upload_container.success {
    border-color: #46b450;
    background-color: #eafaea;
}

/* Loading States */
.frm_ocr_upload_container.loading {
    pointer-events: none;
    opacity: 0.7;
}

.frm_ocr_upload_container.loading .frm_ocr_file_input {
    opacity: 0.5;
}
