/* Centered top toast overlay */
#messages-overlay {
  position: fixed;
  top: 1rem;               /* distance from top */
  left: 50%;               /* horizontal center point */
  transform: translateX(-50%); /* shift back by half its own width */
  display: flex;
  flex-direction: column;
  align-items: center;     /* center toasts in the column */
  gap: 0.5rem;
  z-index: 9999;
  pointer-events: none;
}

/* Individual toast styling (unchanged) */
.toast {
  pointer-events: auto;
  background: rgba(50,50,50,0.9);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-size: 0.95rem;
  opacity: 1;
  transition: opacity 0.4s, transform 0.4s;
}

.toast.success { background-color: #28a745; }
.toast.info    { background-color: #17a2b8; }
.toast.warning { background-color: #ffc107; color: #212529; }
.toast.error   { background-color: #dc3545; }

.toast.hide {
  opacity: 0;
  transform: translateY(-20px);
}
