/*!
 * Start Bootstrap - Simple Sidebar (https://startbootstrap.com/template-overviews/simple-sidebar)
 * Copyright 2013-2019 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-simple-sidebar/blob/master/LICENSE)
 */
body {
  overflow-x: hidden;
}

#sidebar-wrapper {
  height: 100vh; /* Changed from min-height to height */
  position: sticky; /* Keeps it fixed while the page scrolls */
  top: 0;
  display: flex;
  flex-direction: column;
  margin-left: -15rem;
  transition: margin 0.25s ease-out;
}

/* This targets the container holding your links */
#sidebar-wrapper .list-group {
  width: 15rem;
  overflow-y: auto; /* Enables vertical scrolling */
  flex-grow: 1; /* Allows the list to fill remaining space */
}

/* Optional: Make the scrollbar look cleaner (Webkit browsers) */
#sidebar-wrapper .list-group::-webkit-scrollbar {
  width: 5px;
}
#sidebar-wrapper .list-group::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

#sidebar-wrapper .sidebar-heading {
  padding: 0.875rem 1.25rem;
  font-size: 1.2rem;
  display: flex;
}

#page-content-wrapper {
  min-width: 100vw;
}

#wrapper.toggled #sidebar-wrapper {
  margin-left: 0;
}

@media (min-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
  }

  #page-content-wrapper {
    min-width: 0;
    width: 100%;
  }

  #wrapper.toggled #sidebar-wrapper {
    margin-left: -15rem;
  }
}
