/* Toast */
.toast {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 340px;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    z-index: 9999;
    cursor: pointer;
    overflow: hidden;
    transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    pointer-events: none;
}

.toast.show { 
    top: 20px;
    pointer-events: auto;
}

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }

.toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255,255,255,0.45);
}

.toast.show .toast-progress { animation: shrink 3.5s linear forwards; }
.toast:hover .toast-progress { animation-play-state: paused; }

@keyframes shrink { from { width: 100%; } to { width: 0%; } }

#successToast { background: linear-gradient(135deg, #70c03a, #52ce00); }
#errorToast   { background: linear-gradient(135deg, #ff5e5e, #ff0000); }
#warningToast { background: linear-gradient(135deg, #ffc163, #ff9100); }
#infoToast { background: linear-gradient(135deg, #4dabf7, #1b97fd); }
