.sidebar {
  background-color: #eceff1;
  position: fixed;
  top: 56px;
  left: 0;
  height: calc(100% - 50px);
  width: 200px;
  z-index: 100;
  transition: all 0.5s ease;
  opacity: 1;
}

.sidebar.close {
  width: 50px;
}

.sidebar .logo-details {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
}

.sidebar .logo-details i {
  font-size: 30px;
  color: #11101d;
  height: 50px;
  min-width: 78px;
  text-align: center;
  line-height: 50px;
}

.sidebar .logo-details .logo_name {
  font-size: 22px;
  color: #fff;
  font-weight: 600;
  transition: 0.3s ease;
  transition-delay: 0.1s;
}

.sidebar.close .logo-details .logo_name {
  transition-delay: 0s;
  opacity: 0;
  pointer-events: none;
}

.sidebar .nav-links {
  height: 100%;
  padding: 4px 0 150px 0;
  overflow: auto;
}

.sidebar.close .nav-links {
  overflow: visible;
}

.sidebar .nav-links::-webkit-scrollbar {
  display: none;
}

.sidebar .nav-links li {
  position: relative;
  list-style: none;
  transition: all 0.4s ease;
}

.sidebar .nav-links .active {
  background: transparent;
}

.sidebar .nav-links > li.active:before,
.sidebar .nav-links > li:before {
  position: absolute;
  left: 0;
  top: 0;
  content: "";
  width: 4px;
  height: 100%;

  opacity: 0;
  transition: all 0.25s ease-in-out;
  border-top-right-radius: 5px;
  border-top-right-radius: 5px;
}

.sidebar .nav-links li.active:before,
.sidebar .nav-links li:hover:before {
  /* background: #f7f8fb; */
  opacity: 1;
}

.sidebar .nav-links li .iocn-link {
  display: flex;
  align-items: center;
}

.sidebar.close .nav-links li .iocn-link {
  display: block;
  padding: 4px;
}

.sidebar .nav-links li i {
  height: 40px;
  min-width: 40px;
  text-align: center;
  line-height: 40px;
  color: #11101d;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar .nav-links li.active i,
.sidebar .nav-links li:hover i {
  color: #f7f8fb;
  background-color: var(--primary-color);
  border-radius: 4px;
}

.sidebar .nav-links li.showMenu i.arrow {
  transform: rotate(-180deg);
}

.sidebar.close .nav-links i.arrow {
  display: none;
}

.sidebar .nav-links li a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sidebar .nav-links li a .link_name {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  transition: all 0.4s ease;
}

/* .sidebar .nav-links li.active a .link_name,
.sidebar .nav-links li:hover a .link_name {
  color: var(--primary-color);
} */

.sidebar.close .nav-links li a .link_name {
  opacity: 0;
  pointer-events: none;
}

.sidebar .nav-links li .sub-menu {
  padding-left: 16px;
  margin-top: -10px;
  display: none;
}

.sidebar .nav-links li.showMenu .sub-menu {
  display: block;
}

.sidebar .nav-links li .sub-menu a {
  color: #1d1b31;
  font-size: 1rem;
  padding: 5px 0;
  white-space: nowrap;
  opacity: 0.6;
  /* transition: all 0.3s ease; */
}

.sidebar .nav-links li .sub-menu a:hover {
  opacity: 1;
}

.sidebar .nav-links li .sub-menu .selected {
  background-color: rgba(0, 120, 212, 0.1);
}

.sidebar .nav-links li .sub-menu .selected a {
  color: #1d1b31;
  opacity: 1;
}

.sidebar.close .nav-links li .sub-menu {
  position: absolute;
  left: 100%;
  top: -10px;
  margin-top: 0;
  padding: 10px 20px;
  border-radius: 0 6px 6px 0;
  opacity: 0;
  display: block;
  pointer-events: none;
  transition: 0s;
}

.sidebar.close .nav-links li:hover .sub-menu {
  top: 0;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
}

.sidebar .nav-links li .sub-menu .link_name {
  display: none;
}

.sidebar.close .nav-links li .sub-menu .link_name {
  font-size: 18px;
  opacity: 1;
  display: block;
}

.sidebar .nav-links li .sub-menu.blank {
  opacity: 1;
  pointer-events: auto;
  /* padding: 3px 20px 6px 16px; */
  opacity: 0;
  pointer-events: none;
}

.sidebar .nav-links li:hover .sub-menu.blank {
  top: 50%;
  transform: translateY(-50%);
}

.sidebar .profile-details {
  position: fixed;
  bottom: 0;
  width: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1d1b31;
  padding: 12px 0;
  transition: all 0.5s ease;
}

.sidebar.close .profile-details {
  background: none;
}

.sidebar.close .profile-details {
  width: 78px;
}

.sidebar .profile-details .profile-content {
  display: flex;
  align-items: center;
}

.sidebar .profile-details img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 14px 0 12px;
  background: #1d1b31;
  transition: all 0.5s ease;
}

.sidebar.close .profile-details img {
  padding: 10px;
}

.sidebar .profile-details .profile_name,
.sidebar .profile-details .job {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.sidebar .profile-details .job {
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  opacity: 0.5;
  white-space: nowrap;
}

.sidebar .profile-details i.bx {
  min-width: 50px;
}

.sidebar.close .profile-details i,
.sidebar.close .profile-details .profile_name,
.sidebar.close .profile-details .job {
  display: none;
}

.sidebar .profile-details .job {
  font-size: 12px;
}

@media (max-width: 420px) {
  .sidebar.close .nav-links li .sub-menu {
    display: none;
  }
}

/* List styling */
.saved-missions-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub-menu li {
  padding: 0.2rem 0.5rem;
  margin: 0.7rem 0;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.basic-list li:hover,
.sub-menu li:hover {
  background-color: rgba(0, 120, 212, 0.1);
  border-radius: 4px;
}

.basic-list li.active,
.sub-menu li.active {
  font-weight: bold;
  color: #0078d4;
  background-color: rgba(0, 120, 212, 0.2);
  border-left: 4px solid #0078d4;
  padding-left: 0.8rem;
}

.saved-missions-list li {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 1rem;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.saved-missions-list li:hover {
  background-color: #f1f1f1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Disabled sidebar item */
.disable-sidebar-item {
  pointer-events: none;
  /* Prevents clicking */
  cursor: not-allowed;
  /* Changes the cursor to indicate disabled state */
  opacity: 0.5;
  /* Makes the item appear grayed out */
}

/* Adjust styles for icons and text specifically */
.disable-sidebar-item i,
.disable-sidebar-item .link_name {
  color: #aaa;
  /* Gray out the text and icon */
}

/* Override the selected style when it's applied to showMenu */
.showMenu.selected {
  background-color: transparent; /* Remove the background color */
  border: none; /* Remove the border */
}
