/* Docs Page Styles - Production Grade */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #050505;
  color: #ffffff;
  overflow-x: hidden;
}

/* Layout Container */
.flex {
  display: flex;
}

.h-screen {
  height: 100vh;
}

.flex-col {
  flex-direction: column;
}

.bg-background {
  background-color: #050505;
}

.border-border {
  border-color: #2a2a2a;
}

.bg-card {
  background-color: #050505;
}

/* Header */
header {
  position: sticky;
  top: 0;
  width: 100%;
  border-bottom: 1px solid #2a2a2a;
  background-color: #050505;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  height: 48px;
  width: 100%;
  align-items: center;
  padding: 0 1.5rem;
  gap: 2rem;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .header-container {
    padding-right: 0;
  }
}

@media (max-width: 1023px) {
  .header-container {
    gap: 1rem;
    padding: 0 1.25rem;
  }
}

/* Header Left - Logo and Nav */
.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 0 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0.5rem 0;
}

header .logo-img,
.header-left .logo-img,
.logo-link .logo-img {
  height: 18px !important;
  width: auto !important;
  display: block;
  max-height: 18px !important;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  color: #7d8187;
  border-radius: 0.125rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link.active {
  color: #ffffff;
}

/* White Slider Indicator - Single sliding element */
.header-nav::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: var(--slider-left, 0);
  width: var(--slider-width, 0);
  height: 2px;
  background-color: #ffffff;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  z-index: 1;
}

.header-nav.has-active::after {
  opacity: 1;
}

/* Hide individual nav-slider divs */
.nav-slider {
  display: none;
}

/* Header Center - Search */
.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 0%;
  min-width: 0;
}

@media (max-width: 1023px) {
  .header-center {
    display: none;
  }
}

/* Mobile search button - hidden on desktop by default */
.search-btn-mobile {
  display: none !important;
}

@media (max-width: 1023px) {
  .search-btn-mobile {
    display: flex !important;
  }
}

.search-btn {
  position: relative;
  height: 36px;
  width: 480px;
  max-width: 100%;
  display: flex;
  align-items: center;
  border-radius: 0.375rem;
  border: 1px solid #2a2a2a;
  background-color: #050505;
  padding-left: 2.25rem;
  padding-right: 4rem;
  text-align: left;
  font-size: 0.875rem;
  color: #7d8187;
  cursor: pointer;
  transition: background-color 0.2s ease;
  overflow: hidden;
}

.search-btn .search-btn-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-btn:hover {
  background-color: rgba(42, 42, 42, 0.5);
  border-color: rgba(125, 129, 135, 0.4);
  color: #ffffff;
}

.search-btn:hover svg {
  color: #ffffff;
}

.search-btn svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  height: 1rem;
  width: 1rem;
  color: #7d8187;
}

.search-kbd {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: none;
  height: 1.25rem;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.25rem;
  border: 1px solid #2a2a2a;
  background-color: #2a2a2a;
  padding: 0 0.375rem;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 500;
}

@media (min-width: 640px) {
  .search-kbd {
    display: flex;
  }
  
  .search-btn {
    padding-right: 4rem;
  }
}

/* Header Right - Dashboard */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 0;
  gap: 0.5rem;
}

/* Hide mobile search button on desktop */
.header-right .search-btn-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .header-right {
    gap: 0.5rem;
  }
  
  /* Show mobile search button only on mobile */
  .header-right .search-btn-mobile {
    display: flex;
  }
}

/* Sidebar Toggle Button - Match menu-toggle styling from other pages */
.sidebar-toggle {
  display: none;
  position: relative;
  width: auto;
  height: auto;
  min-width: 43.5px;
  min-height: 43.5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.625rem;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 4px;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.sidebar-toggle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  min-width: 43.5px;
  min-height: 43.5px;
  border-radius: 50%;
  border: 0.5px solid rgba(125, 129, 135, 0.25);
  background: transparent;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: -1;
  box-sizing: border-box;
}

.sidebar-toggle:hover {
  opacity: 1;
}

.sidebar-toggle:hover::before {
  background: rgba(125, 129, 135, 0.1);
  border-color: rgba(125, 129, 135, 0.4);
}

.sidebar-toggle .hamburger-line {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle .hamburger-line:nth-child(1) {
  transform: translate(-50%, calc(-50% - 4px));
}

.sidebar-toggle .hamburger-line:nth-child(2) {
  transform: translate(-50%, calc(-50% + 4px));
}

.sidebar-toggle.active .hamburger-line:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sidebar-toggle.active .hamburger-line:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 1023px) {
  .sidebar-toggle {
    display: flex;
  }
}

/* Sidebar */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background-color: #050505;
  border-right: 1px solid #2a2a2a;
  transition: width 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .sidebar {
    display: block;
  }
  
  .sidebar.collapsed {
    width: 0;
    border-right: none;
  }
  
  .sidebar.collapsed .sidebar-body,
  .sidebar.collapsed .sidebar-title {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 1023px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 48px;
    height: calc(100vh - 48px);
    z-index: 45;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    width: 280px;
  }

  .sidebar.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }
  
  @media (max-width: 640px) {
    .sidebar {
      top: 44px;
      height: calc(100vh - 44px);
      width: 85%;
      max-width: 280px;
    }
    
    .sidebar-body {
      padding: 2.25rem 1.25rem 1.25rem 1.25rem;
    }
    
    .sidebar-body h2 {
      font-size: 14px;
      margin-bottom: 0.75rem;
    }
    
    .sidebar-body a {
      height: 32px;
    }
    
    .sidebar-body a span {
      font-size: 13px;
    }
  }
}

.sidebar-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  display: none;
}

/* Sidebar Resize Handle - Native System Resize */
.sidebar-resize-handle {
  display: none;
  position: absolute;
  right: -4px;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 10;
  user-select: none;
  -webkit-user-select: none;
  background: transparent;
  transition: background-color 0.2s ease;
}

@media (min-width: 1024px) {
  .sidebar-resize-handle {
    display: block;
  }
}

.sidebar-resize-handle:hover {
  background-color: rgba(42, 42, 42, 0.3);
}

.sidebar-resize-handle:active {
  background-color: rgba(42, 42, 42, 0.5);
  cursor: col-resize;
}

.sidebar.collapsed .sidebar-resize-handle {
  right: -4px;
  cursor: col-resize;
}

.sidebar-body {
  flex: 1 1 0%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
  .sidebar.collapsed .sidebar-body {
    padding: 0;
  }
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-0 > * + * {
  margin-top: 0;
}

.sidebar-body h2 {
  font-size: 14px;
  color: #7d8187;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
  font-weight: 400;
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.sidebar-body a {
  display: block;
  height: 29px;
  text-decoration: none;
  border-radius: 0.125rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-body a:hover {
  text-decoration: none;
}

.sidebar-body a > div {
  margin: 0 -0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  height: 100%;
}

.sidebar-body a:hover > div {
  background-color: rgba(42, 42, 42, 0.7);
  transition: background-color 0.2s ease;
}

.sidebar-body a:hover span {
  color: #ffffff;
  transition: color 0.2s ease;
}

.sidebar-body a span {
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.2s ease;
  color: #ffffff;
  text-decoration: none;
}

.sidebar-body a:hover span {
  text-decoration: none;
}

.sidebar-body a span.text-primary {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}

/* Main Scroll Container */
.main-scroll-container {
  overflow: hidden;
  height: calc(100vh - 48px);
  display: flex;
}

/* Main Content */
main {
  flex: 1 1 0%;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #050505;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Content wrapper transition for SPA */
.docs-content-wrapper {
  transition: opacity 0.2s ease;
}

/* Mobile-specific content improvements */
@media (max-width: 640px) {
  /* Better text wrapping - ensure nothing gets cut off */
  .docs-content-wrapper {
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Prevent horizontal overflow on all elements */
  .docs-content-wrapper * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Ensure container doesn't overflow */
  main {
    overflow-x: hidden;
    width: 100%;
  }
  
  main > div {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  main > div > div {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Code inline elements */
  code:not(.api-code) {
    font-size: 0.875rem;
    padding: 0.125rem 0.375rem;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }
  
  /* Links - ensure they wrap */
  a {
    word-break: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
  }
  
  /* Headings - natural wrapping */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  
  /* Paragraphs - natural flow */
  p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Images */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Exception for logo - must be smaller */
  header .header-left .logo-link img.logo-img,
  .header-container .header-left .logo-link img.logo-img {
    height: 16px !important;
    max-height: 16px !important;
    width: auto !important;
  }
  
  /* Better spacing for content sections */
  .prose > * + * {
    margin-top: 1rem;
  }
  
  /* Section spacing */
  section {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }
  
  section + section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(42, 42, 42, 0.5);
  }
  
  /* Grid items - ensure they don't overflow */
  .grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  .grid a {
    width: 100%;
    max-width: 100%;
  }
  
  /* Lists - proper indentation without overflow */
  ul, ol {
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  
  /* Ensure text content flows naturally */
  .prose {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Remove any negative margins that could cause issues */
  * {
    min-width: 0;
  }
}

main > div {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

main > div > div {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

main > div > div > div {
  flex: 1 1 0%;
  min-width: 0;
  padding: 2rem 1rem;
  max-width: 768px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  main > div > div > div {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  main > div > div > div {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Typography */
.prose {
  color: #ffffff;
}

.prose-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

.text-large {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  margin: 0 0 2rem 0;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-muted-foreground {
  color: #7d8187;
}

.text-foreground {
  color: #ffffff;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Cards Grid */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid a {
  display: block;
  overflow: hidden;
  border-radius: 0.125rem;
  border: 1px solid #2a2a2a;
  background-color: #050505;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.grid a:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: all 0.2s ease;
}

.grid a:hover h3 {
  color: #ffffff;
  transition: color 0.2s ease;
}

.grid a:hover p {
  color: #ffffff;
  transition: color 0.2s ease;
}

.grid a > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #2a2a2a;
  background-color: rgba(42, 42, 42, 0.3);
  padding: 0.75rem 1rem;
}

.grid a > div:first-child svg {
  height: 1.25rem;
  width: 1.25rem;
  color: #ffffff;
}

.grid a > div:first-child h3 {
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  font-size: 1rem;
}

.grid a > div:last-child {
  padding: 1rem;
}

.grid a > div:last-child p {
  font-size: 0.875rem;
  color: #7d8187;
  margin: 0;
}

/* Code Blocks */
.api-code-wrapper {
  background-color: #050505;
  border: 1px solid #2a2a2a;
  border-radius: 0.375rem;
  overflow: hidden;
  margin: 1rem 0;
}

.api-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #2a2a2a;
  background-color: #050505;
}

.api-code-tabs {
  display: flex;
  gap: 0.5rem;
  position: relative;
}

.api-code-tab {
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: none;
  color: #7d8187;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  font-family: inherit;
  position: relative;
}

.api-code-tab:hover {
  color: #ffffff;
  background-color: rgba(42, 42, 42, 0.5);
  transition: all 0.2s ease;
}

.api-code-tab.active {
  color: #ffffff;
  background-color: #2a2a2a;
}

.api-code-tabs::after {
  display: none;
}

.api-code-tabs.has-active::after {
  opacity: 1;
}

.api-copy-btn {
  background: transparent;
  border: none;
  color: #7d8187;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.api-copy-btn:hover {
  color: #ffffff;
  background-color: rgba(42, 42, 42, 0.5);
  transition: all 0.2s ease;
}

.api-copy-btn.copied {
  color: #4ade80;
}

.api-code-block {
  margin: 0;
  padding: 1rem;
  background-color: #050505;
  overflow-x: auto;
}

.api-code {
  font-family: 'Geist Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #ffffff;
  display: block;
  margin: 0;
}

.api-code .keyword {
  color: #c792ea;
}

.api-code .function {
  color: #82aaff;
}

.api-code .string {
  color: #c3e88d;
}

.api-code .property {
  color: #ffcb6b;
}

.api-code .operator {
  color: #89ddff;
}

.api-code .import {
  color: #c792ea;
}

.api-code .print {
  color: #82aaff;
}

/* Tables */
.overflow-x-auto {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #050505;
  border: 1px solid #2a2a2a;
  border-radius: 0.375rem;
  overflow: hidden;
}

thead {
  background-color: #050505;
}

th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: #d1d5db;
  white-space: nowrap;
  cursor: pointer;
}

tbody tr {
  border-top: 1px solid #2a2a2a;
}

td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

td code {
  background-color: #2a2a2a;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.875rem;
}

/* Lists */
ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

ul li {
  margin: 0.5rem 0;
  color: #7d8187;
}

ul li strong {
  color: #ffffff;
  font-weight: 600;
}

/* Links */
a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: none;
}

a.text-primary {
  color: #ffffff;
}

/* Pre/Code blocks */
pre {
  background-color: #050505;
  border: 1px solid #2a2a2a;
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

pre code {
  font-family: 'Geist Mono', monospace;
  font-size: 0.875rem;
  color: #ffffff;
  display: block;
}

/* Sections */
section {
  margin-top: 3rem;
}

section:first-of-type {
  margin-top: 0;
}

/* Responsive - Mobile Optimizations */
@media (max-width: 640px) {
  .header-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    height: 48px;
    gap: 1rem;
  }
  
  header .logo-img,
  .header-left .logo-img,
  .logo-link .logo-img {
    height: 22px !important;
    max-height: 22px !important;
  }
  
  .text-large {
    font-size: 1.75rem;
    line-height: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .text-2xl {
    font-size: 1.375rem;
    line-height: 1.75rem;
  }
  
  .text-xl {
    font-size: 1.125rem;
    line-height: 1.5rem;
  }
  
  .text-lg {
    font-size: 1rem;
    line-height: 1.625rem;
  }
  
  main > div > div > div {
    padding: 1.25rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .docs-content-wrapper {
    padding: 1.25rem 1rem !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
  }
  
  /* Better spacing on mobile */
  .space-y-8 > * + * {
    margin-top: 1.5rem;
  }
  
  .mb-8 {
    margin-bottom: 1.5rem;
  }
  
  .mb-6 {
    margin-bottom: 1.25rem;
  }
  
  .mb-4 {
    margin-bottom: 1rem;
  }
  
  .mt-12 {
    margin-top: 2rem;
  }
  
  /* Tables - horizontal scroll on mobile */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    overflow-x: auto;
  }
  
  table {
    min-width: 600px;
    font-size: 0.8125rem;
    width: 100%;
    table-layout: auto;
  }
  
  th, td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 200px;
  }
  
  th {
    font-size: 0.75rem;
    white-space: normal;
    word-wrap: break-word;
  }
  
  /* Allow table cells to wrap naturally */
  td code {
    white-space: normal;
    word-break: break-word;
    display: inline-block;
    max-width: 100%;
  }
  
  /* Code blocks - better mobile formatting */
  .api-code-wrapper {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0.375rem;
    overflow: hidden;
  }
  
  .api-code-header {
    padding: 0.625rem 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .api-code-tabs {
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  
  .api-code-tab {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  
  .api-code-block {
    padding: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    word-wrap: normal;
  }
  
  .api-code {
    font-size: 0.8125rem;
    line-height: 1.5;
    white-space: pre;
    word-wrap: normal;
    overflow-wrap: normal;
  }
  
  pre {
    margin-left: 0;
    margin-right: 0;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  pre code {
    font-size: 0.8125rem;
    line-height: 1.5;
    white-space: pre;
    word-wrap: normal;
    display: block;
  }
  
  /* Grid cards - single column on mobile */
  .grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
  
  .grid a {
    border-radius: 0.375rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
  }
  
  .grid a > div:first-child {
    padding: 0.625rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .grid a > div:last-child {
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .grid a h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .grid a p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Lists - better spacing and alignment */
  ul, ol {
    padding-left: 1.25rem;
    padding-right: 0;
    margin: 0.75rem 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  ul li, ol li {
    margin: 0.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-right: 0;
    width: 100%;
  }
  
  /* Paragraphs - better readability and alignment */
  .prose p {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    width: 100%;
    text-align: left;
    padding: 0;
  }
  
  .prose-lg {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  /* Ensure headings align properly */
  .prose h1,
  .prose h2,
  .prose h3,
  .prose h4 {
    text-align: left;
    width: 100%;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Sections */
  section {
    margin-top: 2rem;
  }
  
  /* Mobile header layout - buttons on right */
  .header-left {
    gap: 1rem;
    flex: 1 1 0%;
    min-width: 0;
  }
  
  .header-center {
    display: none;
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
  }
  
  /* Search button - icon only on mobile, with circular background */
  .search-btn-mobile {
    position: relative;
    width: auto;
    height: auto;
    min-width: 43.5px;
    min-height: 43.5px;
    padding: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
  }
  
  .search-btn-mobile::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    min-width: 43.5px;
    min-height: 43.5px;
    border-radius: 50%;
    border: 0.5px solid rgba(125, 129, 135, 0.25);
    background: transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
    box-sizing: border-box;
  }
  
  .search-btn-mobile svg {
    position: static;
    transform: none;
    width: 20px;
    height: 20px;
    color: #7d8187;
    flex-shrink: 0;
    z-index: 1;
  }
  
  .search-btn-mobile:hover {
    background: none;
    border: none;
    opacity: 1;
  }
  
  .search-btn-mobile:hover::before {
    background: rgba(125, 129, 135, 0.1);
    border-color: rgba(125, 129, 135, 0.4);
  }
  
  .search-btn-mobile:hover svg {
    color: #ffffff;
  }
  
  
  /* Sidebar toggle in header */
  .sidebar-toggle {
    display: flex;
  }
  
  /* Ensure header doesn't overflow */
  .header-nav {
    display: none;
  }
  
  /* Logo sizing on mobile */
  header .logo-img,
  .header-left .logo-img,
  .logo-link .logo-img {
    flex-shrink: 0;
  }
  
  /* Add more vertical spacing for logo on mobile to match other buttons */
  .header-left .logo-link {
    padding: 0.875rem 0;
    display: flex;
    align-items: center;
    min-height: 43.5px;
    justify-content: center;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .header-container {
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 0.75rem;
  }
  
  .header-right {
    gap: 0.5rem;
  }
  
  .search-btn-mobile {
    width: auto;
    height: auto;
  }
  
  .search-btn-mobile svg {
    width: 20px;
    height: 20px;
  }
  
  .sidebar-toggle {
    width: 32px;
    height: 32px;
  }
  
  main > div > div > div {
    padding: 1rem 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .docs-content-wrapper {
    padding: 1rem 0.75rem !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .text-large {
    font-size: 1.5rem;
    line-height: 1.875rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  table {
    min-width: 500px;
    font-size: 0.75rem;
  }
  
  th, td {
    padding: 0.5rem 0.625rem;
    white-space: normal;
    word-wrap: break-word;
    max-width: 150px;
  }
  
  /* Ensure everything fits */
  .prose {
    font-size: 0.9375rem;
  }
  
  p {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar - Hidden but scroll functionality maintained */
.overflow-y-auto {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.overflow-y-auto::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Active navigation */
.sidebar-body a.active span,
.sidebar-body a[href="#welcome"].active span {
  color: #ffffff !important;
  font-weight: 500;
}

/* Utility classes */
.h-full {
  height: 100%;
}

.w-full {
  width: 100%;
}

.h-8 {
  height: 2rem;
}

.w-auto {
  width: auto;
}

.shrink-0 {
  flex-shrink: 0;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.cursor-pointer {
  cursor: pointer;
}

.rounded-sm {
  border-radius: 0.125rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-full {
  border-radius: 9999px;
}

.outline-none {
  outline: none;
}

.transition-colors {
  transition: color 0.2s ease;
}

.transition-all {
  transition: all 0.2s ease;
}

.hover-bg-muted:hover {
  background-color: #2a2a2a;
}

.hover-text-foreground:hover {
  color: #ffffff;
}

.hover-shadow-sm:hover {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.hover-border-primary-50:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.hover-bg-muted-50:hover {
  background-color: rgba(42, 42, 42, 0.5);
}

.group-hover-bg-muted-70:hover {
  background-color: rgba(42, 42, 42, 0.7);
}

.focus-visible-ring-2:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px currentColor;
}

.focus-visible-ring-foreground:focus-visible {
  box-shadow: 0 0 0 2px #ffffff;
}

.focus-visible-ring-offset-2:focus-visible {
  outline-offset: 2px;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-normal {
  font-weight: 400;
}

.max-w-none {
  max-width: none;
}

.mt-0 {
  margin-top: 0;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-primary {
  color: #ffffff;
}

/* Overlay for mobile sidebar */
@media (max-width: 1023px) {
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 44;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: all;
  }
}

/* Force logo size - highest specificity - placed at end to override everything */
header .header-left .logo-link .logo-img,
header .logo-link img.logo-img,
.header-container .header-left .logo-link .logo-img,
header img.logo-img,
.header-left img.logo-img {
  height: 18px !important;
  width: auto !important;
  max-height: 18px !important;
  max-width: none !important;
  min-height: 18px !important;
}

@media (max-width: 640px) {
  header .header-left .logo-link .logo-img,
  header .logo-link img.logo-img,
  .header-container .header-left .logo-link .logo-img,
  header img.logo-img,
  .header-left img.logo-img {
    height: 22px !important;
    max-height: 22px !important;
    min-height: 22px !important;
  }
}
