document.addEventListener("DOMContentLoaded", () => {
  document.querySelectorAll("[data-toast-close]").forEach((button) => {
    button.addEventListener("click", () => {
      const toast = button.closest(".toast");
      if (toast) {
        toast.classList.add("hidden");
        setTimeout(() => toast.remove(), 200);
      }
    });
  });
});
