/* Aadhaar OCR Frontend Styles */

.aadhaar-processing {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 10000;
    font-size: 16px;
}

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

.aadhaar-modal .modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.aadhaar-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.aadhaar-modal .modal-close:hover {
    color: #333;
}

.aadhaar-modal h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
}

.aadhaar-modal .modal-body {
    margin: 15px 0;
}

.aadhaar-modal .modal-body p {
    margin: 10px 0;
    color: #666;
    line-height: 1.5;
}

.aadhaar-modal .modal-body strong {
    color: #333;
    font-weight: 600;
}

.modal-buttons {
    text-align: right;
    margin-top: 20px;
}

.modal-buttons .button {
    margin-left: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.modal-buttons .button-primary {
    background: #0073aa;
    color: white;
}

.modal-buttons .button-primary:hover {
    background: #005a87;
}

.modal-buttons .button-secondary {
    background: #f1f1f1;
    color: #333;
}

.modal-buttons .button-secondary:hover {
    background: #e1e1e1;
}

.aadhaar-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    word-wrap: break-word;
}

.aadhaar-notification-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.aadhaar-notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.aadhaar-user-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.aadhaar-user-select option:disabled {
    color: #999;
    font-style: italic;
}

.aadhaar-hits-remaining {
    display: inline-block;
    padding: 4px 8px;
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    font-size: 12px;
    color: #004085;
    font-weight: 500;
}

.aadhaar-usage-stats {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.aadhaar-usage-stats h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}

.usage-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #eee;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.usage-progress {
    margin-bottom: 20px;
}

.progress-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #ffc107, #dc3545);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #666;
}

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

.purchase-more .button {
    background: #007cba;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.purchase-more .button:hover {
    background: #005a87;
}

.aadhaar-limit-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    color: #856404;
}

.aadhaar-error {
    color: #dc3545;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aadhaar-modal .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .aadhaar-notification {
        top: 20px;
        right: 20px;
        left: 20px;
        font-size: 13px;
    }
    
    .usage-info {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        text-align: left;
    }
}