/* toast.css */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  pointer-events: none; /* Prevents blocking clicks behind */
}

.toast {
  pointer-events: auto; /* But allow interaction with the toast itself */
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.15),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.35s ease-out;
  max-width: 360px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  background: linear-gradient(135deg, #10b981, #059669); /* emerald-500 to emerald-600 */
}

.toast.error {
  background: linear-gradient(135deg, #ef4444, #dc2626); /* red-500 to red-600 */
}

.toast h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.toast p {
  font-size: 14px;
  margin: 4px 0 0;
  opacity: 0.9;
}

.toast button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  margin-top: -4px;
  transition: background-color 0.2s;
}

.toast button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.toast svg {
  width: 16px;
  height: 16px;
}