* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*tested code, works*/


:root {
  --top: 0;
}


.sidebar {
  position: fixed;
  width: 78px;
  left: 0;
  top: 65px;
  bottom: 0;
  height: 100%;
  background-color: #000;
  /* padding: 1vw 3vw; */
  padding: 6px 14px;
  z-index: 99;
  transition: all 0.5s ease;
}

.sidebar.open {
  width: 25%;
}

.logo-details {
  position: fixed;
  color: white;
  width: auto;
  top: 5px;
  left: 49px;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
}

.logo-details #btn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 22px;
  transition: all 0.4s ease;
  font-size: 23px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s ease;
}

.sidebar i {
  color: #fff;
  height: 60px;
  min-width: 50px;
  font-size: 28px;
  text-align: center;
  line-height: 60px;
}

.sidebar .nav-list {
  margin-top: 0;
  height: 75%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  bottom: 0;
}

.sidebar li {
  position: relative;
  /*margin: 8px 0;*/
  list-style: none;
}

.sidebar li .tooltip {
  position: absolute;
  top: -20px;
  left: calc(100% + 15px);
  z-index: 3;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 400;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: 0s;
}

.sidebar li:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar.open li .tooltip {
  display: none;
}

.sidebar input {
  font-size: 15px;
  color: #FFF;
  font-weight: 400;
  outline: none;
  height: 50px;
  width: 100%;
  width: 50px;
  border: none;
  border-radius: 12px;
  transition: all 0.5s ease;
  background: #1d1b31;
}

.sidebar.open input {
  padding: 0 20px 0 50px;
  width: 100%;
}

/*.sidebar .fa-magnifying-glass {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 22px;
  background: #1d1b31;
  color: #FFF;
}

.sidebar .open .fa-magnifying-glass:hover {
  background: #1d1b31;
  color: #FFF;
}

.sidebar .fa-magnifying-glass:hover {
  background: #FFF;
  color: #11101d;
}*/

.sidebar li a {
  display: flex;
  height: 100%;
  width: 100%;
  border-radius: 12px;
  align-items: center;
  text-decoration: none;
  transition: all 0.4s ease;
  background: #11101D;
}

.sidebar li a:hover {
  background: #FFF;
}

.sidebar li a .links_name {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
}

.sidebar.open li a .links_name {
  opacity: 1;
  pointer-events: auto;
}

.sidebar li a:hover .links_name,
.sidebar li a:hover i {
  transition: all 0.5s ease;
  color: #11101D;
}

.sidebar li i {
  height: 50px;
  line-height: 50px;
  font-size: 18px;
  border-radius: 12px;
}

.sidebar li img {
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}



@media only screen and (max-width: 768px) {

  .sidebar {
    width: 1px;
    height: 100%;
    left: -100%;
  }

  .sidebar.open {
    width: 100%;
    left: 0;
  }

}