style.display = "block";
                } else {
                    folder.classList.remove("open");
                    folderContents.style.display = "none";
                }
            }
        });

        // Re-enable animation
        setTimeout(() => {
            navbar.style.transition = "";
            main.style.transition = "";
            chevrons.forEach(chevron => {
                chevron.style.transition = "";
            });
        }, 100);
    }
}

function saveSidenavScrollPosition