/* Modul toast: obavestenja, prefiks .toast-. */
/* ===== KONTEJNER ===== */
.toast-kontejner {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 300;
    pointer-events: none;
    width: max-content;
    max-width: calc(100vw - 32px);
}

/* ===== TOAST I TIPOVI ===== */
.toast {
    padding: 11px 22px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 650;
    text-align: center;
    white-space: pre-line;
    max-width: 100%;
    box-shadow: var(--senka-lg);
    animation: toast-ulaz 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.toast.izlazi {
    animation: toast-izlaz 0.25s ease forwards;
}

.toast-uspesno {
    background: var(--uspesna);
}

.toast-greska {
    background: var(--opasna);
}

.toast-info {
    background: var(--tekst-primarni);
    color: var(--bg-kartica);
}

@keyframes toast-ulaz {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes toast-izlaz {
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
}
