/* Professional modal background: blur + subtle dark */
.modal-backdrop.show {
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.45);
}

/* Slight elevation and smoothing on modal box */
.custom-modal-bg {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.sbfa-modal {
    width: 400px;
    height: 200px;
}

/* custom Toast Message ==== Start ====*/
/* ===============================
   Toast Base
================================ */
.toast-snackbar {
    position: fixed;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    /* Prevent horizontal jump */
    transform: var(--toast-transform);
    /* Smooth animation */
    animation: toast-slide-fade 0.45s cubic-bezier(.21, 1.02, .73, 1);
}

/* ===============================
   Positions
================================ */
.bottom-center {
    bottom: 24px;
    left: 50%;
    --toast-transform: translateX(-50%);
}

.bottom-right {
    bottom: 24px;
    right: 24px;
    --toast-transform: translateX(0);
}

.top-right {
    top: 24px;
    right: 24px;
    --toast-transform: translateX(0);
}

.top-center {
    top: 24px;
    left: 50%;
    --toast-transform: translateX(-50%);
}

.top-left {
    top: 24px;
    left: 24px;
    --toast-transform: translateX(0);
}

/* ===============================
   Severity Colors
================================ */
.toast-success {
    background: linear-gradient(135deg, #2e7d32, #43a047);
}

.toast-info {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
}

.toast-warning {
    background: linear-gradient(135deg, #ef6c00, #fb8c00);
}

.toast-error {
    background: linear-gradient(135deg, #c62828, #e53935);
}

/* ===============================
   Animation
================================ */
@keyframes toast-slide-fade {
    0% {
        opacity: 0;
        transform: var(--toast-transform) translateY(12px) scale(0.98);
    }

    60% {
        opacity: 1;
        transform: var(--toast-transform) translateY(-2px) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: var(--toast-transform) translateY(0) scale(1);
    }
}
/* custom Toast Message ==== End ====*/