/* ==========================================================================
   TOAST.CSS
   Floating notification styles. Container is fixed to the bottom of the
   viewport; individual toasts stack upward as more appear.
   ========================================================================== */

#toast-container {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-sm);
  z-index: 100;
  width: calc(100% - var(--space-lg) * 2);
  max-width: 400px;
  pointer-events: none; /* clicks pass through the empty container area */
}

.toast {
  background: var(--ink-raised);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

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

.toast-success {
  border-left-color: var(--success);
}

.toast-danger {
  border-left-color: var(--danger);
}
