.sidebar {
  height: 100vh;
  width: 60px;
  background-color: #444;
  transition: width 0.3s;
  position: sticky;
  overflow-y: auto;
}

.sidebar.open {
  width: 350px;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  overflow: hidden;
}

.sidebar ul li {
  padding: 15px;
  text-align: left;
  white-space: nowrap;
  color: white;
  /* Yazı rengi beyaz */
}

.sidebar ul li .icon {
  display: inline-block;
  width: 30px;
  text-align: center;
}

.sidebar ul li .text {
  display: none;
  margin-left: 10px;
}

.sidebar.open ul li .text {
  display: inline;
}

.sidebar ul li a {
  color: #fff;
  text-decoration: none;
  position: relative;
  display: flex;
}

.sidebar ul li a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: #8bdeff;
  transition: transform 0.3s ease;
  transform: scaleX(1);
}

.sidebar ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: #8bdeff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.toggle-btn {
  background-color: transparent;
  border: none;
  color: white;
  cursor: pointer;
  width: 3rem;
  transition: width 0.3s;
  font-size: 1.5rem;
  height: 100%;
  z-index: 3;
  position: relative;
}

.tooltipText {
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  z-index: 100000;
  white-space: nowrap;
  font-size: 14px;
  transition: opacity 0.3s ease;
  opacity: 0;
  display: none;
}

.sidebar ul li a:hover .tooltipText {
  opacity: 1;
}

.sidebar-icon {
  width: 25px;
  font-size: 1.25rem;
  display: flex !important;
  justify-content: center;
}

#sidebar ul li a:hover {
  color: #91d8f7;
}

.sidebar-icon:hover {
  color: #91d8f7;
}

#headerText {
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  position: absolute;
  color: white;
  display: flex;
  justify-content: center;
  top: 15%;
}

#headerDiv {
  display: flex;
  position: fixed;
  width: 100%;
  z-index: 1;
  height: 3rem;
  background: #444;
}

.slogan {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 600;
  background-clip: text;
  -webkit-background-clip: text;
  text-align: center;
  cursor: default;
  margin: 0 1rem;
}

.slogan-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.langBtn {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 20px;
  width: 100%;
  display: flex;
  align-items: center;
}
.langBtn:focus {
  outline: none;
}

/* 991.98px çözünürlük altındaki sayfa css */
@media (max-width: 991.98px) {
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
  }

  .overlay.show {
    display: block;
  }

  .sidebar.open + .overlay {
    display: block;
  }
  #headerText {
    display: flex;
  }
  .slogan {
    font-size: 0.75rem;
  }
  .sidebar.open,
  .toggle-btn.open {
    left: 0;
  }
  .sidebar.open {
    width: 290px;
  }
  .toggle-btn.open {
    width: 60px;
  }

  .sidebar.open ul {
    display: block;
  }

  .toggle-btn {
    position: relative;
    transition: none;
    z-index: 2;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -60px;
    z-index: 2;
    overflow: auto;
    margin-right: 0;
  }
  .slogan-nav {
    justify-content: end;
    right: 5px;
  }
}
