#toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2000;
  pointer-events: none;
}

.toast-item {
  min-width: 240px;
  max-width: 360px;
  background: #ffffff;
  color: #1a2433;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  border-left: 4px solid var(--toast-accent, #3b82f6);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.toast-item.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-item.toast-success {
  --toast-accent: #22c55e;
}

.toast-item.toast-error,
.toast-item.toast-danger {
  --toast-accent: #ef4444;
}

.toast-item.toast-warning {
  --toast-accent: #f59e0b;
}

.toast-item.toast-info {
  --toast-accent: #3b82f6;
}

body.dark #toast-container .toast-item {
  background: #111827;
  color: #e5e7eb;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 576px) {
  #toast-container {
    left: 16px;
    right: 16px;
  }

  .toast-item {
    max-width: none;
    width: 100%;
  }
}
