/* toast container */

#toastContainer{
    position:fixed;
    top:20px;
    right:20px;
    display:flex;
    flex-direction:column;
    gap:12px;
    z-index:9999;
    pointer-events:none;
}

/* toast */

.toast{
    min-width:280px;
    max-width:380px;
    padding:14px 16px;
    border-radius:14px;
    color:white;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
    transform:translateX(120%);
    opacity:0;
    transition:all .3s ease;
    font-size:14px;
    line-height:1.5;
    pointer-events:auto;
}

/* active */

.toast.show{
    transform:translateX(0);
    opacity:1;
}

/* content */

.toast-content{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
}

.toast-message{
    flex:1;
    word-break:break-word;
}

/* close */

.toast-close{
    background:none;
    border:none;
    color:inherit;
    font-size:18px;
    cursor:pointer;
    opacity:.8;
    transition:.2s;
    padding:0;
    line-height:1;
}

.toast-close:hover{
    opacity:1;
    transform:scale(1.1);
}

/* types */

.toast.success{
    background:linear-gradient(135deg,#10b981,#059669);
}

.toast.error{
    background:linear-gradient(135deg,#ef4444,#dc2626);
}

.toast.warning{
    background:linear-gradient(135deg,#f59e0b,#d97706);
}

.toast.info{
    background:linear-gradient(135deg,#3b82f6,#2563eb);
}

/* progress bar optional */

.toast::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:3px;
    background:rgba(255,255,255,.25);
    border-radius:0 0 14px 14px;
}

/* mobile */

@media(max-width:768px){

    #toastContainer{
        top:auto;
        bottom:16px;
        right:12px;
        left:12px;
    }

    .toast{
        width:100%;
        min-width:unset;
        max-width:unset;
        font-size:13px;
    }

    .toast-close{
        font-size:16px;
    }
}