.tototoast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 9999;
}


.toast {
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding: 10px;
    color: #fff;
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    border-radius: 5px;
    --color: #0abf30;
    background-image: linear-gradient(to right, #0abf3055, #1E1E1E 30%);
    animation: show 0.3s ease 1 forwards;
    box-sizing: border-box;
    box-shadow: 10px 10px 21px -7px var(--color);
    -webkit-box-shadow: 10px 10px 21px -7px var(--color);
    -moz-box-shadow: 10px 10px 21px -7px var(--color);
}

.toast.light {
    background-image: linear-gradient(to right, #0abf3055, #f1f1f1 30%);
    color: #333;
}

.toast.light span,
.toast.light i:nth-child(3) {
    color: #333;
    opacity: 0.6;
}

.toast.light::before {
    box-shadow: 0 0 10px var(--color);
}


.toast .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    color: var(--color);
}

.toast .icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
}

.toast .title {
    font-size: x-large;
    font-weight: bold;
}

.toast span,
.toast i:nth-child(3) {
    color: #fff;
    opacity: 0.6;
}

@keyframes show {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0);
    }
}


@keyframes hide {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

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

.toast.hide {
    animation: hide 0.5s forwards;
}



.toast::before {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--color);
    width: 100%;
    height: 3px;
    content: '';
    box-shadow: 0 0 10px var(--color);
    animation: timeOut var(--duration, 10s) linear forwards;
}

@keyframes timeOut {
    to {
        width: 0;
    }
}

.toast.success {
    --color: #0abf30;
    background-image: linear-gradient(to left, #0abf3055, #1E1E1E 30%);
}

.toast.error {
    --color: #f24d4c;
    background-image: linear-gradient(to left, #f24d4c55, #1E1E1E 30%);
}

.toast.warning {
    --color: #e9bd0c;
    background-image: linear-gradient(to left, #e9bd0c55, #1E1E1E 30%);
}

.toast.info {
    --color: #3498db;
    background-image: linear-gradient(to left, #3498db55, #1E1E1E 30%);
}


.toast.light.success {
    --color: #0abf30;
    background-image: linear-gradient(to left, #0abf3055, #f1f1f1 30%);
}

.toast.light.error {
    --color: #f24d4c;
    background-image: linear-gradient(to left, #f24d4c55, #f1f1f1 30%);
}

.toast.light.warning {
    --color: #e9bd0c;
    background-image: linear-gradient(to left, #e9bd0c55, #f1f1f1 30%);
}

.toast.light.info {
    --color: #3498db;
    background-image: linear-gradient(to left, #3498db55, #f1f1f1 30%);
}