div.sidebar {
  --sidebar-accent: #956640;
  --sidebar-accent-dark: #7e5432;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e9e4de;
  --sidebar-text: #2f2f2f;
  --sidebar-text-soft: #6b6b6b;
  --sidebar-hover: #f7f3ef;
  --sidebar-sub-bg: #fbfaf8;
  --sidebar-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  font-size: 14px;
  margin-bottom: 20px;
  background: var(--sidebar-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sidebar-shadow);
}

/* Başlık */
div.sidebar a.navTitle {
  display: block;
  padding: 16px 18px;
  background: linear-gradient(
    135deg,
    var(--sidebar-accent) 0%,
    var(--sidebar-accent-dark) 100%
  );
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  text-decoration: none;
}

/* Genel UL */
div.sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Genel LI */
div.sidebar ul li {
  position: relative;
  display: block;
}

/* Genel link yapısı */
div.sidebar ul li a {
  position: relative;
  display: block;
  padding: 13px 48px 13px 16px;
  color: var(--sidebar-text);
  background: #ffffff;
  border-bottom: 1px solid #f1ece7;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.45;
  transition: all 0.25s ease;
}

/* Menü öğesi ön çizgi efekti */
div.sidebar ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 0;
  border-radius: 0 6px 6px 0;
  background: var(--sidebar-accent);
  transition: width 0.25s ease;
}

/* Hover */
div.sidebar ul li a:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-accent-dark);
  text-decoration: none;
  padding-left: 20px;
}

div.sidebar ul li a:hover::before {
  width: 4px;
}

/* Aktif link */
a.navActive {
  background: #f8f2ec !important;
  color: var(--sidebar-accent-dark) !important;
  font-weight: 700 !important;
  border-left: 0 !important;
}

a.navActive::before {
  width: 4px !important;
}

/* Alt menü */
div.sidebar ul.subNav {
  display: none;
  position: relative;
  margin: 0;
  padding: 6px 0 6px 14px; /* Sınırsız alt kategori için asıl mantık burada */
  background: var(--sidebar-sub-bg);
}

/* Alt menü sol bağlantı çizgisi */
div.sidebar ul.subNav::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #e5d7c9;
}

/* Alt menü içindeki item */
div.sidebar ul.subNav li {
  position: relative;
}

/* Alt menü linkleri */
div.sidebar ul.subNav li a {
  background: transparent;
  color: var(--sidebar-text-soft);
  border-bottom: 1px solid #efe8e1;
  padding: 11px 44px 11px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px 0 0 10px;
  margin-left: 10px;
}

/* Alt menü item yatay bağ çizgisi */
div.sidebar ul.subNav li a::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: #e5d7c9;
  transform: translateY(-50%);
}

div.sidebar ul.subNav li a:hover {
  background: #f4ede6;
  color: var(--sidebar-accent-dark);
  padding-left: 22px;
}

/* Daha derin alt kategoriler */
div.sidebar ul.subNav ul.subNav {
  margin-top: 4px;
  padding-left: 14px;
  background: transparent;
}

/* En alt kırıntı görünümü */
div.sidebar ul.subNav ul.subNav li a {
  font-size: 12.8px;
  color: #7a736d;
}

/* Açma kapama butonu */
.menuplus {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  display: block;
  margin: 0;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid #e7dbcf;
  background: #f8f3ee;
  color: var(--sidebar-accent-dark);
  font-size: 16px;
  font-weight: 700;
  transition: all 0.25s ease;
  z-index: 2;
}

.menuplus:hover {
  background: var(--sidebar-accent);
  color: #ffffff;
  border-color: var(--sidebar-accent);
  box-shadow: 0 8px 18px rgba(149, 102, 64, 0.22);
}

/* Eğer JS ile open class eklenirse */
.menuplus.open {
  background: var(--sidebar-accent);
  color: #fff;
  border-color: var(--sidebar-accent);
  transform: translateY(-50%) rotate(45deg);
}

/* Son elemanda border kaldır */
div.sidebar ul li:last-child > a {
  border-bottom: 0;
}

/* Mobil görünüm */
@media (max-width: 767.98px) {
  div.sidebar {
    font-size: 13px;
    border-radius: 14px;
  }

  div.sidebar a.navTitle {
    padding: 14px 16px;
    font-size: 14px;
  }

  div.sidebar ul li a {
    padding: 12px 44px 12px 14px;
    font-size: 13px;
  }

  div.sidebar ul.subNav {
    padding-left: 10px;
  }

  div.sidebar ul.subNav::before {
    left: 10px;
  }

  div.sidebar ul.subNav li a {
    margin-left: 8px;
    padding: 10px 40px 10px 14px;
  }

  .menuplus {
    width: 26px;
    height: 26px;
    line-height: 26px;
    right: 6px;
    font-size: 14px;
  }
}
