#toast-root {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 280px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .35);
    opacity: 0;
    transform: translateY(20px) scale(.96);
    animation: toast-in .35s cubic-bezier(.21, 1.02, .73, 1) forwards;
    pointer-events: auto;
}

.toast.success {
    background: #16a34a;
}

.toast.error {
    background: #dc2626;
}

.toast.warning {
    background: #d97706;
}

.toast.info {
    background: #2563eb;
}

.toast.primary {
    background: #6366f1;
    /* indigo */
}

.toast.secondary {
    background: #64748b;
    /* slate */
}

.toast.dark {
    background: #020617;
}

.toast.light {
    background: #e5e7eb;
    color: #111827;
}

.toast.light i,
.toast.light .toast-close {
    color: #111827;
}


.toast i {
    font-size: 18px;
    flex-shrink: 0;
}

.toast span {
    line-height: 1.4;
}

.toast-close {
    margin-left: auto;
    cursor: pointer;
    opacity: .7;
    font-size: 16px;
    transition: opacity .2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast.hide {
    animation: toast-out .3s ease forwards;
}

/* ENTRADA */
@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* SAÍDA */
@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(10px) scale(.95);
    }
}

@media (max-width: 640px) {
    #toast-root {
        top: 20px;
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        align-items: center;
    }

    .toast {
        width: calc(100vw - 32px);
        max-width: 360px;
    }
}