/* For screens 768px and above */
@media screen and (min-width: 768px) {
  .sidebar {
  position: fixed;
  top: 0;
  left: -100%; /* Initially hidden */
  width: 50%;
  height: 100%;
  background: #0c1538;
  color: white;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding-top: 10px;
}

.sidebar .profile-edit-img {
    text-align: center;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  transition: background 0.3s;
}

.sidebar ul li a:hover {
  background-color: #18308f;
}

/* Button to close the sidebar */
.close-btn {
  position: absolute;
  top: -5px;
  right: 13px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
}

/* Main Content */
.main-content {
  flex-grow: 1;
  padding: 20px;
}

.open-btn {
  background-color: #33333300;
  color: white;
  border: none;
  padding: 0;
  font-size: 16px;
  cursor: pointer;
}

.open-btn:hover {
  background-color: #575757;
}

/* Active Sidebar */
.sidebar.active {
  left: 0;
  z-index: 9;
}
.setting-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  align-content: center;
}
  .navigation {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 200px;
    background: linear-gradient(1deg, #0c1538, rgba(12, 21, 56, 0.7));
    padding: 10px 0;
    border-radius: 0 0 15px 15px;
    backdrop-filter: blur(7px);
    z-index: 3;
  }

  .navigation .listWrap {
    list-style: none;
    display: flex;
    padding: 10px;
    margin: 0;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
  }

  .navigation .listWrap li {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .navigation .listWrap li a {
    position: relative;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
  }

  .navigation .listWrap li:active a .icon,
  .navigation .listWrap li.active a .icon {
    transform: translateY(-5px);
  }

  .navigation .listWrap li a .icon {
    display: block;
    text-align: center;
    color: inherit;
    transition: 0.3s ease;
  }

  .navigation .listWrap li a .icon img {
    height: 30px;
    transition: height 0.3s ease;
  }

  .navigation .listWrap li:active a .icon img,
  .navigation .listWrap li.active a .icon img {
    height: 50px;
  }

  .navigation .listWrap li a .text {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .navigation .listWrap li:active a .text,
  .navigation .listWrap li.active a .text {
    opacity: 1;
  }
  li.list {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: transparent;
  }
  li.list.active {
      width: 50px;
      height: 50px;
      position: relative; 
      color: white; 
  }
  li.list.active::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgb(255 255 255 / 24%);
      filter: blur(12px);
      z-index: -1; 
  }
  li.list.active i {
      position: relative;
      z-index: 1;
  }
  .border-bottom1 {
    display: none;
}
}

/* For screens below 768px (mobile devices) */
@media screen and (max-width: 767px) {
  .sidebar {
  position: fixed;
  top: 0;
  left: -100%; /* Initially hidden */
  width: 100%;
  height: 100%;
  background: #0c1538;
  color: white;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding-top: 10px;
}

.sidebar .profile-edit-img {
    text-align: center;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  transition: background 0.3s;
}

.sidebar ul li a:hover {
  background-color: #18308f;
}

/* Button to close the sidebar */
.close-btn {
  position: absolute;
  top: -5px;
  right: 13px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
}

/* Main Content */
.main-content {
  flex-grow: 1;
  padding: 20px;
}

.open-btn {
  background-color: #33333300;
  color: white;
  border: none;
  padding: 0;
  font-size: 16px;
  cursor: pointer;
}

.open-btn:hover {
  background-color: #575757;
}

/* Active Sidebar */
.sidebar.active {
  left: 0;
  z-index: 9;
}
  .navigation {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    background: linear-gradient(1deg, #0c1538, rgba(12, 21, 56, 0.7));
    padding: 10px 0;
    border-radius: 15px 15px 0 0;
    backdrop-filter: blur(7px);
    z-index: 3;
  }

  .navigation .listWrap {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .navigation .listWrap li {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .navigation .listWrap li a {
    position: relative;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
  }

  .navigation .listWrap li:active a .icon,
  .navigation .listWrap li.active a .icon {
    transform: translateY(-5px);
  }

  .navigation .listWrap li a .icon {
    display: block;
    text-align: center;
    color: inherit;
    transition: 0.3s ease;
  }

  .navigation .listWrap li a .icon img {
    height: 30px;
    transition: height 0.3s ease;
  }

  .navigation .listWrap li:active a .icon img,
  .navigation .listWrap li.active a .icon img {
    height: 35px;
  }

  .navigation .listWrap li a .text {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .navigation .listWrap li:active a .text,
  .navigation .listWrap li.active a .text {
    opacity: 1;
  }
  li.list {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: transparent;
  }
  li.list.active {
      width: 40px;
      height: 40px;
      position: relative; 
      color: white; 
  }
  li.list.active::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgb(255 255 255 / 24%);
      filter: blur(12px);
      z-index: -1; 
  }
  li.list.active i {
      position: relative;
      z-index: 1;
  }
  .border-bottom1{
    border-bottom: 1px solid var(--9, #F5F5F5);
}
}
