}
    function getSystemTheme() {
      return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
    }
    function updateThemeIcon(theme) {
      const iconMap = {
        light: '‚òÄÔ∏è',
        dark: 'üåô',
        auto: 'üåì'
      };
      document.getElementById('currentThemeIcon').textContent = iconMap[theme] || 'üåì';
    }
    document.addEventListener('DOMContentLoaded', () => {
      const savedTheme = localStorage.getItem('theme') || 'auto';