@media only screen and (max-width: 768px) {
  #portal-sidebar {
    display: none;
  }

  #sidebar-toggle {
    display: none;
  }
}

@media only screen and (min-width: 768px) {
 #portal-sidebar {
  position: absolute;
  left: 0;
  top: 0;
  height: 80vh;
  max-height: 1000px;
  min-height: 500px;
  width: 250px;
  background-color: white;
  z-index: 9999;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  opacity: 0;
  transition: 0.2s ease-in-out;
}

#sidebar-toggle {
  position: absolute;
  left: 0;
  top: 10px;
  cursor: pointer;
  z-index: 9998;
  background: none;
  border: none;
  outline: none;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-sidebar--open {
  transform: translateX(0) !important;
  opacity: 1 !important;
}

#portal-sidebar .portal-sidebar__header {
  position: relative;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px var(--btn-color-primary) solid;
  margin-bottom: 20px;
}

#portal-sidebar .portal-sidebar__body {
  margin-bottom: 40px;
}

#portal-sidebar .portal-sidebar__list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 5px;
}

#portal-sidebar .portal-sidebar__list-item {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 20px;
  transition: 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
}

#portal-sidebar .portal-sidebar__list-item.active,
#portal-sidebar .portal-sidebar__list-item:hover {
  background-color: var(--sidebar-active-bg);
  position: relative;
}

#portal-sidebar .portal-sidebar__list-item:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--sidebar-active-color);
  border-radius: 5px 5px 5px 0;
  transition: 0.2s ease-in-out;
  opacity: 0;
}

#portal-sidebar .portal-sidebar__list-item.active:before,
#portal-sidebar .portal-sidebar__list-item:hover:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--sidebar-active-color);
  border-radius: 5px 5px 5px 0;
  opacity: 1;
}

#portal-sidebar
  .portal-sidebar__list-item.active
  .portal-sidebar__list-link {
  color: var(--sidebar-active-color);
}

#portal-sidebar .portal-sidebar__list-icon {
  width: 32px;
  height: 32px;
  margin-left: 20px;
}

#portal-sidebar .portal-sidebar__list-link {
  text-decoration: none;
  color: var(--sidebar-color-primary);
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  height: 100%;
  padding: 15px 20px 15px 10px;
  display: block;
}

#portal-sidebar .portal-sidebar__footer {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#portal-sidebar .portal-sidebar__search-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 10px;
}

#portal-sidebar
  .portal-sidebar__search-form
  .portal-sidebar__search-input {
  width: 200px;
  padding: 10px;
  border: 1px var(--btn-color-primary) solid;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
} 
}
