// Open the modal
function openModal() {
    document.getElementById("deleteModal").style.display = "flex";
}

// Close the modal
function closeModal() {
    document.getElementById("deleteModal").style.display = "none";
}

// Add an event listener for the delete button in the modal (optional)
document.querySelector(".confirm-delete").addEventListener("click", function() {
    alert("Profile deleted!"); // Perform the delete action here
    closeModal();
});
