.layout .sidebar {
  width: 250px;
  background-color: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  padding: 1em;
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Reset list styles */
.layout .sidebar nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Documentation path items */
.layout .docs-path-item {
  margin-bottom: 1.5rem;
}

/* Path labels */
.layout .docs-path-label {
  font-weight: 700;
  font-size: 1.2rem;
  color: #333333;
  margin-bottom: 1rem;
  border-bottom: 2px solid #2c3e50;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: block;
}

/* Module lists - creating the tree structure */
.layout .docs-module-list {
  margin-top: 0.3rem;
  padding-left: 1rem;
  position: relative;
}

/* Tree connection lines */
.layout .docs-module-list::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0.5rem;
  width: 1px;
  background-color: #e0e0e0;
}

/* Module items */
.layout .docs-module-item {
  position: relative;
  margin-bottom: 0.2rem;
}

/* Tree branch lines */
.layout .docs-module-item::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 0.6rem;
  width: 0.8rem;
  height: 1px;
  background-color: #e0e0e0;
}

/* Last item - end the vertical line */
.layout .docs-module-item:last-child::after {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 0.6rem;
  bottom: -1rem;
  width: 1px;
  background-color: #f8f9fa;
}

/* Module links - styled like post labels */
.layout .docs-module-item a {
  color: #2c3e50;
  text-decoration: none;
  display: block;
  padding: 0.2rem 0;
  transition: color 0.2s ease-in-out;
  font-weight: normal;
  position: relative;
  padding-left: 0.5rem;
}

.layout .docs-module-item a:hover {
  color: #1a73e8;
  text-decoration: underline;
}

.layout .docs-module-item.active a {
  font-weight: 600;
  color: #1a73e8;
}

/* Details/summary styling */
.layout .docs-path-item details > summary {
  list-style: none;
}

.layout .docs-path-item details > summary::-webkit-details-marker {
  display: none;
}
/* Responsive design */
@media (max-width: 900px) {
  .layout .sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .layout .sidebar {
    width: 100%;
  }
}


