actLayout.classList.remove('active');
                document.querySelector('button[onclick="switchLayout(\'cards\')"]').classList.add('active');
            } else {
                compactLayout.classList.add('active');
                cardsLayout.classList.remove('active');
                document.querySelector('button[onclick="switchLayout(\'compact\')"]').classList.add('active');
            }
        }

        function showToast(message) {
            const toast = document.getElementById('toast');