#collect-details {
    background-color: #ffffff !important;
    color: #099f87 !important;
    border: 1px solid #099f87;
    padding: 8px !important;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    margin-right: 10px;
    line-height: 1;
    text-transform: capitalize;
    border-radius: 6px;
}


#skip-collect {
    margin-right: 16px;
    background-color: #FFFFFF;
    border: 1px solid #E53935 !important;
    color: #E53935 !important;
    padding: 8px !important;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
    text-transform: capitalize;
    border-radius: 6px;
}
.insurance_upload_section {
    border: 1px solid #e9ecef;
}
.Insurance_container div {
    background-color: #fff !important;
    width: 100% !important;
}

.ocr-container {
    background: #fff;
    width: 100%;
}

/* Device-specific sections */
.ocr-desktop-section,
.ocr-ios-section,
.ocr-android-section,
.ocr-insurance-image {
    display: none;
}

.ocr-header {
    text-align: center;
    margin-bottom: 32px;
}

.ocr-header h1 {
    color: #293241;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.ocr-header p {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Upload Section */
.ocr-upload-section {
    margin-bottom: 24px;
}

.ocr-upload-area {
    border: 2px dashed #00d4b1;
    border-radius: 8px;
    padding: 40px 20px !important;
    text-align: center;
    background: #f8fffe;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.ocr-upload-area:hover {
    border-color: #099f87;
    background: #f0fffc;
}

.ocr-upload-area.ocr-dragover {
    border-color: #099f87;
    background: #f0fffc;
}

.ocr-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.ocr-upload-text {
    color: #293241;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.ocr-upload-subtext {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Mobile upload section (without drag & drop area) */
.ocr-mobile-upload-section {
    /*margin-bottom: 24px;*/
    text-align: center;
}

.ocr-mobile-upload-info {
    color: #293241;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.ocr-mobile-upload-subtext {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* Button Styles */
.ocr-btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ocr-btn {
    background: #00d4b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.ocr-btn:hover {
    background: #099f87;
}

.ocr-btn-secondary {
    background: #293241;
}

.ocr-btn-secondary:hover {
    background: #1a1f2e;
}

.ocr-btn-danger {
    background: transparent;
    padding: 8px;
    min-width: auto;
    width: fit-content !important;
    border: 1px solid #dc3545;
}
.ocr-btn-danger svg {
    stroke: #dc3545;
}

.ocr-btn-danger:hover {
    background: #dc3545;
}
.ocr-btn-danger:hover svg {
    stroke: #fff;
}

.ocr-btn-success {
    background: #28a745;
}

.ocr-btn-success:hover {
    background: #218838;
}

.ocr-btn svg {
    width: 16px;
    height: 16px;
}

/* Desktop specific styles */
.ocr-desktop-section .ocr-btn {
    min-width: 160px;
}

/* iOS specific styles */
.ocr-ios-section .ocr-btn {
    min-width: 180px;
}

/* Android specific styles */
.ocr-android-section .ocr-btn-group {
    gap: 8px;
}

.ocr-android-section .ocr-btn {
    min-width: 140px;
}

/* Preview Section */
.ocr-preview-section {
    margin: 24px 0 0;
    display: none;
}

.ocr-preview-section.ocr-active {
    display: block;
}

.ocr-preview-container {
    background: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 16px !important;
    border: 1px solid #e9ecef;
}

.ocr-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ocr-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    /* space between fullscreen & delete */
}

.ocr-preview-title {
    color: #293241;
    font-weight: 500;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ocr-preview-title svg {
    width: 16px;
    height: 16px;
}

.ocr-preview-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.ocr-preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

 .ocr-lightbox-access-btn {
    /* position: absolute; */
    top: 12px;
    right: 12px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(8px);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 1;
    transform: scale(1);
    padding: 0;
}

.ocr-lightbox-access-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1);
}
.ocr-lightbox-access-btn:hover svg{
    stroke:#fff
}

.ocr-lightbox-access-btn svg {
    width: 18px;
    height: 18px;
    stroke: rgb(0 0 0);
}

.ocr-preview-image-container:hover .ocr-lightbox-access-btn {
    /*opacity: 1;*/
    /*transform: scale(1);*/
}

/* Lightbox Styles - Enhanced with zoom controls */
.ocr-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.ocr-lightbox.ocr-active {
    display: flex;
}

.ocr-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ocr-lightbox-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    touch-action: none;
}

.ocr-lightbox-image-wrapper.dragging {
    cursor: grabbing;
}

.ocr-lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: none;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.ocr-lightbox-controls {
    position: absolute;
    top: 20px;
    left: 4px;
    display: flex;
    gap: 8px;
    z-index: 10001;
}

.ocr-lightbox-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #1f2937;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding:0;
}

.ocr-lightbox-btn:hover {
    background: white;
    transform: scale(1.1);
    color:#1f2937;
}

.ocr-lightbox-btn svg {
    width: 16px;
    height: 16px;
}

.ocr-lightbox-close {
    position: absolute;
    top: 20px;
    right: 4px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #1f2937;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 10002;
    font-weight: bold;
    padding: 0;
}

.ocr-lightbox-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    color:#1f2937;
}

.ocr-lightbox-close:active {
    transform: scale(1.05);
}

.ocr-lightbox-btn:focus,.ocr-lightbox-close:focus{
    background: #fff;
    color:#1f2937;
}

.ocr-lightbox-close svg {
    width: 16px;
    height: 16px;
    stroke-width: 3;
}

.ocr-zoom-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10001;
    backdrop-filter: blur(8px);
}

/* Results Section */
.ocr-results-section {
    margin-top: 16px;
    display: none;
}

.ocr-results-section.ocr-active {
    display: block;
}

.ocr-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ocr-results-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ocr-results-title {
    color: #293241;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1;
}

.ocr-results-icon {
    width: 18px;
    height: 18px;
}

.ocr-edit-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ocr-edit-btn,
.ocr-save-btn,
.ocr-cancel-btn {
    background: transparent;
    border: 1px solid #00d4b1;
    color: #00d4b1;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    max-width: fit-content;
}

.ocr-edit-btn:hover,
.ocr-save-btn:hover,
.ocr-cancel-btn:hover {
    background: #00d4b1;
    color: white;
}

.ocr-edit-btn svg,
.ocr-save-btn svg,
.ocr-cancel-btn svg {
    width: 14px;
}

.ocr-save-btn {
    border-color: #28a745;
    color: #28a745;
}

.ocr-save-btn:hover {
    background: #28a745;
}

.ocr-cancel-btn {
    border-color: #6c757d;
    color: #6c757d;
}

.ocr-cancel-btn:hover {
    background: #6c757d;
}

.ocr-editing-controls {
    display: none;
    justify-content: center;
    gap: 8px;
}

.ocr-editing-controls.ocr-active {
    display: flex;
}

.ocr-data-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px !important;
    padding: 16px !important;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ocr-data-grid {
    display: grid;
    gap: 12px;
}

.ocr-data-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ocr-data-label {
    color: #6b7280 !important;
    font-weight: 500 !important;
    font-size: 1.05rem !important;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1;
}

.ocr-data-value {
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    min-height: 24px;
    display: flex;
    align-items: center;
    font-family: inherit;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
    padding: 0 0 2px;
}

.ocr-data-value.ocr-empty {
    color: #9ca3af;
    font-style: italic;
}

.ocr-data-value.ocr-editing {
    border-bottom: 1px solid #00d4b1;
    padding: 0 0 2px;
    border-radius: 0px;
}

.ocr-data-value.ocr-editing:focus {
    border-bottom-color: #099f87;
    box-shadow: 0 2px 4px rgba(0, 212, 177, 0.1);
}

.ocr-data-input {
    display: none;
}

.ocr-results-title {
    color: #1f2937;
    font-weight: 600;
    font-size: 1.1rem;
}

.ocr-results-icon {
    width: 18px;
    height: 18px;
}

.ocr-confirm-section {
    margin-top: 20px;
    text-align: center;
    display: none;
}

.ocr-confirm-section.ocr-active {
    display: flex;
    justify-content: right;
}

/* Loading Animation */

.ocr-loading.ocr-active {
    display: block;
}

.ocr-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #00d4b1;
    border-radius: 50% !important;
    animation: ocr-spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes ocr-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ocr-loading-text {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
}

/* Hidden File Input */
.ocr-file-input {
    display: none;
}

/* Responsive adjustments for clean design */
@media (max-width: 768px) {
    .ocr-container {
        padding: 20px;
        /*margin: 10px;*/
    }

    .ocr-header h1 {
        font-size: 1.5rem;
    }

    .ocr-btn-group {
        flex-direction: column;
        align-items: center;
    }

    .ocr-btn {
        width: 100%;
    }

    .ocr-upload-area {
        padding: 32px 16px;
    }

    .ocr-results-header {
        /*flex-direction: column;*/
        /*align-items: flex-start;*/
        gap: 12px;
    }

    .ocr-edit-controls {
        align-self: stretch;
    }

    .ocr-edit-btn,
    .ocr-save-btn,
    .ocr-cancel-btn {
        flex: 1;
        justify-content: center;
    }

    .ocr-data-container {
        padding: 20px;
    }

    .ocr-data-grid {
        gap: 12px;
    }

    .ocr-lightbox-access-btn {
        /* width: 44px;
        height: 44px; */
        opacity: 1;
        transform: scale(1);
    }

    /* .ocr-lightbox-access-btn svg {
        width: 20px;
        height: 20px;
    } */
    div#ocrPreviewSection {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .ocr-preview-image:hover {
        transform: none;
    }
}



/*ChatBot Only Changes*/
.ocr-container,.ocr-header,.ocr-android-section, .ocr-ios-section, .ocr-preview-section,.ocr-mobile-upload-info,.ocr-mobile-upload-section,.ocr-mobile-upload-info,.ocr-mobile-upload-subtext,.ocr-btn-group,.ocr-preview-container,.ocr-preview-header,.ocr-preview-image-container,div#ocrResultsSection div, div#ocrResultsSection,div#ocrDesktopSection,.ocr-upload-section,div#ocrUploadAreaDesktop,.ocr-upload-text, .ocr-upload-subtext,.ocr-insurance-image,.insurance-div-buttons {
    max-width: unset !important;
}
.ocr-container, .ocr-header {
    padding: 0 !important;
}
.ocr-header h1{
    margin:0 !important;
    line-height:1;
    text-align: center !important;
    font-size: 1.75rem;
}
.insurance_upload_section {
    padding: 16px !important;
}
.ocr-android-section, .ocr-mobile-upload-section,.ocr-mobile-upload-info,.ocr-mobile-upload-subtext,.ocr-btn-group,.ocr-preview-header,.ocr-preview-image-containe,.ocr-results-headerr,div#ocrDesktopSection,.ocr-upload-section,.ocr-upload-text, .ocr-upload-subtext {
    padding: 0 !important;
}
.ocr-mobile-upload-info, .ocr-mobile-upload-subtext {
    text-align: center !important;
    line-height: 1;
}
.ocr-mobile-upload-section .ocr-mobile-upload-info {
    font-weight: 500 !important;
    font-size: 1.55rem !important;
}
.ocr-loading .ocr-spinner {
    max-width: 32px;
    max-height: 32px;
}
.ocr-preview-header div,.ocr-results-header div {
    width: fit-content !important;
    padding: 0 !important;
}
.ocr-preview-image-container img#ocrPreviewImage {
    width: 100% !important;
}
.ocr-data-container .ocr-data-item,.ocr-data-container .ocr-data-item .ocr-data-label,.ocr-data-grid,div#confirmSection,div#ocrResultsSection,.ocr-preview-image-container, .ocr-preview-header,div#ocrIosSection,.ocr-mobile-upload-section,.ocr-mobile-upload-info, .ocr-mobile-upload-subtext,.ocr-btn-group,.ocr-insurance-image,.ocr-results-header,div#ocrPreviewSection {
    padding: 0 !important;
}
div#ocrUploadAreaDesktop,.ocr-upload-text, .ocr-upload-subtext {
    text-align: center !important;
}
.ocr-insurance-image img {
    width: 100% !important;
    max-height: 300px;
    object-fit: contain;
}
button#keep-insurance {
    background: #099f87;
}
button#update-insurance {
    background: #293241;
}
.insurance-div-buttons button {
    padding: 10px 18px;
    line-height: 1;
    text-transform: capitalize;
    font-weight: 500;
}
.insurance-div-buttons {
    padding: 8px 0 !important;
    display: flex;
    gap: 8px;
    justify-content: center;
}
div#ocrUploadAreaDesktop .ocr-upload-text {
    color: #293241 !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    line-height: 1;
}
div#ocrUploadAreaDesktop .ocr-upload-subtext {
    font-size: 1.25rem;
    color: #6c757d !important;
}
button#btnRemoveImage {
    display: block;
    width: 32px;
    height: 32px;
}
/* Loading Container - MODIFIED */
.ocr-loading {
    display: none;
    margin: 24px 0;
    padding: 32px 20px;
    background: #f8fffe;
    border-radius: 8px;
    border: 1px solid #e0f2f1;
}

.ocr-loading.ocr-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Extraction Loader Container - NEW */
.extraction-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Icons Container - NEW */
.extraction-icons {
    display: flex;
    gap: 16px !important;
    align-items: center;
    padding: 0 !important;
}

/* Individual Icon - NEW */
.extraction-icon {
    animation: smoothPopIn 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0;
    transform-origin: center;
}
.extraction-icon {
    max-width: 36px !important;
    padding: 0 !important;
}

/* Staggered Animation Delays - Sequential appearance - NEW */
.extraction-icon:nth-child(1) {
    animation-delay: 0s;
}

.extraction-icon:nth-child(2) {
    animation-delay: 1s;
}

/* Icon SVG Sizing - NEW */
.extraction-icon svg {
    width: 36px;
    height: 36px;
    color: #0d9488;
    filter: drop-shadow(0 2px 4px rgba(13, 148, 136, 0.2));
}

/* Loading Text - NEW */
.extraction-text {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
    text-align: center;
    animation: textPulse 6s ease-in-out infinite;
}

/* Progress Bar - NEW */
.ocr-progress-container {
    width: 240px !important;
    max-width: 240px !important;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px !important;
    overflow: hidden;
    position: relative;
    padding: 0 !important;
}

.ocr-progress-bar {
    width: 30% !important;
    max-width: 30% !important;
    height: 100%;
    background: linear-gradient(90deg, #0d9488, #14b8a6);
    border-radius: 2px !important;
    animation: progressLoop 2s linear infinite;
    padding: 0 !important;
}

/* Progress Bar Continuous Loop Animation - NEW */
@keyframes progressLoop {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

/* Smooth Pop In Animation - Sequential show, simultaneous hide - NEW */
@keyframes smoothPopIn {
    /* Fade in phase */
    0% { 
        opacity: 0; 
        transform: scale(0.3) translateY(10px); 
    }
    10% { 
        opacity: 1; 
        transform: scale(1.08) translateY(-2px); 
    }
    15% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
    /* Stay visible - both icons visible together */
    60% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
    /* Fade out phase - all hide together */
    68% {
        opacity: 0.8;
        transform: scale(0.95) translateY(2px);
    }
    75% { 
        opacity: 0; 
        transform: scale(0.3) translateY(10px); 
    }
    /* Stay hidden until next cycle */
    100% {
        opacity: 0;
        transform: scale(0.3) translateY(10px);
    }
}

/* Text Pulse Animation - NEW */
@keyframes textPulse {
    0%, 100% { 
        opacity: 0.7; 
    }
    50% { 
        opacity: 1; 
    }
}

/* SVG Icon Styles - NEW */
.icon {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* SVG Path Animation - NEW */
.extraction-icon svg path,
.extraction-icon svg polyline,
.extraction-icon svg line,
.extraction-icon svg circle {
    animation: drawPath 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.extraction-icon:nth-child(1) svg path,
.extraction-icon:nth-child(1) svg polyline,
.extraction-icon:nth-child(1) svg line {
    animation-delay: 0.15s;
}

.extraction-icon:nth-child(2) svg path,
.extraction-icon:nth-child(2) svg polyline,
.extraction-icon:nth-child(2) svg circle {
    animation-delay: 1.15s;
}

@keyframes drawPath {
    0% {
        stroke-dashoffset: 100;
    }
    15% {
        stroke-dashoffset: 0;
    }
    60% {
        stroke-dashoffset: 0;
    }
    75% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 100;
    }
}
.ocr-goback-btn {
   background: #ae4848; 
}
.ocr-goback-btn:hover {
   background: #9c3a3a; 
}
.extraction-icons {
    justify-content: center;
    gap: 40px;
}
.ocr-preview-buttons {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    align-items: center;
}

/*Insurance box removal - new site*/
.Insurance_container .ocr-preview-container {
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid #e9ecef !important;
    padding-bottom: 16px !important;
    box-shadow: unset !important;
}
.Insurance_container div#ocrDataContainer {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: unset !important;
}