/* ---- Toast Notifications ---- */

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    pointer-events: none;
    max-width: 380px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px var(--shadow-sm), 0 0 0 1px var(--shadow-ring);
    font-size: 0.8125rem;
    color: var(--fg);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
}

.toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.toast--dismissed {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

.toast-icon { display: grid; place-items: center; flex-shrink: 0; }
.toast-message { flex: 1; line-height: 1.4; }

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    padding: 0 0.125rem;
}
.toast-close:hover { color: var(--fg); }

.toast--success .toast-icon { color: #16a34a; }
.toast--error .toast-icon { color: #dc2626; }
.toast--warning .toast-icon { color: #d97706; }
.toast--info .toast-icon { color: var(--muted); }
