uccessfully!", false);
                } else {
                    throw new Error(data.error || "Failed to send kudos.");
                }
            })
            .catch(error => {
                console.error("Error:", error);
                showMessage(error.message, true);
            });
        }

        function updateKudosCount(username) {
            const kudosMemberCard = document.getElementById(`member-${username}`);
            if (!kudosMemberCard) {
                console.error(`Memb