"light";
            document.documentElement.setAttribute("data-theme", currentTheme);
            updateLogo(currentTheme);
        }

        function updateLogo(theme) {
            const logo = document.getElementById("logo");
            if (theme === "dark") {
                logo.src = "{{ url_for('static', filename='streamdock-logo_dark.png') }}";
            } else {
                logo.src = "{{ url_for('static', filename='streamdock-logo_light.png') }}";
            }
        }

        window.