 (savedTheme === 'dark') {
                document.body.classList.add('dark');
                themeIcon.textContent = 'dark_mode';
            }

            const savedView = storage.getItem('view_preference');
            if (savedView === 'list') {
                currentView = 'list';
                listViewBtn.classList.add('active');
                gridViewBtn.classList.remove('active');
            }

            const savedSort = storage.getItem('sort_preference');
            if (savedSort) {
 