/**
 * QR Payment Gateway Styles
 * 
 * @package ClassManager
 * @since 1.0
 */

/* Admin Settings Styles */
.qr-upload-container {
    max-width: 400px;
}

.qr-upload-preview {
    margin-bottom: 15px;
    text-align: center;
}

.qr-upload-preview img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.qr-upload-preview img:hover {
    transform: scale(1.02);
}

.qr-upload-placeholder {
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.qr-upload-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.qr-upload-actions .button {
    flex: 1;
    min-width: 120px;
}

/* Frontend QR Payment Styles */
.qr-payment-instructions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.qr-payment-instructions h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.qr-payment-instructions p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.qr-code-display {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 25px auto;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-code-display img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.qr-code-display img:hover {
    transform: scale(1.05);
}

.qr-payment-details {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.qr-payment-details p {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.qr-payment-details p:last-child {
    border-bottom: none;
}

.qr-payment-details strong {
    color: #2c3e50;
    display: inline-block;
    min-width: 120px;
}

/* Email Styles */
.qr-payment-email-instructions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.qr-payment-email-instructions h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.qr-payment-email-instructions p {
    color: #6c757d;
    margin-bottom: 15px;
}

/* Checkout Page Styles */
.woocommerce-checkout .payment_method_qr_payment {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.woocommerce-checkout .payment_method_qr_payment label {
    font-weight: 600;
    color: #2c3e50;
}

.woocommerce-checkout .payment_method_qr_payment .payment_method_description {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qr-payment-instructions {
        padding: 20px 15px;
    }
    
    .qr-code-display {
        padding: 15px;
        margin: 20px auto;
    }
    
    .qr-code-display img {
        max-width: 250px;
        max-height: 250px;
    }
    
    .qr-payment-details {
        padding: 15px;
    }
    
    .qr-upload-actions {
        flex-direction: column;
    }
    
    .qr-upload-actions .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .qr-code-display img {
        max-width: 200px;
        max-height: 200px;
    }
    
    .qr-payment-details strong {
        display: block;
        margin-bottom: 5px;
    }
}

/* Loading States */
.qr-upload-loading {
    opacity: 0.6;
    pointer-events: none;
}

.qr-upload-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error States */
.qr-upload-success {
    border-color: #28a745;
    background-color: #f8fff9;
}

.qr-upload-error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

/* Accessibility */
.qr-code-display img:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.qr-upload-container button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .qr-payment-instructions {
        background: white;
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .qr-code-display {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .qr-code-display img {
        max-width: 200px;
        max-height: 200px;
    }
} 