/* SPDX-License-Identifier: AGPL-3.0-only */
/* ---------- Toasts ---------- */

.toasts {
    position: fixed;
    top: 16px;
    inset-inline-end: 16px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    box-shadow: 0 10px 30px var(--shadow-soft);
    animation: toast-in 0.2s ease-out;
    max-width: 320px;
}

.toast.has-icon {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.toast-icon {
    display: flex;
    flex-shrink: 0;
    color: var(--muted);
}

.toast-icon svg {
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.5);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
}
