/* Docs Layout Styles */
.docs-layout {
  padding-top: 80px; /* Space for fixed navbar */
}

.docs-container {
  display: flex;
  min-height: calc(100vh - 80px);
  background-color: #f8f9fa;
}

.docs-sidebar {
  width: 280px;
  background-color: white;
  border-right: 1px solid #e9ecef;
  padding: 2rem 1rem;
  position: fixed;
  height: calc(100vh - 80px);
  overflow-y: auto;
  top: 80px;
}

.docs-content {
  flex: 1;
  margin-left: 280px;
  padding: 3rem 4rem;
  max-width: 900px;
}

.docs-sidebar h3 {
  color: #6c757d;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.docs-sidebar h3:first-child {
  margin-top: 0;
}

.docs-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.docs-sidebar li {
  margin-bottom: 0.25rem;
}

.docs-sidebar a {
  color: #495057;
  text-decoration: none;
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.docs-sidebar a:hover {
  background-color: #f8f9fa;
  color: #7C3AED;
}

.docs-sidebar a.active {
  background-color: #7C3AED;
  color: white;
}

/* Markdown Styles */
.markdown-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #212529;
}

.markdown-body h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.markdown-body h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.markdown-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.markdown-body p {
  margin-bottom: 1rem;
}

.markdown-body pre {
  background-color: #f6f8fa;
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.markdown-body code {
  background-color: #f6f8fa;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 85%;
}

.markdown-body pre code {
  background-color: transparent;
  padding: 0;
}

.markdown-body blockquote {
  border-left: 4px solid #7C3AED;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #6c757d;
}

.markdown-body ul, .markdown-body ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.markdown-body th, .markdown-body td {
  border: 1px solid #e9ecef;
  padding: 0.75rem;
  text-align: left;
}

.markdown-body th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .docs-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  
  .docs-sidebar.open {
    transform: translateX(0);
  }
  
  .docs-content {
    margin-left: 0;
    padding: 2rem 1rem;
  }
}

/* Syntax Highlighting */
.highlight {
  background-color: #f6f8fa;
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.highlight pre {
  margin: 0;
  padding: 0;
  background-color: transparent;
}

.highlight code {
  background-color: transparent;
  padding: 0;
}

/* Rouge theme */
.highlight .k { color: #d73a49; font-weight: bold; }
.highlight .kd { color: #d73a49; font-weight: bold; }
.highlight .kn { color: #d73a49; font-weight: bold; }
.highlight .kp { color: #d73a49; font-weight: bold; }
.highlight .kr { color: #d73a49; font-weight: bold; }
.highlight .kt { color: #d73a49; font-weight: bold; }
.highlight .n { color: #24292e; }
.highlight .na { color: #005cc5; }
.highlight .nb { color: #005cc5; }
.highlight .nc { color: #6f42c1; font-weight: bold; }
.highlight .no { color: #005cc5; }
.highlight .nd { color: #6f42c1; font-weight: bold; }
.highlight .ni { color: #005cc5; }
.highlight .ne { color: #6f42c1; font-weight: bold; }
.highlight .nf { color: #6f42c1; font-weight: bold; }
.highlight .nl { color: #005cc5; }
.highlight .nn { color: #24292e; }
.highlight .nt { color: #22863a; }
.highlight .nv { color: #005cc5; }
.highlight .ow { color: #d73a49; font-weight: bold; }
.highlight .w { color: #24292e; }
.highlight .mb { color: #005cc5; }
.highlight .mf { color: #005cc5; }
.highlight .mh { color: #005cc5; }
.highlight .mi { color: #005cc5; }
.highlight .mo { color: #005cc5; }
.highlight .s { color: #032f62; }
.highlight .s1 { color: #032f62; }
.highlight .s2 { color: #032f62; }
.highlight .sb { color: #032f62; }
.highlight .sc { color: #032f62; }
.highlight .sd { color: #032f62; }
.highlight .se { color: #032f62; }
.highlight .sh { color: #032f62; }
.highlight .si { color: #005cc5; }
.highlight .sx { color: #032f62; }
.highlight .sr { color: #032f62; }
.highlight .ss { color: #005cc5; }
.highlight .c { color: #6a737d; font-style: italic; }
.highlight .c1 { color: #6a737d; font-style: italic; }
.highlight .cm { color: #6a737d; font-style: italic; }
.highlight .cp { color: #6a737d; font-style: italic; }
.highlight .cs { color: #6a737d; font-style: italic; }

/* 404 Not Found */
.not-found-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 0;
  text-align: center;
}

.not-found-container h1 {
  font-size: 3rem;
  color: #7C3AED;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 3rem;
}

.suggestions {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: left;
}

.suggestions h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #212529;
}

.suggestions ul {
  list-style: none;
  padding: 0;
}

.suggestions li {
  margin-bottom: 0.5rem;
}

.suggestions a {
  color: #7C3AED;
  text-decoration: none;
  font-weight: 500;
}

.suggestions a:hover {
  text-decoration: underline;
}