#toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10003;
  display: flex;
  flex-direction: column-reverse; /* Newest at bottom */
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 90%;
}

.ams-toast {
  min-width: 300px;
  max-width: 500px;
  padding: 14px 24px;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  animation: toastSlideUp 0.3s forwards;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ams-toast.hiding {
  animation: toastFadeOut 0.3s forwards;
}

/* Types */
.ams-toast.succ {
  background-color: #74b574;
}
.ams-toast.info {
  background-color: #57a9c1;
}
.ams-toast.warn {
  background-color: #f7a736;
}
.ams-toast.error {
  background-color: #c85c57;
}

/* Close Button */
.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  margin-left: 15px;
  opacity: 0.7;
  padding: 0 5px;
}
.toast-close:hover {
  opacity: 1;
}

@keyframes toastSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}
