/* Toast container */
#toast-container {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Default: desktop (upper right) */
@media (min-width: 769px) {
  #toast-container {
    bottom: 20px;
    right: 20px;
    align-items: flex-end;
  }
}

/* Mobile: center bottom */
@media (max-width: 768px) {
  #toast-container {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
  }
}

/* Toast style */
.toast {
  min-width: 220px;
  max-width: 300px;
  padding: 12px 16px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  animation: fadeIn 0.5s, fadeOut 0.5s 2.5s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  text-align: center;
}

/* Variants */
.toast.success { background: #28a745; }
.toast.error { background: #dc3545; }
.toast.warning { background: #ffc107; color: #333; }
.toast.info { background: #17a2b8; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(0px); }
  to { opacity: 1; transform: translateY(20); }
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}
