*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

.docs-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.docs-container.dark {
  color: #e0e0e0;
  background-color: #1a1a1a;
}

.docs-container.light {
  color: #333;
  background-color: #f8f9fa;
}

/* Mobile Header */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.dark .mobile-header {
  background-color: #2d2d2d;
  border-bottom: 1px solid #444;
}

.menu-toggle, .close-search, .sidebar-toggle, .dark-mode-toggle {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

.mobile-logo, .logo {
  font-weight: bold;
  font-size: 1.2rem;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background-color: #fff;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  transition: width 0.3s ease;
}

.dark .sidebar {
  background-color: #2d2d2d;
  border-right: 1px solid #444;
}

.sidebar.closed {
  width: 60px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.dark .sidebar-header {
  border-bottom: 1px solid #444;
}

.search-container {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

.dark .search-container {
  border-bottom: 1px solid #444;
}

.search-icon {
  margin-right: 8px;
  color: #777;
}

.search-input {
  border: none;
  background: none;
  width: 100%;
  padding: 4px;
  font-size: 0.9rem;
  color: inherit;
  outline: none;
}

.search-input::placeholder {
  color: #777;
}

/* Search Results */
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

.dark .search-results {
  background-color: #2d2d2d;
  border: 1px solid #444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
}

.dark .search-results-header {
  border-bottom: 1px solid #444;
}

.search-results-header h3 {
  font-size: 0.9rem;
  margin: 0;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.dark .search-result-item {
  border-bottom: 1px solid #3d3d3d;
}

.search-result-item:hover {
  background-color: #f5f5f5;
}

.dark .search-result-item:hover {
  background-color: #3d3d3d;
}

.result-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.result-content {
  font-size: 0.9rem;
  color: #666;
}

.dark .result-content {
  color: #bbb;
}

mark {
  background-color: #fff2cc;
  color: #333;
  padding: 0 2px;
  border-radius: 2px;
}

.dark mark {
  background-color: #634d0e;
  color: #f0f0f0;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sidebar.closed .sidebar-content,
.sidebar.closed .search-container,
.sidebar.closed .logo {
  display: none;
}

.section-header {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.section-header:hover {
  background-color: #f0f0f0;
}

.dark .section-header:hover {
  background-color: #3d3d3d;
}

.section-header svg {
  margin-right: 8px;
}

.section-items {
  margin-left: 16px;
}

.section-item {
  padding: 6px 16px 6px 28px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.2s;
  border-radius: 4px;
  margin: 2px 8px;
}

.section-item:hover {
  background-color: #f0f0f0;
}

.dark .section-item:hover {
  background-color: #3d3d3d;
}

.section-item.active {
  background-color: #e0f2fe;
  color: #0284c7;
  font-weight: 500;
}

.dark .section-item.active {
  background-color: #1e3a5f;
  color: #7dd3fc;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 24px 32px;
  max-width: 900px;
  margin: 0 auto;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.dark .content-header {
  border-bottom: 1px solid #444;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
}

.dark-mode-toggle {
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.dark-mode-toggle:hover {
  background-color: #f0f0f0;
}

.dark .dark-mode-toggle:hover {
  background-color: #3d3d3d;
}

.content-body {
  font-size: 1rem;
}

.content-body h1 {
  font-size: 1.8rem;
  margin: 1.5em 0 0.8em;
  font-weight: 700;
}

.content-body h2 {
  font-size: 1.5rem;
  margin: 1.4em 0 0.6em;
  font-weight: 600;
}

.content-body h3 {
  font-size: 1.2rem;
  margin: 1.2em 0 0.5em;
  font-weight: 600;
}

.content-body p {
  margin-bottom: 1em;
}

.content-body ul {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.content-body li {
  margin-bottom: 0.5em;
}

.content-body .markdown-list {
  list-style-type: disc;
  padding-left: 20px;
  margin: 10px 0;
}

.code-block {
  margin: 1.5em 0;
  background-color: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
}

.dark .code-block {
  background-color: #2d2d2d;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background-color: #e0e0e0;
  font-size: 0.9rem;
}

.dark .code-header {
  background-color: #444;
}

.code-language {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
}

.dark .code-language {
  color: #bbb;
}

.copy-button {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: #0284c7;
  cursor: pointer;
}

.dark .copy-button {
  color: #7dd3fc;
}

.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.doc-link {
  color: #0284c7;
  text-decoration: none;
}

.dark .doc-link {
  color: #7dd3fc;
}

.doc-link:hover {
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    position
