#toaster {
  --success-bg: hsl(143, 85%, 96%);
  --success-border: hsl(145, 92%, 87%);
  --success-text: hsl(140, 100%, 27%);
  --normal-bg: var(--popover);
  --normal-text: var(--popover-foreground);
  --normal-border: var(--border);

  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  bottom: 70px;
  right: 50%;
  width: 100%;
  transform: translateX(50%);
  z-index: 9999;
}

#toaster .toast {
  padding: 16px;
  background: var(--normal-bg);
  border: 1px solid var(--normal-border);
  color: var(--normal-text);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  align-items: center;
  gap: 6px;
  max-width: 300px;
  animation: slideUp 0.5s, fadeOut 0.5s 2.5s forwards;
  transition: all 0.3s ease;
  margin-bottom: -50px;
  display: none;
}

#toaster:hover .toast:not(:nth-last-child(1)) {
  margin-bottom: 0 !important;
  transform: scale(1) !important;
}

#toaster .toast:nth-last-child(1) {
  display: flex;
}
#toaster .toast:nth-last-child(2) {
  display: flex;
  margin-bottom: -50px;
  transform: scale(0.9);
  z-index: -1;
}
#toaster .toast:nth-last-child(3) {
  display: flex;
  margin-bottom: -50px;
  transform: scale(0.8);
  z-index: -1;
}

#toaster .toast.success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
  }
  to {
    transform: translateY(0);
  }
}
