/*
 * components/toast.css — transient message stack
 *
 * Fixed bottom-centre stack filled by /js/ui/toast.js. Replaces native
 * alert() (Conventions rule #8). Success / error / info variants.
 */
.toast-stack {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex; flex-direction: column; gap: 10px; align-items: center;
    width: min(420px, calc(100vw - 28px)); pointer-events: none;
}
.toast {
    pointer-events: auto;
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    background: #20283c; color: #fff;
    border-radius: 12px; padding: 12px 14px;
    box-shadow: var(--shadow-3);
    font-size: 0.9rem; font-weight: 500;
    opacity: 0; transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
}
.toast.is-in { opacity: 1; transform: translateY(0); }
.toast__icon {
    flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 800; color: #fff;
}
.toast--success { border-left: 4px solid var(--color-success); }
.toast--success .toast__icon { background: var(--color-success); }
.toast--error   { border-left: 4px solid var(--color-error); }
.toast--error   .toast__icon { background: var(--color-error); }
.toast--info    { border-left: 4px solid var(--color-info); }
.toast--info    .toast__icon { background: var(--color-info); }
.toast__msg { flex: 1; }
.toast__close {
    border: 0; background: transparent; color: #aab2c5; font-size: 1.1rem;
    line-height: 1; padding: 2px 4px; border-radius: 6px;
}
.toast__close:hover { color: #fff; }
