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

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

.docs-layout {
  display: flex;
  min-height: 100vh;
}

.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid #e2e8f0;
  padding: 1.5rem;
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: 100vh;
}

.docs-content {
  flex: 1;
  max-width: 800px;
  padding: 2rem 3rem;
}

.docs-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.docs-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.docs-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
}

code {
  background: #f0f0f0;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre code {
  background: none;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

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

th {
  background: #f8fafc;
  font-weight: 600;
}

.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0;
  background: #fff;
}
.card__image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}
.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.75rem 1rem 0;
}
.card__body {
  padding: 1rem;
}

.grid {
  margin: 1rem 0;
}

.badge {
  display: inline-block;
  padding: 0.1em 0.5em;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
}

.badge--default { background: #e5e5e5; color: #333; }
.badge--warning { background: #fff3cd; color: #856404; }
.badge--info    { background: #d1ecf1; color: #0c5460; }
.badge--success { background: #d4edda; color: #155724; }
.badge--error   { background: #f8d7da; color: #721c24; }

.chart {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}
.chart__label {
  font-size: 0.85rem;
  color: #555;
  min-width: 60px;
  text-align: right;
}
.chart__track {
  flex: 1;
  height: 1.5rem;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}
.chart__fill {
  height: 100%;
  background: #007bff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 0;
  transition: width 0.3s ease;
}

.graph {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0;
  min-height: 100px;
}
.graph__bar-container {
  flex: 1;
  width: 100%;
  max-width: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 150px;
}
.graph__bar {
  width: 100%;
  max-width: 40px;
  background: #28a745;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.25rem;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  transition: height 0.3s ease;
}
.graph__label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
  text-align: center;
}

.metric {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  min-width: 80px;
}
.metric__value {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
}
.metric__label {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.callout {
  border-left: 4px solid;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.callout--note    { border-color: #007bff; background: #f0f7ff; }
.callout--warning { border-color: #ffc107; background: #fffdf0; }
.callout--tip     { border-color: #28a745; background: #f0fff4; }
.callout--error   { border-color: #dc3545; background: #fff5f5; }

.callout__title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.counter button {
  width: 2rem;
  height: 2rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 1rem;
}

.counter button:hover {
  background: #e5e5e5;
}

.counter__value {
  min-width: 2rem;
  text-align: center;
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav a {
  text-decoration: none;
  color: #334155;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  display: block;
}

.sidebar-nav a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sidebar-nav a.active {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 600;
}

.sidebar-nav .sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  padding: 0.75rem 0.5rem 0.25rem;
}

.sidebar-nav .sidebar-item {
  padding-left: 0.75rem;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  gap: 1rem;
}

.prev-next a {
  text-decoration: none;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  flex: 1;
  max-width: 50%;
}

.prev-next a:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.prev-next .prev-label,
.prev-next .next-label {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
}

.prev-next .prev-title,
.prev-next .next-title {
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 500;
}

.prev-next .prev {
  text-align: left;
}

.prev-next .next {
  text-align: right;
  margin-left: auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  color: #64748b;
}

.breadcrumbs a {
  text-decoration: none;
  color: #64748b;
}

.breadcrumbs a:hover {
  color: #0f172a;
}

.breadcrumbs .separator {
  color: #cbd5e1;
  user-select: none;
}

.breadcrumbs .current {
  color: #0f172a;
  font-weight: 500;
}

