/* SIDEBAR DEFAULT (DESKTOP) */
.sidebar {
  width: 220px;
  background: #2f2f2f;
  color: white;
  height: 100%;
  min-height: 100vh;
  padding-top: 20px;
  box-sizing: border-box;
  position: relative;
  transition: left 0.3s ease;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Sidebar links */
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links li {
  padding: 12px 20px;
}
.sidebar-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: block;
}
.sidebar-links li a:hover {
  background: #444;
  border-radius: 4px;
}

/* TOGGLE BUTTON - only visible on mobile */
.sidebar-toggle {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1101;
  display: block;
  background: #2f2f2f;
  color: white;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 4px;
}

/* MOBILE: Sidebar hidden by default, slides in */
@media (max-width: 900px) {
  .sidebar {
    position: absolute;
    top: 60px; /* below fixed nav */
    left: -220px;
    width: 220px;
    height: calc(100vh - 60px);
    background: #2f2f2f;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .sidebar.open {
    left: 0;
  }
}

@media (min-width: 901px) {
  .sidebar-toggle {
    display: none !important;
  }
}

