#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px; /* spacing between toasts */
}

/* Base Toast Style */
.toast {
  display: flex;
  align-items: center;
  max-width: 400px;
  border: 1px solid #ccc;
  border-left-width: 5px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  padding: 16px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  color: #fff; /* default white text for colored backgrounds */
}

/* Show Animation */
.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Success Toast */
.success-toast {
  background-color: rgba(33, 163, 102, 0.95); /* opaque green */
  border-left-color: #21a366;
}

/* Error Toast */
.error-toast {
  background-color: rgba(231, 76, 60, 0.95); /* opaque red */
  border-left-color: #e74c3c;
}

/* Icon Styles */
.toast .icon {
  background-color: rgba(0, 0, 0, 0.15);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 12px;
}

/* Message Text */
.toast .message {
  flex-grow: 1;
  font-size: 14px;
  color: #fff;
}

.toast .message strong {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

/* Close Button */
.toast .close {
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  margin-left: 10px;
  opacity: 0.7;
}

.toast .close:hover {
  opacity: 1;
}
