.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}
.toast {
  background: #333;
  color: #fff;
  padding: 10px 16px;
  margin-top: 10px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s, transform 0.3s;
  cursor: grab;
  position: relative;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success { background: #4caf50; }
.toast.error { background: #f44336; }
.toast.loading { background: #2196f3; }

/* Animated colourful bottom border for loading */
.toast.loading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, red, orange, yellow, green, cyan, blue, violet);
  background-size: 400% 100%;
  animation: borderFlow 2s linear infinite;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}