/* Documentation styles */
.documentation-header {
  background: var(--primary-color);
  color: var(--text-white);
  padding: 1rem 0;
}

.documentation-container {
  display: flex;
  min-height: calc(100vh - 120px);
}

.sidebar {
  width: 280px;
  background-color: var(--bg-light);
  border-right: 1px solid #ddd;
  position: sticky;
  top: 0;
  height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 1rem 0;
}

.sidebar-header {
  padding: 0 1.5rem 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.docs-menu {
  padding: 0 1rem;
}

.docs-menu li {
  margin-bottom: 0.5rem;
}

.docs-menu li a {
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--text-color);
}

.docs-menu li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.docs-menu li a.active {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.docs-menu ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.content {
  flex: 1;
  padding: 2rem;
  max-width: 900px;
}

.doc-section {
  margin-bottom: 4rem;
  scroll-margin-top: 2rem;
}

.doc-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.doc-section h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.doc-section h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
}

.version {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.intro-text {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.intro-text p {
  margin-bottom: 1rem;
}

.key-features ul {
  padding-left: 2rem;
  list-style-type: disc;
}

.key-features li {
  margin-bottom: 0.5rem;
}

.prerequisites-doc {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.prerequisites-doc ul {
  padding-left: 2rem;
  list-style-type: disc;
}

.installation-methods {
  margin-bottom: 2rem;
}

.installation-method {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.installation-method:last-child {
  border-bottom: none;
}

.verification {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.commands-table, .options-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
}

.commands-table th, .options-table th {
  background-color: var(--primary-color);
  color: white;
  text-align: left;
  padding: 10px;
}

.commands-table td, .options-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.commands-table tr:hover, .options-table tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.help-command {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 2rem;
}

.basic-usage {
  margin-bottom: 2rem;
}

.faq-item {
  margin-bottom: 2rem;
}

.faq-item h3 {
  cursor: pointer;
  padding: 1rem;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  position: relative;
}

.faq-item h3::after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 1rem;
  transition: transform 0.3s ease;
}

.faq-item.active h3::after {
  transform: rotate(180deg);
}

.answer {
  padding: 0 1rem;
  margin-top: 1rem;
}

.answer .code-block {
  margin: 1rem 0;
}

/* Active link indicator */
.nav-links a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .documentation-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
  }

  .content {
    padding: 1.5rem;
  }

  .commands-table, .options-table {
    display: block;
    overflow-x: auto;
  }

  .doc-section h1 {
    font-size: 2rem;
  }

  .doc-section h2 {
    font-size: 1.7rem;
  }

  .doc-section h3 {
    font-size: 1.4rem;
  }
}
