end of the body -->
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const logoutForm = document.getElementById('logout-form');
            if (logoutForm) {
                logoutForm.addEventListener('submit', function(event) {
                    event.preventDefault();

                    // Add loading state to logout button
                    const logoutBtn = document.getElementById('logout-btn');
                    logoutBtn.disabled = true;
            