:root { --nav-height: 60px; } .site-header { position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height); background-color: #333333; z-index: 1000; } nav { height: 100%; /*max-width: 1200px;*/ margin: 0 auto; padding: 0 1rem; } .navbar__list { display: flex; align-items: center; gap: 1.5rem; height: 100%; margin: 0; padding: 0; list-style: none; } .navbar__icon { display: block; height: 25px; width: 25px; object-fit: contain; } .navbar__link:hover { background-color: #111111; } .navbar__link:hover .navbar__icon { transform: translateY(-4px); /* Gently lifts the icon upward */ filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.15)); /* Adds a slight glow or deeper shadow */ } .navbar__link--active .navbar__icon { background-color: #04AA6D; filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.15)); /* Adds a slight glow or deeper shadow */ } /* Base sidebar style (hidden by default on all screens) */ .sidebar { position: fixed; left: -250px; /* Pushes it off-screen to the left */ width: 250px; top: 60px; /* Adjust based on your nav header height */ height: calc(100% - 60px); transition: left 0.3s ease; /* Smooth slide-in animation */ z-index: 1000; background: #222; /* Adjust to match your theme */ } /* When JavaScript adds this class, slide the sidebar into view */ .sidebar.sidebar--open { left: 0; } /* Updated Desktop adjustments */ @media (min-width: 768px) { /* Ensure the button stays visible on desktop */ .toggle-btn { display: inline-block; } /* Optional: If you want the main page content to shift right when open */ .sidebar.sidebar--open ~ main { margin-left: 250px; transition: margin-left 0.3s ease; } }