/* ============================================================
   toast.css — Toast global da Plataforma.
   Anexo: webapp/static/js/toast.js (API window.toast).
   Carregado em base.html.
   ============================================================ */

.toast-stack {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(420px, calc(100vw - 44px));
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--toast-accent, var(--ink-3));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-base);
  color: var(--ink);
  transform: translateX(130%);
  opacity: 0;
  transition:
    transform .28s cubic-bezier(.175, .885, .32, 1.275),
    opacity .2s ease;
}
.toast-item.show {
  transform: translateX(0);
  opacity: 1;
}
.toast-item .toast-icon {
  font-size: 1.1rem;
  color: var(--toast-accent, var(--ink-3));
  flex-shrink: 0;
}
.toast-item .toast-msg {
  flex: 1;
  line-height: 1.35;
}
.toast-item .toast-close {
  background: none;
  border: 0;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
}
.toast-item .toast-close:hover { color: var(--ink); }

.toast-item.toast-success { --toast-accent: var(--success); }
.toast-item.toast-error   { --toast-accent: var(--danger); }
.toast-item.toast-warning { --toast-accent: var(--warning); }
.toast-item.toast-info    { --toast-accent: var(--brand); }
