/* Pilha fixa de toasts injetada por js/toast.js. */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

/* Base do toast e animacao de entrada. */
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-toast);
  color: var(--text-color-white);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: var(--font-size-14);
  box-shadow: 0 10px 24px var(--color-shadow-18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  max-width: 360px;
  width: fit-content;
  line-height: 1.3;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast-icon {
  font-size: var(--font-size-18);
  line-height: 1;
}

/* Variacoes de feedback. */
.toast.success {
  background: var(--toast-success-bg);
}
.toast.error {
  background: var(--toast-error-bg);
}
.toast.info {
  background: var(--toast-info-bg);
}
.toast.warning {
  background: var(--toast-warning-bg);
}

/* Ajustes mobile. */
@media (max-width: 480px) {
  #toast-container {
    left: 10px;
    right: 10px;
    top: 10px;
    align-items: center;
  }
  .toast {
    width: 100%;
    max-width: none;
    justify-content: center;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
  }
  .toast-icon {
    font-size: var(--font-size-20);
  }
}

/* Ajustes para telas grandes. */
@media (min-width: 1440px) {
  #toast-container {
    top: 40px;
    right: 40px;
  }
  .toast {
    font-size: var(--font-size-16);
    max-width: 420px;
    padding: 14px 22px;
  }
}
