/* SePay Payment Modal Styles */
.fnb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fnb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.fnb-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fnb-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fnb-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.fnb-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.fnb-modal-close:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.fnb-modal-body {
    padding: 24px;
}

.payment-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.payment-amount,
.payment-description,
.payment-timeout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.payment-timeout {
    margin-bottom: 0;
}

.amount-label,
.desc-label,
.timeout-label {
    font-weight: 500;
    color: #5a6c7d;
}

.amount-value {
    font-weight: 600;
    color: #27ae60;
    font-size: 16px;
}

.desc-value {
    color: #2c3e50;
}

.timeout-value {
    font-weight: 600;
    color: #e74c3c;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.qr-code-container {
    text-align: center;
    margin-bottom: 20px;
}

.qr-code-wrapper {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: inline-block;
}

.qr-code-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
}

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

.qr-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e1e5e9;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qr-loading p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.qr-instructions {
    text-align: left;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.qr-instructions h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #2c3e50;
}

.qr-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.qr-instructions li {
    margin-bottom: 8px;
    color: #5a6c7d;
    line-height: 1.4;
}

.payment-status {
    text-align: center;
    margin-bottom: 20px;
}

.status-pending,
.status-processing,
.status-completed,
.status-failed,
.status-expired {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-icon {
    font-size: 16px;
}

.fnb-modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.fnb-modal-footer .button {
    min-width: 120px;
}

/* Responsive */
@media (max-width: 600px) {
    .fnb-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .fnb-modal-body {
        padding: 20px;
    }
    
    .qr-code-placeholder {
        width: 160px;
        height: 160px;
    }
    
    .fnb-modal-footer {
        flex-direction: column;
    }
    
    .fnb-modal-footer .button {
        width: 100%;
    }
}

/* Admin styles */
.fnb-sepay-test-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.fnb-sepay-test-section h2 {
    margin-top: 0;
}

.fnb-test-results {
    margin-top: 20px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.fnb-test-results h3 {
    margin-top: 0;
}

#test-output {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.fnb-sepay-info {
    margin-top: 30px;
    padding: 20px;
    background: #e8f4fd;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.fnb-sepay-info h2 {
    margin-top: 0;
    color: #2c3e50;
}

.fnb-sepay-info h3 {
    color: #34495e;
}

.fnb-sepay-info code {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.fnb-sepay-info pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.fnb-sepay-info pre code {
    background: none;
    padding: 0;
}

