/* ============================================================
   NekoGen V2 — TOASTS
   ============================================================ */

.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: min(380px, calc(100vw - 2rem));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 0.85rem 1.1rem;
    font-size: var(--text-sm);
    color: var(--color-text);
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border-strong);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop);
    backdrop-filter: var(--glass-blur);
    animation: slide-left 0.4s var(--ease-spring) both;
}

.toast.removing { animation: toast-out 0.3s var(--ease-out) both; }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }

.toast i { margin-top: 2px; }

.toast-success { border-left-color: var(--color-success); }
.toast-success i { color: var(--color-success); }
.toast-error   { border-left-color: var(--color-error); }
.toast-error i { color: var(--color-error); }
.toast-warning { border-left-color: var(--color-warning); }
.toast-warning i { color: var(--color-warning); }
.toast-info    { border-left-color: var(--color-secondary); }
.toast-info i  { color: var(--color-secondary); }

/* Progress bar */
.toast .toast-progress {
    position: absolute;
    left: 0; bottom: 0;
    height: 2px;
    background: var(--grad-neon);
    animation: toast-progress linear forwards;
}
@keyframes toast-progress { from { width: 100%; } to { width: 0; } }

@media (max-width: 560px) {
    .toast-container { left: var(--space-md); right: var(--space-md); bottom: var(--space-md); }
}
