/* =====================================
   API Integration Styles (Enhanced)
   ===================================== */

/* Toast Container */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10500;
    min-width: 300px;
    max-width: 420px;
    width: auto;
    pointer-events: none;
}

/* Toast Base */
.toast {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(145deg, #444, #333);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: toastFadeIn 0.4s ease;
    transition: all 0.3s ease;
    width: 95%;
    word-break: break-word;
    border-left: 5px solid transparent;
    position: relative;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

/* Hide Transition */
.toast.hide {
    opacity: 0;
    transform: translateX(40px);
}

/* Toast Icon */
.toast::before {
    font-family: sans-serif;
    font-size: 20px;
    margin-right: 12px;
    margin-bottom: 8px;
    float: left;
}

/* Toast Message Content */
.toast>div {
    margin-left: 30px;
    margin-top: 4px;
    font-size: 13px;
    opacity: 0.9;
}

/* Close Button */
.toast-close-btn {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 20px;
    color: #fff;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
}

.toast-close-btn:hover {
    opacity: 1;
}

/* Status Colors & Icons */
.toast-success {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    border-left-color: #2E7D32;
}

.toast-success::before {
    /* content: '✓'; */
}

.toast-error {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    border-left-color: #C62828;
}

.toast-error::before {
    /* content: '✗'; */
}

.toast-info {
    background: linear-gradient(135deg, #2196F3, #1565C0);
    border-left-color: #0D47A1;
}

.toast-info::before {
    /* content: 'ℹ'; */
}

.toast-warning {
    background: linear-gradient(135deg, #FF9800, #EF6C00);
    border-left-color: #E65100;
}

.toast-warning::before {
    /* content: '⚠'; */
}

/* Spinner (Loading State) */
.spinner-border {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinnerRotate 0.75s linear infinite;
    vertical-align: middle;
}

/* Animations */
@keyframes spinnerRotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes toastFadeIn {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================
   Payment Result Icons
   ========================== */
.success-icon,
.failure-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 30px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.success-icon {
    background: linear-gradient(145deg, #4CAF50, #2E7D32);
}

.failure-icon {
    background: linear-gradient(145deg, #F44336, #C62828);
}