#toast-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1090;
}

/* Base style for a single toast message */
.toast {
    /* Set position to relative so the absolute progress bar can be positioned correctly */
    position: relative;
    padding: .75rem 1rem;
    font-size: 0.8rem !important;
    margin-bottom: 1rem;
    background-clip: padding-box;;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    transform: translateX(100%);
    min-width: 320px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: white;
    overflow: hidden; /* Important to contain the absolutely positioned indicator */

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- NEW: Toast Indicator Styles --- */

/* The actual bar that shrinks */
.toast-indicator {
    /* The duration is pulled from the style property set in JS (5s) */
    --toast-duration: 5s;

    position: absolute;
    top: 0;
    left: 0;
    height: 2px; /* Thickness of the indicator bar */
    width: 100%; /* Start at 100% width */

    /* Animation: Name, Duration (from JS var), Timing, Fill Mode */
    animation: flow-indicator var(--toast-duration) linear forwards;
}

/* Set the specific color for success */
.toast.success .toast-indicator {
    background-color: #388E3C; /* Dark Green */
}

/* Set the specific color for error */
.toast.error .toast-indicator {
    background-color: #D32F2F; /* Dark Red */
}

/* Define the shrinking animation */
@keyframes flow-indicator {
    from {
        width: 100%; /* Start full */
    }
    to {
        width: 0; /* End empty */
    }
}


/* State for showing the toast (fade/slide in) */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}



/* New: Styling for the close button */
.toast-close {
    font-size: 25px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

/* Hover effect for the close button */
.toast-close:hover {
    opacity: 1;
}

@media screen and (max-width: 991px) {


}