/* ========================================================================== */
/* Toast UI                                                                  */
/* ========================================================================== */

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 12000;
  display: grid;
  gap: 12px;
  justify-items: end;
  max-width: min(92vw, 720px);
}

.toast {
  display: block;
  width: fit-content;
  max-width: min(92vw, 720px);
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: toastIn 0.22s ease;
}

.toast-success {
  background: rgba(28, 67, 41, 0.94);
  border-color: rgba(88, 201, 118, 0.35);
  color: #e6ffec;
}

.toast-error {
  background: rgba(90, 28, 28, 0.95);
  border-color: rgba(255, 120, 120, 0.35);
  color: #ffe6e6;
}

.toast-info {
  background: rgba(33, 33, 33, 0.94);
  border-color: rgba(215, 162, 74, 0.28);
  color: #f7f3ed;
}

.toast-message {
  line-height: 1.5;
  font-size: 14px;
}

.toast-removing {
  animation: toastOut 0.18s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast-removing {
    animation: none;
  }
}
