/* Tudo escopado ao #toast-root para não vazar estilos */
#toast-root.toast-show{
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  max-width: 520px;       /* pode ajustar */
  width: calc(100% - 48px);
  display: block;
  text-align: center;     /* centraliza texto */
}
#toast-root .toast-card{
  margin: 10px auto 0;    /* empilha centralizado */
}


#toast-root { display: none; }

/* Cartão do toast (não usa classes genéricas) */
#toast-root .toast-card {
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  margin-top: 10px;
  animation: toast-fade-in .18s ease forwards;
}

#toast-root .toast-success { background:#16a34a; }
#toast-root .toast-error   { background:#dc2626; }
#toast-root .toast-info    { background:#2563eb; }
#toast-root .toast-warn    { background:#d97706; }

@keyframes toast-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
