Nav");
    const isOpen = navbar.style.width !== "0px"; // Check if navbar is open

    // Save the state of each folder
    const folderStates = Array.from(document.querySelectorAll(".folder")).map(folder => ({
        id: folder.querySelector("span").textContent.trim(), // Use folder name as identifier
        isOpen: folder.classList.contains("open") // Check if folder is open
    }));

    // Save the navbar and folder states to localStorage
    localStorage.setItem("navbarState", JSON.stringify({ isOpe