/* Base Toast Styles */
.custom-alert {
    position: fixed;
    bottom: 5%;
    right: 3%;
    width: 320px;
    /* Width of the toast */
    max-width: 100%;
    border-radius: 10px;
    /* Rounded corners */
    z-index: 1011;
    opacity: 0;
    /* Initially hidden */
    pointer-events: none;
    transition: all 300ms ease-in-out;
    /* Smooth fade-in and fade-out */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    /* Subtle shadow effect */
}

/* Show the Toast with fade-in */
.custom-alert.show {
    opacity: 1;
    pointer-events: auto;
}

/* Toast Body Text Style */
.custom-alert-message {
    padding: 12px 15px;
    font-size: 14px;
    color: white;
}

/* Base Toast Styles */
.custom-alert {
    position: fixed;
    bottom: 5%;
    right: 3%;
    width: 320px;
    max-width: 100%;
    border-radius: 10px;
    z-index: 1011;
    opacity: 0;
    /* Initially hidden */
    pointer-events: none;
    transition: opacity 300ms ease-in-out;
    /* Only transition opacity */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Show the Toast with fade-in */
.custom-alert.show {
    opacity: 1;
    pointer-events: auto;
}

/* Close Button */
.close {
    background-color: transparent;
    border: 0;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: color 200ms ease-in-out;
}

.close:hover {
    color: #ccc;
    /* Subtle hover effect */
}

/* Success Toast */
.bg-success .toast-header {
    background-color: #4BB543;
    color: white;
}

.bg-success .toast-body {
    background-color: #4BB543;
    color: white;
}

/* Danger Toast */
.bg-danger .toast-header {
    background-color: #dc3545;
    color: white;
}

.bg-danger .toast-body {
    background-color: #dc3545;
    color: white;
}

/* Warning Toast */
.bg-warning .toast-header {
    background-color: #ffc107;
    color: white;
}

.bg-warning .toast-body {
    background-color: #ffc107;
    color: white;
}

/* Info Toast */
.bg-info .toast-header {
    background-color: #17a2b8;
    color: white;
}

.bg-info .toast-body {
    background-color: #17a2b8;
    color: white;
}

/* Animation for fade-in/out effect */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}