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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1a202c;
  line-height: 1.6;
  background: #f8faff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #e2e8f0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #667eea;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-outline:hover {
  background: #667eea;
  color: white;
}

/* Docs Layout */
.docs-layout {
  display: flex;
  padding-top: 70px;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid #e2e8f0;
  position: fixed;
  top: 70px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
}

.sidebar-content {
  padding: 2rem 1.5rem;
}

.sidebar h4 {
  color: #1a202c;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

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

.sidebar ul {
  list-style: none;
}

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

.sidebar a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar a:hover {
  background: #f0f4ff;
  color: #667eea;
}

.sidebar a.active {
  background: #f0f4ff;
  color: #667eea;
  font-weight: 500;
}

/* Main Content */
.docs-content {
  flex: 1;
  margin-left: 260px;
  padding: 3rem 4rem;
  max-width: 900px;
}

.docs-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1a202c;
}

.docs-content h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  color: #1a202c;
}

.docs-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #2d3748;
}

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

.docs-content .lead {
  font-size: 1.25rem;
  color: #718096;
  margin-bottom: 2rem;
}

.docs-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.docs-content ul li {
  margin-bottom: 0.5rem;
  color: #4a5568;
}

.docs-content a {
  color: #667eea;
  text-decoration: none;
}

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

.docs-content code {
  background: #edf2f7;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  color: #e53e3e;
}

.docs-content section {
  scroll-margin-top: 100px;
}

/* Info/Warning Boxes */
.info-box,
.warning-box {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.info-box {
  background: #ebf8ff;
  border-left: 4px solid #4299e1;
}

.info-box code {
  background: #bee3f8;
}

.warning-box {
  background: #fffaf0;
  border-left: 4px solid #ed8936;
}

.warning-box strong {
  color: #c05621;
}

.warning-box p {
  margin: 0.5rem 0 0;
}

/* Code Blocks */
.code-block {
  background: #1a202c;
  border-radius: 8px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #2d3748;
  font-size: 0.875rem;
  color: #a0aec0;
}

.code-block pre {
  padding: 1rem 1.5rem;
  margin: 0;
  overflow-x: auto;
}

.code-block code {
  background: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Methods & Status */
.method {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.method.get {
  background: #48bb78;
  color: white;
}

.method.post {
  background: #4299e1;
  color: white;
}

.method.delete {
  background: #f56565;
  color: white;
}

.status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status.success {
  background: #c6f6d5;
  color: #22543d;
}

.status.error {
  background: #fed7d7;
  color: #822727;
}

/* Endpoint */
.endpoint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 1rem 0;
}

.endpoint code {
  background: none;
  color: #2d3748;
  font-size: 1rem;
}

/* Tables */
.params-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.params-table th,
.params-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.params-table th {
  background: #f7fafc;
  font-weight: 600;
  color: #4a5568;
}

.params-table td {
  color: #4a5568;
}

.params-table code {
  font-size: 0.8rem;
}

.note {
  font-size: 0.875rem;
  color: #718096;
  font-style: italic;
}

/* Footer */
.footer {
  background: #1a202c;
  color: #a0aec0;
  padding: 2rem;
  text-align: center;
  margin-left: 260px;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }

  .docs-content {
    margin-left: 0;
    padding: 2rem;
  }

  .footer {
    margin-left: 0;
  }
}
