.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  left: 0;
  border-right: 1px solid #ededed;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 12px 12px;
}

.sidebar-nav {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.site-title {
  padding: 10px 0px;
}

.sidebar-footer {
  padding: 8px 10px;
}

.nav-item,
.nav-item-header {
  border-radius: var(--base-border-radius);
  transition: background-color 0.2s ease-in;
  border: 1px solid transparent;
  padding: 8px 12px;
}

.nav-item-header {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0px;
}

.child-nav-item {
  margin-left: 14px;
}

.nav-item:hover {
  background-color: #fff;
}

.nav-item.active {
  background-color: #eff6fc;
  border-left: 2px solid var(--brand-color);
  font-weight: 600;
  color: var(--brand-color);
}


/* Hide the filled version by default */
.show-active {
  display: none;
}

/* Hide outline version and show filled version when active */
.nav-item.active .show-inactive {
  display: none;
}

.nav-item.active .show-active {
  display: inline-block;

}

/* .bi {
    display: none!important;
  } */

/* Basic styling for both versions */

.nav-item {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;

}

.nav-item>iconify-icon {
  font-size: 20px;
  color: #757575;
}

/* Update styles for iconify */
.nav-item.active iconify-icon {
  color: var(--brand-color);
}

iconify-icon.custom-icon svg {
  stroke-width: 250;
  /* This will only affect the icon with 'custom-icon' class */
}

.sidebar-footer,
.profile-nav-item {
  margin-top: auto;
}

.profile-item.dropdown-toggle::after {
  display: none;
}

.nav-toggle {
  display: none;
}

#nav-icon1 {
  width: 20px;
  height: 16px;
  position: relative;
  margin: 0px auto;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .3s ease-in-out;
  -moz-transition: .3s ease-in-out;
  -o-transition: .3s ease-in-out;
  transition: .3s ease-in-out;
  cursor: pointer;
  display: none;
}

#nav-icon1 span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--base-color);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

#nav-icon1 span:nth-child(1) {
  top: 0px;
}

#nav-icon1 span:nth-child(2) {
  top: 6px;
  /* width:14px; */
}

#nav-icon1 span:nth-child(3) {
  top: 12px;
}

#nav-icon1.open span:nth-child(1) {
  top: 8px;
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  transform: rotate(135deg);
}

#nav-icon1.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

#nav-icon1.open span:nth-child(3) {
  top: 8px;
  -webkit-transform: rotate(-135deg);
  -moz-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  transform: rotate(-135deg);
}


.menu-toggle-container {
  display: none;
}

.mobile-menu-items {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  font-size: 16px;
  font-weight: 600;
}

.sidebar-logo-img {
  width: 100px;
}

@media screen and (max-width: 992px) {
  .sidebar {
    position: relative;
    top: 0;
    z-index: 1;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 2px 0px;
    border-bottom: 1px #ededed solid;
    /* background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); */
  }

  .sidebar-logo-img {
    width: 100px;
  }


  .nav-item:hover {
    background-color: #fff;
  }

  .profile-nav-item {
    margin: unset;
    border: none;
    padding: 10px 24px;
  }

  .sidebar-nav {
    flex-direction: row;
    align-items: center;
    padding: 8px 24px;
  }

  .site-title {
    padding: 0px;
  }

  .sidebar-header {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
  }

  .sidebar,
  .sidebar-header {
    flex: 1 100%;
  }

  .site-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
  }

  .main-content {
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
  }

  .sidebar-footer {
    margin-top: inherit;
  }

  .nav-toggle {
    display: block;
  }

  .menu-toggle-container {
    display: block;
    padding-top: 8px;
    /* margin-right: 12px; */
    margin-left: 6px;
  }

  #nav-icon1 {
    display: flex;
  }

  .mobile-menu-items {
    display: none;
    height: auto;
  }

  .sidebar-logo {
    /* padding-left: 24px; */
    margin-bottom: 0px;
    font-size: 16px;
    font-weight: 600;
  }


  .mobile-bottom-nav {
    display: flex;
    justify-content: center;
    gap: 2px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-size: 14px;
    padding: 8px;
    /* background: #f3f3f3; */
    border-radius: 50px;
  }

  .nav-item>iconify-icon {
    font-size: 18px;
  }

  .mobile-bottom-nav>iconify-icon {
    font-size: 22px;
  }


  .mobile-menu-items {
    display: none;
    flex-direction: column;
    position: fixed;
    right: 0;
    height: calc(100vh - 54px);
    top: 55px;
    width: 100%;
    background-color: white;
    padding: 0px 0px;
    transform-origin: bottom;
    z-index: 1001;
    overflow-y: auto;
  }

  .sidebar-footer {
    border: none;
    padding: 0px;
  }

  .mobile-menu-items.active {
    display: flex;
    animation: growUp 0.3s ease-out forwards;
    padding-bottom: 200px;
  }

  .mobile-menu-items.closing {
    animation: shrinkDown 0.3s ease-out forwards;
  }

  @keyframes growUp {
    from {
      transform: scaleY(0);
    }

    to {
      transform: scaleY(1);
    }
  }

  @keyframes shrinkDown {
    from {
      transform: scaleY(1);
    }

    to {
      transform: scaleY(0);
    }
  }





  /* Ensure the bottom nav bar stays above overlay */
  .sidebar {
    z-index: 998;
    /* Same as mobile-menu-items */
  }



  .mobile-menu-items>.nav-item {
    text-decoration: none;

    font-size: 15px;
    display: flex;
    padding: 10px 24px;
    align-items: center;
    gap: 8px;
    border-radius: 0px;
  }



  /* add bottom border to last item */



}


.sidebar .search-input {
  background: #fff;
  /* border:var(--base-border); */
  padding: 6px 60px 6px 40px;
  /* box-shadow: none; */
}

.sidebar .search-input:focus {
  background: #fff;
}

.profile-nav-item {
  border: var(--base-border);
}

/* Style for positioning the search icon inside the input */
.search-input-container {
  /* Container needs relative positioning */
}



/* Style for positioning the keyboard shortcut hint */
.search-shortcut-hint {
  position: absolute;
  right: 12px;
  /* Adjust as needed */
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  /* Ensure hint is above input background */
  /* pointer-events: none; */
  /* Optional: Make hint non-interactive */
}

.search-shortcut-hint kbd {
  background-color: var(--bs-gray-200);
  padding: 0px 4px;
  border-radius: 3px;
  font-size: 11px;
  border: 1px solid var(--bs-gray-300);
  color: var(--bs-gray-700);
  box-shadow: inset 0 -1px 0 var(--bs-gray-300);
}