/* Binance Payment Gateway Frontend Styles */

.bpg-payment-container {
    max-width: 500px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.bpg-payment-form {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.bpg-payment-form h3 {
    margin: 0 0 25px 0;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.bpg-form-row {
    margin-bottom: 20px;
}

.bpg-form-row label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

.bpg-form-row input,
.bpg-form-row select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.bpg-form-row input:focus,
.bpg-form-row select:focus {
    outline: none;
    border-color: #f7931a;
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.bpg-form-row input[readonly] {
    background-color: #f7fafc;
    color: #4a5568;
}

.bpg-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #f7931a 0%, #ff9500 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bpg-submit-btn:hover {
    background: linear-gradient(135deg, #e6850e 0%, #f7931a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.3);
}

.bpg-submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment QR Code Display */
.bpg-payment-qr {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 20px;
}

.bpg-payment-qr h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 20px;
}

.bpg-qr-code {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bpg-qr-code img {
    max-width: 200px;
    height: auto;
}

.bpg-payment-info {
    margin: 20px 0;
    text-align: left;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #f7931a;
}

.bpg-payment-info p {
    margin: 8px 0;
    color: #4a5568;
    font-size: 14px;
}

.bpg-payment-info strong {
    color: #2d3748;
}

.bpg-payment-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.bpg-pay-link,
.bpg-check-status-btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.bpg-pay-link {
    background: #f7931a;
    color: white;
    display: inline-block;
}

.bpg-pay-link:hover {
    background: #e6850e;
    color: white;
    text-decoration: none;
}

.bpg-check-status-btn {
    background: #4299e1;
    color: white;
}

.bpg-check-status-btn:hover {
    background: #3182ce;
}

.bpg-check-status-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

/* Status Messages */
.bpg-status-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
}

.bpg-status-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.bpg-status-pending {
    background: #fef5e7;
    color: #744210;
    border: 1px solid #fbd38d;
}

.bpg-status-failed {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

/* Payment Success */
.bpg-payment-success {
    text-align: center;
    padding: 30px;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    margin-top: 20px;
}

.bpg-payment-success h3 {
    color: #22543d;
    margin-bottom: 15px;
    font-size: 24px;
}

.bpg-payment-success p {
    color: #2f855a;
    margin-bottom: 20px;
    font-size: 16px;
}

.bpg-success-actions {
    margin-top: 20px;
}

.bpg-new-payment-btn {
    padding: 12px 24px;
    background: #38a169;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bpg-new-payment-btn:hover {
    background: #2f855a;
}

/* Error Messages */
.bpg-error {
    background: #fed7d7;
    color: #742a2a;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #feb2b2;
    margin-top: 20px;
    text-align: center;
}

.bpg-error p {
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bpg-payment-container {
        margin: 10px;
        max-width: none;
    }
    
    .bpg-payment-form {
        padding: 20px;
    }
    
    .bpg-payment-actions {
        flex-direction: column;
    }
    
    .bpg-pay-link,
    .bpg-check-status-btn {
        width: 100%;
        text-align: center;
    }
    
    .bpg-qr-code img {
        max-width: 150px;
    }
}

/* Loading Animation */
.bpg-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #f7931a;
    border-radius: 50%;
    animation: bpg-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes bpg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Binance Brand Colors */
.bpg-binance-orange {
    color: #f7931a;
}

.bpg-binance-yellow {
    color: #ffc107;
}

/* Additional Utility Classes */
.bpg-text-center {
    text-align: center;
}

.bpg-mt-20 {
    margin-top: 20px;
}

.bpg-mb-20 {
    margin-bottom: 20px;
}

.bpg-hidden {
    display: none;
} 