:root {
    --toast-z-index: 999;
    --toast-max-width: 25rem;
    --toast-vertical-offset: 7rem;
    --toast-vertical-step: 3px;
    --toast-animation-duration: 0.5s;
    --toast-background-color: var(--background-card); /* Background color for the toast */
    --toast-text-color: var(--text-color-dark); /* Text color for the toast */
    --toast-border-color: var(--brand-primary); /* Border color for the toast */
    --toast-border-hover-color: var(--brand-primary-dark); /* Border color on hover */
    --toast-button-background: var(--status-danger); /* Button background color */
    --toast-button-text-color: var(--text-color-light); /* Button text color */
    --toast-box-shadow: var(--box-shadow-card); /* Box shadow for the toast */
}

.toast {
    width: fit-content;
    max-width: var(--toast-max-width);
    position: fixed;
    bottom: var(--toast-vertical-offset);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--toast-background-color);
    color: var(--toast-text-color);
    padding: 1rem 1.2rem;
    border-radius: .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--toast-box-shadow);
    z-index: var(--toast-z-index);
    border: 1px solid var(--toast-border-color);
    transition: all 0.2s linear;
    font-size: .7rem;
}

.toast big {
    color: var(--toast-text-color);
    font-size: 1.5rem;
    padding-bottom: 1rem;
    display: block;
}

.toast:hover {
    border-color: var(--toast-border-hover-color);
}

.toast button {
    background: var(--toast-button-background);
    color: var(--toast-button-text-color);
    padding: 0.25rem .5rem;
    /* font-size: 1rem; */
    font-size: .7rem;
    /* margin-left: 1.5rem; */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: max-content;
}

.animate-toast-in {
    animation: slideInToast var(--toast-animation-duration) ease;
}

.animate-toast-out {
    animation: slideOutToast var(--toast-animation-duration) ease;
}

@keyframes slideInToast {
    0% {
        transform: translate(-50%, 100%) scale(0.7);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -10%) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutToast {
    0% {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
    30% {
        transform: translate(-50%, -10%) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 100%) scale(0.7);
        opacity: 0; 
    }
}
