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

.toast {
    min-width: 260px;
    padding: 14px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    opacity: 0;
    transform: translateY(-20px);
    animation: toast-slide 0.4s forwards;
}

.toast .icon {
    font-size: 20px;
}

/* ✅ Tipi */
.toast.success {
    background: rgba(0, 200, 100, 0.85);
    border-left: 4px solid #00ff88;
}

.toast.warn {
    background: rgba(255, 180, 0, 0.85);
    border-left: 4px solid #ffd000;
}

.toast.error {
    background: rgba(255, 60, 60, 0.85);
    border-left: 4px solid #ff2222;
}

/* neon effect */
/*
.toast.success {
    background: rgba(0,255,170,0.15);
    border-left: 4px solid #00ffaa;
    text-shadow: 0 0 6px #00ffaa;
}

.toast.warn {
    background: rgba(255,210,0,0.15);
    border-left: 4px solid #ffd200;
    text-shadow: 0 0 6px #ffd200;
}

.toast.error {
    background: rgba(255,70,70,0.15);
    border-left: 4px solid #ff4444;
    text-shadow: 0 0 6px #ff4444;
}
*/

.toast .progress {
    position: absolute;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(255,255,255,0.35);
    overflow: hidden;
	border-bottom-left-radius: 8px!important;
	border-bottom-right-radius: 8px!important;
	bottom:0px;
}

.toast .progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: progress-bar 4s linear forwards;
}

.toast.success .progress-bar { background: #00ff88; }
.toast.warn    .progress-bar { background: #ffd000; }
.toast.error   .progress-bar { background: #ff4444; }


/* ✅ Animazione */
@keyframes toast-slide {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ✅ Fadeout */
@keyframes toast-fadeout {
    from { opacity: 1; }
    to   { opacity: 0; transform: translateY(-20px); }
}

@keyframes progress-bar {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}
