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

body,
.doc-shell {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background-color: #f8fafc;
  color: #334155;
  line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-logo a {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  color: #64748b;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0284c7;
}

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

.content-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

h1,
h2,
h3 {
  color: #0f172a;
  margin-bottom: 0.9rem;
  line-height: 1.25;
}

h1 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

p,
li {
  color: #475569;
  font-size: 1rem;
}

p,
ul,
ol,
table,
pre,
hr {
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

a {
  color: #0284c7;
}

code {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.9em;
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  border: 1px solid #1e293b;
  padding: 1rem;
  overflow-x: auto;
}

pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
}

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

th {
  background: #f8fafc;
  color: #0f172a;
}

hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
}

body[data-page="apis"] .main-container.api-layout {
  max-width: 1440px;
}

body[data-page="apis"] .api-docs-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: visible;
}

body[data-page="apis"] .api-sidebar {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 1.35rem 0.85rem 1.5rem;
  transition: box-shadow 0.2s ease;
}

body[data-page="apis"] .api-sidebar.is-scrolled {
  box-shadow: 4px 0 18px rgba(15, 23, 42, 0.05);
}

body[data-page="apis"] .api-sidebar::-webkit-scrollbar {
  width: 6px;
}

body[data-page="apis"] .api-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

body[data-page="apis"] .api-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body[data-page="apis"] .api-sidebar-title {
  margin: 0 0 0.35rem;
  padding: 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

body[data-page="apis"] .api-sidebar-overview {
  display: block;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.55rem 0.45rem 0.65rem;
  border-radius: 0 8px 8px 0;
  border: 0;
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

body[data-page="apis"] .api-sidebar-section {
  padding-top: 0.35rem;
}

body[data-page="apis"] .api-sidebar-section + .api-sidebar-section {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

body[data-page="apis"] .api-sidebar-group {
  display: block;
  margin: 0 0 0.45rem;
  padding: 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

body[data-page="apis"] .api-sidebar-group:hover {
  color: #0284c7;
}

body[data-page="apis"] .api-sidebar-group.active {
  color: #0284c7;
}

body[data-page="apis"] .api-sidebar-overview:hover,
body[data-page="apis"] .api-sidebar li a:hover {
  color: #0284c7;
  background: #f8fafc;
}

body[data-page="apis"] .api-sidebar-overview.active,
body[data-page="apis"] .api-sidebar li a.active {
  color: #0284c7;
  background: #f0f9ff;
  box-shadow: inset 3px 0 0 #0284c7;
  font-weight: 500;
}

body[data-page="apis"] .api-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body[data-page="apis"] .api-sidebar li + li {
  margin-top: 0.35rem;
}

body[data-page="apis"] .api-sidebar li a {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.35;
  padding: 0.5rem 0.55rem 0.5rem 0.65rem;
  border-radius: 0 8px 8px 0;
  border: 0;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

body[data-page="apis"] .api-nav-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  margin-top: 0.05rem;
  padding: 0.18rem 0.35rem;
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  flex-shrink: 0;
}

body[data-page="apis"] .api-nav-method-post {
  background: #16a34a;
}

body[data-page="apis"] .api-nav-method-get {
  background: #0284c7;
}

body[data-page="apis"] .api-nav-method-delete {
  background: #dc2626;
}

body[data-page="apis"] .api-nav-label {
  flex: 1;
}

body[data-page="apis"] .api-main {
  padding: 2rem 2.25rem;
}

body[data-page="apis"] .api-intro {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

body[data-page="apis"] .api-version {
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 500;
}

body[data-page="apis"] .api-tag {
  margin-bottom: 2rem;
}

body[data-page="apis"] .api-tag > h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

body[data-page="apis"] .api-operation {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  scroll-margin-top: 5.5rem;
}

body[data-page="apis"] .api-operation:last-child {
  border-bottom: 0;
}

body[data-page="apis"] .api-tag,
body[data-page="apis"] .api-intro {
  scroll-margin-top: 5.5rem;
}

body[data-page="apis"] .api-operation-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

body[data-page="apis"] .api-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
}

body[data-page="apis"] .api-method-post {
  background: #16a34a;
}

body[data-page="apis"] .api-method-get {
  background: #0284c7;
}

body[data-page="apis"] .api-method-delete {
  background: #dc2626;
}

body[data-page="apis"] .api-path {
  font-size: 0.95rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}

body[data-page="apis"] .api-description {
  margin-bottom: 1rem;
}

body[data-page="apis"] .api-description table {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

body[data-page="apis"] .api-params-table td:first-child,
body[data-page="apis"] .api-validations-table td:first-child {
  width: 11rem;
  white-space: nowrap;
}

body[data-page="apis"] .api-params-table th:nth-child(2),
body[data-page="apis"] .api-params-table td:nth-child(2) {
  width: 6rem;
}

body[data-page="apis"] .api-auth {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

body[data-page="apis"] .api-response {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.75rem;
}

body[data-page="apis"] .api-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background: #16a34a;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }

  .main-container {
    padding: 2rem 1rem;
  }

  .content-section {
    padding: 1.25rem;
  }

  body[data-page="apis"] .api-docs-shell {
    grid-template-columns: 1fr;
  }

  body[data-page="apis"] .api-sidebar {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
  }

  body[data-page="apis"] .api-main {
    padding: 1.25rem;
  }
}
