/* Basic styles for documentation layout */
body {
  background-color: #121416; /* Dark background consistent with main site */
  color: #f0f0f0; /* Light text */
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
}

.docs-container {
  display: flex;
  min-height: 100vh;
  height: 100vh; /* Set fixed viewport height */
  overflow: hidden; /* Prevent container itself from overflowing */
}

.docs-sidebar {
  width: 260px;
  background-color: #1a1d1f; /* Slightly lighter dark for sidebar */
  padding: 20px;
  border-right: 1px solid #2a2e31;
  position: fixed; /* Fixed sidebar */
  height: 100vh; /* Use viewport height */
  overflow-y: auto; /* Allow internal scrolling */

  /* Hide scrollbar for Chrome, Safari and Opera */
  &::-webkit-scrollbar {
    display: none;
  }

  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.docs-logo {
  margin-bottom: 30px;
  text-align: center; /* Center logo/title */
}

.docs-logo h1 {
  font-size: 1.8em;
  color: #f0f0f0;
  margin: 0;
}

.docs-logo h1 span {
  color: #0dafaf; /* Teal accent */
}

.docs-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-nav li a {
  display: block;
  color: #b0b0b0; /* Lighter grey for links */
  text-decoration: none;
  padding: 10px 15px;
  margin-bottom: 5px;
  border-radius: 4px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.docs-nav li a:hover {
  background-color: #2a2e31;
  color: #ffffff;
}

.docs-nav li a.active {
  background-color: #0dafaf; /* Teal for active link */
  color: #ffffff;
  font-weight: 500;
}

.docs-content {
  margin-left: 260px; /* Offset content to account for fixed sidebar */
  padding: 60px; /* Increased padding */
  flex-grow: 1;
  background-color: #121416;
  height: 100vh; /* Allow content area to fill viewport height */
  overflow-y: auto; /* Enable scrolling for content */
  box-sizing: border-box; /* Include padding in height calculation */

  /* Hide scrollbar for Chrome, Safari and Opera */
  &::-webkit-scrollbar {
    display: none;
  }

  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.docs-content h1,
.docs-content h2,
.docs-content h3 {
  color: #ffffff;
  border-bottom: 1px solid #2a2e31;
  padding-bottom: 10px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.docs-content h1 {
  margin-top: 0; /* No top margin for the main page title */
}

.docs-content p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.docs-content a {
  color: #0dafaf; /* Teal links */
  text-decoration: none;
}

.docs-content a:hover {
  text-decoration: underline;
}

.docs-content code {
  background-color: #2a2e31;
  color: #f0f0f0;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
}

.docs-content ol,
.docs-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.info-box,
.warning-box {
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
  border-left: 4px solid;
}

.info-box {
  background-color: rgba(13, 175, 175, 0.1); /* Teal background */
  border-color: #0dafaf;
}

.warning-box {
  background-color: rgba(255, 165, 0, 0.1); /* Orange background */
  border-color: orange;
}

.info-box p:last-child,
.warning-box p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .docs-container {
    height: auto; /* Allow container height to adjust */
    overflow: visible; /* Reset overflow */
  }

  .docs-sidebar {
    position: relative; /* Change to relative for smaller screens */
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #2a2e31;
  }

  .docs-content {
    margin-left: 0;
    padding: 20px;
    height: auto; /* Allow content height to adjust */
    overflow-y: visible; /* Reset overflow */
    /* Remove scrollbar hiding for mobile if needed */
    &::-webkit-scrollbar {
      display: initial; /* Or however you want to handle mobile */
    }
    -ms-overflow-style: auto;
    scrollbar-width: auto;
  }
}
