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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

.header {
  background: #2d3748;
  color: white;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4fd1c7;
}

.search-box {
  flex: 1;
  max-width: 400px;
  margin: 0 2rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #4a5568;
  color: white;
  font-size: 0.9rem;
}

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

.container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

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

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #718096;
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.sidebar-item {
  display: block;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  color: #4a5568;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.sidebar-item:hover {
  background: #f7fafc;
  color: #2d3748;
}

.sidebar-item.active {
  background: #ebf8ff;
  color: #2b6cb0;
  border-left-color: #4299e1;
  font-weight: 500;
}

.main-content {
  flex: 1;
  padding: 2rem;
  background: white;
  margin: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.doc-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.doc-title {
  font-size: 2.5rem;
  font-weight: 300;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.doc-subtitle {
  color: #718096;
  font-size: 1.1rem;
}

.doc-section {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.doc-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
h2,
h3 {
  color: #2d3748;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: #4a5568;
}

.code-block {
  background: #1a202c;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 6px;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.9rem;
  margin: 1rem 0;
  overflow-x: auto;
  border-left: 4px solid #4fd1c7;
}

.inline-code {
  background: #edf2f7;
  color: #2d3748;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.9em;
}

.command-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.command-item {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
  transition: all 0.2s;
}

.command-item:hover {
  border-color: #4299e1;
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.1);
}

.command-name {
  font-family: "Monaco", "Menlo", monospace;
  font-weight: bold;
  color: #2b6cb0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.command-desc {
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.command-example {
  background: #1a202c;
  color: #4fd1c7;
  padding: 0.5rem;
  border-radius: 3px;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.8rem;
}

.note {
  background: #ebf8ff;
  border-left: 4px solid #4299e1;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

.note-title {
  font-weight: 600;
  color: #2b6cb0;
  margin-bottom: 0.5rem;
}

.toc {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

.toc-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin: 0.25rem 0;
}

.toc-list a {
  color: #4299e1;
  text-decoration: none;
}

.toc-list a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
  }

  .main-content {
    margin: 0;
    border-radius: 0;
  }
}

.logo a {
  color: #4fd1c7;
  text-decoration: none;
}
