"DOMContentLoaded", function() {
      const user = JSON.parse(localStorage.getItem('current_user'));
      if (!user) {
        window.location.href = 'login.html';
        return;
      }
      document.getElementById('profileName').textContent = user.name;
      document.getElementById('profileEmail').textContent = user.email;
      document.getElementById('profileCreated').textContent = user.createdAt ? new Date(user.createdAt).toLocaleDateString() : 'N/A';
      const themeSelect = document.getElementB