#toast-container {
    position: fixed;
    top: 75px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 320px;
    max-width: 400px;
    border-radius: 22px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;

    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .08);

    color: white;
    transform: translateX(120%);
    opacity: 0;
    animation: slideIn .35s ease forwards;
}

.toast.hide {
    animation: slideOut .35s ease forwards;
}

.toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.toast-description {
    font-size: 13px;
    opacity: .75;
    line-height: 1.4;
}

.toast-close {
    cursor: pointer;
    opacity: .5;
    transition: .2s;
    font-size: 18px;
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    animation: progress linear forwards;
}

/* Tipos */

.success .toast-icon {
    background: rgba(0, 255, 120, .12);
    color: #00ff84;
}

.success .toast-progress {
    background: #00ff84;
}

.error .toast-icon {
    background: rgba(255, 70, 70, .12);
    color: #ff5c5c;
}

.error .toast-progress {
    background: #ff5c5c;
}

.warning .toast-icon {
    background: rgba(255, 190, 50, .12);
    color: #ffbf47;
}

.warning .toast-progress {
    background: #ffbf47;
}

.info .toast-icon {
    background: rgba(90, 170, 255, .12);
    color: #5aa9ff;
}

.info .toast-progress {
    background: #5aa9ff;
}

/* Animaciones */

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}