/* Aadhaar OCR - Frontend Styles */

.aogf-ocr-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.aogf-ocr-header {
    margin-bottom: 20px;
    text-align: center;
}

.aogf-ocr-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.aogf-ocr-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.aogf-ocr-uploads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .aogf-ocr-uploads {
        grid-template-columns: 1fr;
    }
}

.aogf-upload-box {
    position: relative;
}

.aogf-upload-placeholder {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.aogf-upload-placeholder:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.aogf-upload-placeholder.aogf-dragover {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.aogf-upload-placeholder svg {
    color: #3b82f6;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.aogf-upload-placeholder p {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 10px 0;
}

.aogf-upload-placeholder small {
    font-size: 12px;
    color: #64748b;
    display: block;
}

.aogf-hidden-upload {
    display: none;
}

.aogf-upload-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.aogf-upload-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.aogf-remove-upload {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.aogf-remove-upload:hover {
    background: #dc2626;
}

.aogf-ocr-actions {
    text-align: center;
    margin-bottom: 20px;
}

.aogf-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.aogf-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.aogf-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.aogf-btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

.aogf-btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

.aogf-btn-icon {
    margin-right: 8px;
}

.aogf-btn-success {
    background: #22c55e;
    color: white;
    margin-right: 10px;
}

.aogf-btn-success:hover {
    background: #16a34a;
}

.aogf-btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.aogf-btn-secondary:hover {
    background: #cbd5e1;
}

.aogf-status-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.aogf-status-message.aogf-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    display: block;
}

.aogf-status-message.aogf-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    display: block;
}

.aogf-status-message.aogf-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

.aogf-progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.aogf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.aogf-extracted-data {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.aogf-extracted-data h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 16px;
}

.aogf-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.aogf-data-item {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 13px;
}

.aogf-data-label {
    font-weight: 600;
    color: #475569;
    word-break: break-word;
}

.aogf-data-value {
    color: #1e293b;
    word-break: break-word;
}

.aogf-action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.aogf-action-buttons button {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 480px) {
    .aogf-action-buttons {
        flex-direction: column;
    }

    .aogf-action-buttons button {
        min-width: auto;
    }
}
