/* ReportE Module Specific Styles */

.intro-section {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.intro-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.intro-section .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.features-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Upload Section */
.upload-section {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.upload-box {
    background: white;
    border: 3px dashed var(--border-color);
    border-radius: 15px;
    padding: 1rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background: #fafafa;
}

.upload-box.dragover {
    border-color: var(--primary-color);
    background: #e8f0fe;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.upload-description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.upload-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 350px;
    margin: 0 auto 2rem;
}

.btn-camera {
    background: #e8e8e8;
    color: var(--text-dark);
}

.btn-camera:hover {
    background: #d8d8d8;
}

.upload-info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: none;
    animation: shake 0.3s;
}

.error-message.active {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Preview Section */
.preview-section {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.preview-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: #c33;
    transform: scale(1.1);
}

.page-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.page-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.language-section {
    margin: 2rem 0;
}

.language-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.language-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.language-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.price-section {
    margin: 2rem 0;
}

.price-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--success-color);
}

.price-box h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.price-box p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.total-price {
    font-size: 1.5rem !important;
    font-weight: bold;
    color: var(--success-color);
    margin-top: 1rem !important;
}

.btn-large {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Loading Section */
.loading-section {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.loading-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    width: 0%;
    transition: width 0.3s;
}

/* Results Section */
.result-section {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.result-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--success-color);
}

.result-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.result-box h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.extracted-text {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.explanation-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border: 2px solid var(--success-color);
}

.ai-explanation {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.ai-explanation p {
    margin-bottom: 1rem;
}

.ai-explanation ul {
    margin: 1rem 0 1rem 2rem;
}

.ai-explanation li {
    margin-bottom: 0.5rem;
}

.email-status {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    border-left: 4px solid #2196f3;
}

.email-status p {
    margin: 0;
    color: #1565c0;
    font-weight: 500;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.result-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

/* Responsive */
@media (max-width: 768px) {
    .intro-section h1 {
        font-size: 2rem;
    }

    .features-badges {
        flex-direction: column;
        align-items: center;
    }

    .upload-box {
        padding: 2rem 1rem;
    }

    .image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .btn {
        width: 100%;
    }
}
/* Blur/Hazy effect for payment */
.blurred-text {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
    opacity: 0.6;
}

.unblurred-text {
    filter: none;
    user-select: text;
    pointer-events: auto;
    opacity: 1;
}

.ocr-preview-box {
    background: #f0f2ff;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #667eea;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

.payment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 10;
}

.payment-overlay p {
    margin: 10px 0;
    text-align: center;
}

.qr-code-container {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.qr-code-container img {
    max-width: 250px;
    height: auto;
}
        /* LANGUAGE SELECTION STYLES */
        .language-group {
            margin-bottom: 3rem;
        }

        .language-group-title {
            font-size: 1.5rem;
            color: #333;
            margin-bottom: 1rem;
            text-align: center;
        }

        .language-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .language-card {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            padding: 1.5rem 1rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .language-card:hover {
            border-color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
        }

        .language-card.selected {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-color: #667eea;
            color: white;
        }

        .lang-icon {
            font-size: 2rem;
            display: block;
            margin-bottom: 0.5rem;
        }

        .lang-name {
            font-size: 0.9rem;
            font-weight: 600;
        }

        /* BLURRED PREVIEW STYLES */
        .unlock-section {
            max-width: 900px;
            margin: 2rem auto;
            padding: 2rem;
        }

        .preview-container {
            position: relative;
            margin-bottom: 2rem;
        }

        .blurred-preview {
            position: relative;
            background: white;
            border-radius: 15px;
            padding: 2rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .preview-text {
            filter: blur(5px);
            user-select: none;
            line-height: 1.8;
            color: #666;
            max-height: 300px;
            overflow: hidden;
        }

        .lock-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            z-index: 10;
        }

        .lock-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        .lock-overlay p {
            font-size: 1.2rem;
            color: #333;
            background: rgba(255,255,255,0.95);
            padding: 1rem 2rem;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .pricing-box {
            background: #f0f4ff;
            padding: 1.5rem;
            border-radius: 12px;
            margin-bottom: 2rem;
        }

        .price-detail {
            display: flex;
            justify-content: space-between;
            padding: 0.5rem 0;
            color: #666;
        }

        .price-total {
            display: flex;
            justify-content: space-between;
            padding: 1rem 0;
            border-top: 2px solid #667eea;
            margin-top: 0.5rem;
            font-size: 1.3rem;
            font-weight: 700;
            color: #667eea;
        }

        /* EMAIL OPTIONAL SECTION */
        .email-optional-section {
            max-width: 600px;
            margin: 3rem auto;
            padding: 2rem;
            background: #f9fafb;
            border-radius: 15px;
        }

        .email-form {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: #333;
        }

        .form-input {
            width: 100%;
            padding: 0.8rem;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }

        .form-input:focus {
            outline: none;
            border-color: #667eea;
        }

        .skip-text {
            text-align: center;
            margin-top: 1rem;
            color: #666;
        }

        .skip-text a {
            color: #667eea;
            text-decoration: none;
        }

        .confirmation-box {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
        }

        .confirm-email, .confirm-name {
            background: #f0f4ff;
            padding: 0.8rem;
            border-radius: 8px;
            font-weight: 600;
            color: #667eea;
            margin: 0.5rem 0 1.5rem;
        }

        .confirmation-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
        }

        .success-message {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
        }

        .success-icon {
            width: 60px;
            height: 60px;
            background: #10b981;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin: 0 auto 1rem;
        }

        @media (max-width: 768px) {
            .language-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            }

            .confirmation-buttons {
                flex-direction: column;
            }
        }

/* Mobile Optimization - More aggressive space saving */
/* Mobile Optimization - More aggressive space saving */
/* Mobile Optimization - More aggressive space saving */
/* Mobile Optimization - Complete fix for all issues */
@media (max-width: 480px) {
    /* General padding reduction */
    .preview-section,
    .result-box,
    .unlock-section,
    .loading-section {
        padding: 0.5rem 0.3rem;
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
	/* Unlock box - reduce behind container padding */
.unlock-section,
.preview-container {
    padding: 0.5rem 0.15rem !important;
    margin-left: 0.1rem !important;
    margin-right: 0.1rem !important;
}

.blurred-preview {
    padding: 0.5rem 0.2rem !important;
}

.lock-overlay {
    padding: 0.3rem !important;
}

.lock-overlay p {
    font-size: 0.85rem !important;
    padding: 0.1rem 0.2rem !important;
    line-height: 1.2 !important;
}

.lock-icon {
    font-size: 2rem !important;
    margin-bottom: 0.3rem !important;
}
/* Lock overlay - make text box wider */
.lock-overlay {
    width: 95% !important;
    max-width: 95% !important;
    padding: 0.5rem 0.2rem !important;
}

.lock-overlay p {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.85rem !important;
    padding: 0.4rem !important;
    margin: 0.3rem auto !important;
    box-sizing: border-box !important;
}
    
    /* Extracted text box */
    .extracted-text {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    /* ISSUE 2: Demo section - less padding around Hindi text */
    .demo-section {
        padding: 0.5rem 0.3rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .demo-section > div > div,
    .demo-section div[style*="background: white"] {
        padding: 0.3rem !important;
        margin: 0.3rem 0 !important;
    }
    
    #demoText {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        padding: 0.3rem !important;
    }
    
    #demoLanguageName {
        font-size: 0.8rem !important;
    }
    
    .demo-section strong,
    .demo-section p {
        font-size: 0.75rem !important;
        margin: 0.2rem 0 !important;
    }
    
    /* Page controls */
    .page-controls {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
        text-align: center;
    }
    
    .page-display {
        font-size: 1.1rem;
        width: 100%;
    }
    
    .btn-small {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* Container */
    .container {
        padding: 0 8px;
    }
    
    /* ISSUE 0: Payment modal - MUCH WIDER */

.razorpay-container,
#qr-payment-modal {
    max-width: 98% !important;
    width: 98% !important;
    margin: 0 auto !important;
    padding: 0.25rem !important;
    box-sizing: border-box !important;
}

#qr-payment-modal > div,
#qr-payment-modal > div > div {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0.5rem !important;
    box-sizing: border-box !important;
}
	 
	 
	 
    /* ISSUE 3: QR Code - bigger image, full width container */
    #qrCodeContainer,
    .qr-code-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0.75rem !important;
    }
    
    #qrCodeContainer img,
    .qr-code-container img {
        max-width: 180px !important;
        width: 180px !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* ISSUE 1: Lock overlay - compact, less padding */
    .lock-overlay {
        padding: 0.5rem !important;
    }
    
    .lock-icon {
        font-size: 2.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .lock-overlay p {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    .preview-text {
        padding: 0.5rem !important;
    }
    
    /* ISSUE 4: Email boxes - better width */
    .payment-email-section,
    .email-optional-section {
        padding: 0.75rem 0.3rem !important;
        margin: 1rem 0.25rem !important;
    }
    

	/* Confirm email - override inline styles */
	.payment-email-section,
	.confirmation-box {
		max-width: 100% !important;
		padding: 0.15rem 0.3rem !important;
		div[style*="background: #f8f9fa"] {
		padding: 0.1rem !important;
		
}
}

/* Extracted Text Display */
#displayExtractedText {
    width: 100%;
    max-width: 100%;
    padding: 2px;
    margin: 1px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 500px;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-sizing: border-box;
}

/* Mobile responsive - under 480px */
@media (max-width: 480px) {
    #displayExtractedText {
        font-size: 12px;
        max-height: 300px;
        padding: 2px;
        margin: 1px;
        border-radius: 3px;
    }
}

