
/* Fix for white background text visibility */
.buy-tokens-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    color: #ffffff !important;
    border-radius: 15px;
    border: 1px solid #2a2a3a;
}

.buy-tokens-modal .modal-header {
    background: #0f3460;
    border-bottom: 1px solid #2a2a3a;
    color: #ffffff;
}

.buy-tokens-modal .modal-body {
    background: #1a1a2e;
    color: #e6e6e6;
}

.buy-tokens-modal .form-control {
    background: #2a2a3a !important;
    border: 1px solid #3a3a4a;
    color: #ffffff !important;
}

.buy-tokens-modal .form-control::placeholder {
    color: #888888 !important;
}

.buy-tokens-modal .form-control:focus {
    background: #3a3a4a !important;
    border-color: #4cc9f0;
    color: #ffffff !important;
}

.buy-tokens-modal .form-label {
    color: #ffffff !important;
    font-weight: 600;
}

.buy-tokens-modal .token-display {
    background: #2a2a3a !important;
    border: 1px solid #3a3a4a;
    color: #ffffff !important;
}

.buy-tokens-modal .payment-info {
    background: #0f3460 !important;
    border: 1px solid #2a2a3a;
    color: #ffffff !important;
}

.buy-tokens-modal .wallet-address {
    background: #2a2a3a !important;
    color: #4cc9f0 !important;
    border: 1px solid #3a3a4a;
    font-family: 'Courier New', monospace !important;
}

.buy-tokens-modal .rate-grid {
    background: #2a2a3a;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #3a3a4a;
}

.buy-tokens-modal .rate-item {
    color: #ffffff !important;
    padding: 5px 0;
    border-bottom: 1px solid #3a3a4a;
}

.buy-tokens-modal .rate-item:last-child {
    border-bottom: none;
}

/* Button styles */
.btn-success {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%) !important;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-success:hover {
    background: linear-gradient(135deg, #009975 0%, #84b82a 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 176, 155, 0.3);
}

/* QR code container */
.qr-code-container {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #2a2a3a;
    border-radius: 10px;
    border: 1px solid #3a3a4a;
}

.qr-code-image {
    max-width: 200px;
    height: auto;
    border: 3px solid #ffffff;
    border-radius: 10px;
}

/* Payment instruction modal */
.payment-instruction-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    color: #ffffff !important;
}

.payment-instruction-modal .modal-header {
    background: #0f3460;
    border-bottom: 1px solid #2a2a3a;
    color: #ffffff;
}

.payment-instruction-modal .modal-body {
    background: #1a1a2e;
    color: #e6e6e6;
}

/* Text contrast fixes */
.text-muted {
    color: #a0a0a0 !important;
}

.text-white {
    color: #ffffff !important;
}

/* Ensure all text is visible */
.modal-content * {
    color: #ffffff !important;
}

/* Specific fix for select dropdown */
select.form-control {
    background: #2a2a3a url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23ffffff' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px !important;
    color: #ffffff !important;
}

.qr-code-container {
    background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2e 100%);
    border: 2px solid #3a3a4a;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: 15px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.qr-code-container h6 {
    color: #4cc9f0;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#paymentQrCode {
    display: inline-block;
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    border: 3px solid #4cc9f0;
    box-shadow: 0 6px 20px rgba(76, 201, 240, 0.3);
}

#paymentQrCode canvas {
    border-radius: 8px;
}

.qr-code-instruction {
    color: #a0a0a0;
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.4;
}

/* Toast notifications */
.qr-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #4caf50;
    color: white;
    border-radius: 8px;
    z-index: 10000;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    animation: toastSlideIn 0.3s ease;
}

.qr-toast-error {
    background: #f44336;
}

.qr-toast-info {
    background: #2196f3;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Loading states */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    margin-right: 8px;
}

/* Error message */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 4px solid #c62828;
    display: none;
}
