/* PhotoAI Processor Styles */


/* Error and Loader Styles */

.photoai-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff5722;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 10002;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
    animation: slideInRight 0.3s ease;
}

.photoai-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10003;
}

.loader-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ffffff33;
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}


/* PhotoAI Processing Popup Additional Styles */

.hidden {
    display: none !important;
}


/* Processing Steps Styles */

.processing-step {
    display: flex;
    align-items: center;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.processing-step:last-child {
    border-bottom: none;
}

.processing-step.active {
    border-radius: 8px;
    padding: 0px;
    margin: 5px 0;
}

.processing-step.completed {
    border-radius: 8px;
    padding: 0px;
    margin: 5px 0;
}

.processing-step.error {
    border-radius: 8px;
    padding: 0px;
    margin: 5px 0;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    color: #666;
}

.processing-step.active .step-number {
    background: #007cba;
    color: white;
}

.processing-step.completed .step-number {
    background: #28a745;
    color: white;
}

.processing-step.error .step-number {
    background: #dc3545;
    color: white;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.step-description {
    color: #666;
    font-size: 14px;
}

.step-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.step-check {
    color: #28a745;
    font-size: 18px;
    font-weight: bold;
    display: none;
}

.tab_2 {
    flex-direction: row-reverse !important;
}


/* Image Preview Styles */

.processing-image-preview {
    padding: 20px;
    text-align: center;
}

.image-preview-wrapper {
    display: inline-block;
}

.preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-label {
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}


/* Results Tab Styles */

.tab_3 {
    padding: 20px;
}

.results-container {
    text-align: center;
}

.processed-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.result-image {
    text-align: center;
}

.result-image img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.result-image p {
    font-weight: bold;
    color: #333;
    margin: 0;
}


/* Analysis Results Styles */

.analysis-results {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.analysis-results h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.analysis-item {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.analysis-item:last-child {
    border-bottom: none;
}


/* Action Buttons */

.action-buttons {
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}


/* Error Tab Styles */

.tab_error {
    padding: 40px 20px;
}

.error-container {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.error-container h2 {
    color: #dc3545;
    margin-bottom: 20px;
}

.error-container p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}


/* Progress Bar Updates */

.progress-bar-step {
    position: relative;
    text-align: center;
    padding: 10px;
}

.progress-bar-step-complete {
    color: #000;
}

.progress-bar-step-active {
    color: #000;
    font-weight: bold;
}

.progress-bar-step-inactive {
    color: #000;
}


/* Responsive Design */

@media (max-width: 768px) {
    .processed-images {
        flex-direction: column;
        align-items: center;
    }
    .result-image img {
        max-width: 150px;
    }
    .analysis-results {
        margin: 20px 10px;
        padding: 15px;
    }
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin: 5px 0;
    }
}


/* Processing Popup Styles */

.photo-processing-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 99999999999;
    align-items: center;
    justify-content: center;
}

.photo-processing-popup.active {
    display: flex;
}

.processing-modal {
    background: white;
    border-radius: 12px;
    padding: 0px;
    max-width: 1306px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.processing-header {
    text-align: left;
    margin-bottom: 0px;
}

.processing-header h2 {
    font-size: 33px;
    color: #333;
    margin: 0;
    font-weight: 600;
    font-family: "Montserrat", Sans-serif;
    margin-bottom: 20px;
}

.processing-steps {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 40px;
}

.processing-step {
    display: flex;
    align-items: center;
    /* padding: 20px; */
    border-radius: 8px;
    /* background: #f8f9fa; */
    /* border-left: 4px solid #e9ecef; */
    transition: all 0.3s ease;
    margin-bottom: 17px;
    font-family: "Montserrat", Sans-serif;
}

.processing-step {
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.processing-step.active {}

.processing-step.completed {}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.processing-step.active .step-number {
    color: white;
}

.processing-step.completed .step-number {
    background: #4caf50;
    color: white;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.step-description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.step-status {
    margin-left: auto;
    padding-left: 20px;
}

.step-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.processing-step.active .step-spinner {
    display: block;
}

.step-check {
    width: 20px;
    height: 20px;
    color: #4caf50;
    display: none;
}

.processing-step.completed .step-check {
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.processing-image-preview {
    text-align: center;
    margin: 30px 0;
}

.preview-image {
    max-width: 300px;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 24px;
    border-radius: 44px;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background: #f5f5f5;
    color: #333;
}


/* Processing Results Styles */

.processing-results-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.results-content h2 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 28px;
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.image-container {
    text-align: center;
}

.image-container h3 {
    margin-bottom: 20px;
    color: #666;
    font-size: 18px;
}

.result-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.download-btn,
.reset-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn {
    background: #2196f3;
    color: white;
}

.download-btn:hover {
    background: #1976d2;
    transform: translateY(-2px);
}

.reset-btn {
    background: #f5f5f5;
    color: #333;
}

.reset-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .image-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    .processing-modal {
        padding: 20px;
    }
}


/* Camera Modal Styles */

.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.camera-content,
.camera-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
}

.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.camera-header h3 {
    margin: 0;
    color: #333;
}

.close-camera {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

#camera-video,
#camera-stream {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.camera-btn,
.capture-button,
.cancel-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.capture-button,
.camera-btn:first-child {
    background: #000;
    color: white;
    padding: 16px 50px;
}

.cancel-button,
.camera-btn:last-child {
    background: #f5f5f5;
    color: #333;
}

.capture-button:hover,
.camera-btn:first-child:hover {
    background: #1976d2;
}

.cancel-button:hover,
.camera-btn:last-child:hover {
    background: #e0e0e0;
}


/* Document Specifications Shortcode Styles */

.document-specs-container {
    max-width: 1200px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.specs-filters {
    display: flex;
    gap: 20px;
    align-items: end;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.specs-search-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    height: 42px;
    transition: all 0.3s ease;
}

.specs-search-btn:hover {
    background: #1976d2;
    transform: translateY(-2px);
}

.specs-results {
    min-height: 200px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.spec-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2196f3;
    transition: all 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.spec-title {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.spec-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.spec-country,
.spec-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.upload-button {
    background: #000;
    color: #fff;
}

.spec-details {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.spec-item {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    gap: 14px;
}

.spec-item strong {
    color: #333;
}

.specs-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.specs-error {
    background: #fff5f5;
    color: #c53030;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #f56565;
    text-align: center;
}

.specs-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

@media (max-width: 768px) {
    .specs-filters {
        flex-direction: column;
        gap: 15px;
    }
    .filter-group {
        min-width: auto;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

.upload-container {
    position: relative;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.upload-container:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.upload-container.drag-highlight {
    border-color: #007cba;
    background: #e6f3ff;
    transform: scale(1.02);
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-icon svg {
    width: 60px;
    height: auto;
    opacity: 0.7;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.upload-subtext {
    font-size: 16px;
    color: #000000;
    margin-bottom: 12px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.upload-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.upload-btn:active {
    transform: translateY(0);
}


/* Image Preview Styles */

.image-preview-container {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.image-preview {
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.image-controls,
.result-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.control-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.control-btn:nth-child(2) {
    background: #17a2b8;
}

.control-btn:nth-child(2):hover {
    background: #138496;
}

.control-btn:nth-child(3) {
    background: #6c757d;
}

.control-btn:nth-child(3):hover {
    background: #5a6268;
}

#download-btn {
    background: #007cba;
}

#download-btn:hover {
    background: #005a87;
}

#process-new-btn {
    background: #6c757d;
}

#process-new-btn:hover {
    background: #5a6268;
}


/* Processed Result Styles */

.processed-result {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.processed-result h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.processed-result img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Camera Modal Styles */

.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.camera-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    max-height: 90vh;
    height: 90vh;
}

#camera-video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    margin-bottom: 20px;
    padding-top: 64px;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.camera-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.camera-btn:hover {
    background: #005a87;
}

#close-camera-btn {
    background: #ffffff;
    color: #000;
    border: 1px solid #000;
}

#close-camera-btn:hover {
    background: #000;
    color: #fff
}


/* Loader Styles */

.photoai-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.loader-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-content p {
    margin: 0;
    font-size: 16px;
    color: #333;
}


/* Error Message Styles */

.photoai-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    z-index: 10002;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Cropper.js custom styles */

.cropper-container {
    margin: 20px 0;
}

.cropper-view-box {
    outline: 2px solid #007cba;
}

.processing-step.completed {
    background: none !important;
}

.cropper-face {}

.step-spinner {
    position: absolute;
}


/* Responsive Design */

@media (max-width: 768px) {
    .upload-container {
        padding: 30px 15px;
    }
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    .upload-btn {
        width: 100%;
        max-width: 200px;
    }
    .image-controls,
    .result-controls {
        flex-direction: column;
        align-items: center;
    }
    .control-btn {
        width: 100%;
        max-width: 200px;
    }
    .camera-content {
        padding: 15px;
    }
    .camera-controls {
        flex-direction: column;
        gap: 10px;
    }
    .camera-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .upload-text {
        font-size: 16px;
    }
    .upload-subtext {
        font-size: 13px;
    }
    .upload-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    .processed-result h3 {
        font-size: 16px;
    }
}


/* Success Message */

.photoai-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    z-index: 10002;
    animation: slideIn 0.3s ease;
}


/* Additional utility classes */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    padding: 29px 0px;
    border-bottom: 1px solid #00000012;
}

.progress-bar div {
    font-family: "Montserrat", Sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Tab 1 Document Selection Styles */

.document-selection-container {
    display: flex;
    gap: 32px;
    /* padding: 40px; */
    /* background: #f8f9fa; */
    min-height: 600px;
}

* {
    font-family: "Montserrat", Sans-serif;
}

.left-panel {
    flex: 1;
    max-width: 50%;
    width: 50%;
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.document-selector-wrapper {
    background: #fff6e6;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.document-type-selector {
    margin-bottom: 30px;
}

.selector-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.upload-button {
    color: #fff !important;
}

.document-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.document-dropdown:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.document-preview-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.document-icon {
    flex-shrink: 0;
}

.passport-icon {
    width: 110px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.document-details {
    flex: 1;
}

.document-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.spec-item {
    display: flex;
    justify-content: start;
    align-items: center;
    margin-bottom: 12px;
}

.spec-label {
    font-size: 16px;
    color: #718096;
    font-weight: 400;
}

.spec-value {
    font-size: 16px;
    color: #2d3748;
    font-weight: 600;
}

.upload-button {
    width: 100%;
    background: #1a202c;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 30px;
}

.upload-button:hover {
    background: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 32, 44, 0.15);
}

.trustpilot-section {
    text-align: center;
}

.trustpilot-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-text {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #00b67a;
    font-size: 16px;
}

.review-count {
    font-size: 14px;
    color: #718096;
}

.trustpilot-logo {
    height: 20px;
    width: auto;
}

.right-panel {
    flex: 1;
    max-width: 50%;
    width: 50%;
}

.spec-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 30px 0;
    line-height: 1.3;
}

.photo-comparison {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    align-items: end;
}

.comparison-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: #f7fafc;
    border-radius: 8px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: white;
    color: #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.photo-preview {
    position: relative;
    min-height: 300px;
    margin-bottom: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.comparison-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.after-preview-placeholder {
    position: relative;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-indicator {
    position: absolute;
    background: #1a202c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.size-indicator:first-child {
    top: 10px;
    right: 10px;
}

.size-indicator.bottom {
    bottom: 10px;
    right: 10px;
}

.cropped-preview {
    width: 200px;
    height: 200px;
    border: 2px solid #1a202c;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.cropped-preview .comparison-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icao-compliance {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #ebf8ff;
    border-radius: 8px;
}

.icao-badge {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.compliance-text {
    font-size: 14px;
    color: #2b6cb0;
    line-height: 1.5;
}


/* Responsive Design */

@media (max-width: 768px) {
    .document-selection-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }
    .left-panel,
    .right-panel {
        max-width: none;
    }
    .main-title {
        font-size: 28px;
    }
    .document-preview-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .trustpilot-rating {
        flex-direction: column;
        gap: 12px;
    }
}

.photo-comparison {
    display: flex;
    justify-content: center;
    padding: 0px;
    box-shadow: none;
    gap: 40px;
}

.after-right_label img {
    border: 1px dashed !important;
    width: 600px;
    height: 247px !important;
    object-fit: cover;
    margin-top: 25px;
    box-shadow: 1px 1px 9px #88888880 !important;
}


/* Processing Image Preview Styles */

.processing-image-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.processing-image-container {
    position: relative;
    max-width: 400px;
    max-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.processing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.processing-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


/* Processing Steps Styling */

.processing-step.active .step-spinner {
    display: block;
}

.processing-step.completed .step-spinner {
    display: none;
}

.processing-step.completed .step-check {
    display: block;
}

.processing-step .step-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.processing-step .step-check {
    display: none;
    color: #4caf50;
    font-weight: bold;
}


/* Detailed Specifications Styles */

.detailed-specs {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row .spec-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.spec-row .spec-value {
    font-weight: 500;
    color: #212529;
    font-size: 14px;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    min-width: 120px;
    text-align: center;
}


/* Update photo comparison labels */

.after-left_label span,
.after-top_label span {
    font-weight: 600;
    color: #ffffff;
    font-size: 12px;
    padding: 2px 6px;
    background: rgb(0 123 255) !important;
    border-radius: 4px;
    z-index: 99999999999;
}


/* Face Detection Error Screen Styles */

.face-error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.face-error-content-panel {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.face-error-header {
    margin-bottom: 40px;
}

.face-error-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.1;
}

.face-error-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.face-error-sub-description {
    font-size: 16px;
    color: #666;
}

.face-error-status-section {
    margin: 40px 0;
}

.face-error-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.face-error-status-item:last-child {
    border-bottom: none;
}

.face-error-status-text {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.face-error-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.face-error-rejected {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.face-error-rejected::before {
    content: "⚠";
    font-size: 16px;
}

.face-error-upload-button {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    margin-right: 12px;
}

.face-error-upload-button:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.face-error-upload-button:active {
    transform: translateY(0);
}

.face-error-close-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.face-error-close-button:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.face-error-right-panel {
    position: relative;
    overflow: hidden;
}

.face-error-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.face-error-sample-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.face-error-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

@media (max-width: 768px) {
    .face-error-content {
        grid-template-columns: 1fr;
    }
    .face-error-content-panel {
        padding: 40px 30px;
    }
    .face-error-title {
        font-size: 36px;
    }
    .face-error-right-panel {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .face-error-content-panel {
        padding: 30px 20px;
    }
    .face-error-title {
        font-size: 28px;
    }
}