f (name === 'theme') {
                        return value;
                    }
                }
                return 'light'; // Default to light mode if no cookie is found
            }
    
            const theme = getThemeFromCookie();
            document.documentElement.setAttribute('data-theme', theme);
        })();
    </script>
</head>
<body class="body font-sans">
    <header class="text-gray-900 p-4">
        <nav class="container mx-auto flex justify-between items-center">
            <b