/* api_docs.css — styling for API documentation sections */

/* API Documentation Styles - Dark Mode */
body {
    background-color: #011E61;
    color: #ebf4fa;
  }
  
  .container {
    margin-left: 250px;
    max-width: unset;
    width: calc(100% - 250px);
    padding: 0 2rem;
  }
  
  .api-section {
    max-width: unset;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: #011E61;
    color: #ebf4fa;
  }
  
  /* Individual section padding */
  .api-section-content {
    max-width: unset;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
  }
  
  /* Reduce top padding for introduction section */
  #introduction.api-section-content {
    padding-top: 0;
  }
  
  /* Further reduce padding on mobile */
  @media (max-width: 768px) {
    #introduction.api-section-content {
      padding-top: 0;
      margin-top: -1rem; /* Pull content up even more on mobile */
    }
    
    /* Remove top margin from main container on mobile */
    .container.mt-2 {
      margin-top: 0 !important;
    }
  }
  
  .api-section h1 {
    color: #ebf4fa;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
  }
  
  .api-section h2 {
    color: #ebf4fa;
    font-size: 2rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
    padding-bottom: 0.3rem;
  }
  
  .api-section h3 {
    color: #ebf4fa;
    font-size: 1.4rem;
    margin: 1.25rem 0 0.5rem 0;
    font-weight: 600;
  }
  
  .api-section ul {
    margin: 1rem 0;
  }
  
  .api-section li {
    margin: 0.5rem 0;
    color: #ebf4fa;
  }
  
  /* Two-column layout styles */
  /* If you want the sidebar to always be at least as tall as the content */
  .api-two-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    position: relative;
    /* Add this to establish a flex container context */
    min-height: fit-content;
  }
  
  .api-section-header {
    width: 100%;
    margin-bottom: 0rem;
    /* Ensure header doesn't push content down */
    position: relative;
    z-index: 1;
  }
  
  .api-section-header h2 {
    color: #ebf4fa;
    font-size: 2rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
    padding-bottom: 0rem;
  }
  
  .api-section-header .api-description {
    font-size: 1.1rem;
    margin: 0;
    color: #ebf4fa;
  }
  
  .api-content-row {
    display: flex;
    gap: 3rem;
    align-items: stretch; /* This is already correct */
    width: 100%;
    position: relative;
    min-height: 100%; /* Change this to a specific min-height if needed */
    /* Add this to ensure flex items stretch to full height */
    align-items: stretch;
    /* Ensure content starts at the same level as header */
    margin-top: 0;
  }
  
  /* Most reliable approach - use CSS Grid instead of Flexbox for this layout */
  .api-content-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
    position: relative;
    /* Grid automatically makes both columns the same height */
  }
  
  .api-content-grid {
    /* No special height properties needed */
    display: flex;
    flex-direction: column;
  }
  
  .api-sidebar-grid {
    /* No special height properties needed */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  
  .api-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    /* Remove min-height: 100% - let it grow naturally */
    /* Ensure content starts at the same position as sidebar */
    justify-content: flex-start;
    align-items: stretch;
  }
  
  .api-sidebar {
    flex: 1;
    /* Remove height: 100% and align-self: stretch as they can conflict */
    /* Add these properties instead */
    display: flex;
    flex-direction: column;
    /* This ensures the sidebar takes the full height of its flex container */
    align-self: stretch;
    /* Add justify-content to distribute content evenly */
    justify-content: flex-start;
    /* Ensure the sidebar content aligns with the main content */
    align-items: stretch;
  }
  
  .api-method {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.875rem;
    margin-right: 0.5rem;
  }
  
  .api-url {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.1rem;
    color: #ebf4fa;
  }
  
  .api-description {
    font-size: 1.1rem;
    margin: 1rem 0;
    color: #ebf4fa;
  }
  
  .api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
    background-color: rgba(235, 244, 250, 0.05);
    border: 1px solid rgba(235, 244, 250, 0.2);
  }
  
  .api-table th,
  .api-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(235, 244, 250, 0.2);
    color: #ebf4fa;
  }
  
  .api-table th {
    background-color: rgba(235, 244, 250, 0.1);
    font-weight: 600;
    color: #ebf4fa;
  }
  
  .api-table tr:nth-child(even) {
    background-color: rgba(235, 244, 250, 0.03);
  }
  
  .api-code {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0;
    margin: 1rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #f8f8f2;
    height: auto;
    max-height: 90vh;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 100%;
  
    /* Webkit (Chrome, Safari, newer versions of Opera) */
    &::-webkit-scrollbar {
      width: 12px;
      height: 12px;
    }
  
    &::-webkit-scrollbar-track {
      background: #1a1a1a;
      border-radius: 8px;
    }
  
    &::-webkit-scrollbar-thumb {
      background: #333;
      border-radius: 8px;
      border: 3px solid #1a1a1a;
    }
  
    &::-webkit-scrollbar-thumb:hover {
      background: #444;
    }
  
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #333 #1a1a1a;
  }
  
  .api-code[data-header]::before {
    content: attr(data-header);
    display: block;
    background: #6c757d;
    color: #fff;
    padding: 8px 16px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 7px 7px 0 0;
    border-bottom: 1px solid #333;
  }
  
  .api-code code {
    display: block;
    padding: 16px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 90vh;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  /* Syntax highlighting for code blocks */
  .api-code .string {
    color: #28a745;
  }
  
  .api-code .number {
    color: #ffa500;
  }
  
  .api-code .boolean {
    color: #0080ff;
  }
  
  .api-code .null {
    color: #808080;
  }
  
  .api-code .key {
    color: #ffffff;
  }
  
  .api-code:focus, .api-code:hover {
    border-color: #555;
  }
  
  .api-status-code {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }
  
  /* Inline code styling */
  code {
    background-color: rgba(0, 0, 0, 0.8);
    color: #28a745;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
  }
  
  /* Table responsive wrapper */
  .table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
  }
  
  /* Responsive design */
  @media (max-width: 1200px) {
    .api-section-content {
      padding: 1.5rem 2rem;
    }
    
    .api-content-row {
      gap: 2rem;
    }
  }
  
  @media (max-width: 1024px) {
    .api-section-content {
      padding: 1.5rem;
    }
    
    .api-content-row {
      flex-direction: column;
      gap: 2rem;
    }
  
    .api-content,
    .api-sidebar {
      flex: none;
      width: 100%;
      position: static;
    }
  
    .api-sidebar {
      order: 2;
    }
  
    .api-content {
      order: 1;
    }
  
    .api-code {
      font-size: 0.85rem;
      position: static;
      top: auto;
      height: auto;
      max-width: 100%;
      overflow-x: auto;
      word-wrap: break-word;
    }
  
    .api-request {
      max-width: 100%;
      overflow-x: auto;
    }
  
    .api-request-example {
      max-width: 100%;
      overflow-x: auto;
    }
  
    .api-request-example code {
      word-wrap: break-word;
      white-space: pre-wrap;
    }
  
    .api-example-header {
      flex-direction: column;
      gap: 0.5rem;
    }
  
    .api-example-title {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .api-example-title .api-url {
      font-size: 0.8rem;
      word-break: break-all;
    }
  
    .api-nav-sidebar {
      width: 200px;
    }
    
    .container {
      margin-left: 200px;
      width: calc(100% - 200px);
      padding: 0 1.5rem;
    }
  }
  
  @media (max-width: 700px) {
    .api-section-content {
      padding: 1rem;
    }
  
    .api-content-row {
      gap: 1.5rem;
      margin-top: 1rem;
    }
  
    .api-table th, .api-table td {
      padding: 0.5rem;
      font-size: 0.85rem;
    }
  
    .api-section h1 {
      font-size: 1.75rem;
      margin-bottom: 0.75rem;
    }
  
    .api-section-header h2 {
      font-size: 1.5rem;
      margin: 0 0 0.75rem 0;
    }
  
    .api-section h3 {
      font-size: 1.25rem;
      margin: 1rem 0 0.5rem 0;
    }
  
    .api-code {
      font-size: 0.8rem;
      padding: 0.75rem;
      margin: 0.5rem 0;
      max-width: 100%;
      overflow-x: auto;
      word-wrap: break-word;
    }
  
    .api-request {
      max-width: 100%;
      overflow-x: auto;
    }
  
    .api-request-example {
      max-width: 100%;
      overflow-x: auto;
    }
  
    .api-request-example code {
      word-wrap: break-word;
      white-space: pre-wrap;
      font-size: 0.75rem;
    }
  
    .api-description {
      font-size: 1rem;
      margin: 0.75rem 0;
    }
  
    .table-responsive {
      margin: 0.75rem 0;
    }
  
    .api-example-card {
      margin: 0.75rem 0 1.5rem 0;
    }
  
    .api-example-header {
      padding: 0.75rem;
    }
  
    .api-code-lines {
      min-width: 35px;
      padding: 0.75rem 0.4rem;
      font-size: 0.75rem;
    }
  
    .code-example {
      padding: 0.75rem;
    }
  
    .code-example code {
      font-size: 0.8rem;
    }
  
    .api-nav-sidebar {
      display: none;
    }
    
    .container {
      margin-left: 0;
      width: 100%;
      padding: 0 1rem;
    }
    
    .api-section-content {
      padding: 1.5rem 0;
    }
  }
  
  @media (max-width: 480px) {
    .api-section-content {
      padding: 0.75rem;
    }
  
    .api-content-row {
      gap: 1rem;
    }
  
    .api-table th, .api-table td {
      padding: 0.4rem;
      font-size: 0.8rem;
    }
  
    .api-code {
      padding: 0.5rem;
      font-size: 0.75rem;
      max-width: 100%;
      overflow-x: auto;
      word-wrap: break-word;
    }
  
    .api-request {
      max-width: 100%;
      overflow-x: auto;
    }
  
    .api-request-example {
      max-width: 100%;
      overflow-x: auto;
    }
  
    .api-request-example code {
      word-wrap: break-word;
      white-space: pre-wrap;
      font-size: 0.7rem;
    }
  
    .api-section h1 {
      font-size: 1.5rem;
    }
  
    .api-section-header h2 {
      font-size: 1.25rem;
    }
  
    .api-section h3 {
      font-size: 1.1rem;
    }
  
    .api-example-header {
      padding: 0.5rem;
    }
  
    .api-example-dropdown select {
      padding: 0.4rem;
      font-size: 0.8rem;
    }
  
    .api-code-lines {
      min-width: 30px;
      padding: 0.5rem 0.3rem;
      font-size: 0.7rem;
    }
  
    .code-example {
      padding: 0.5rem;
    }
  
    .code-example code {
      font-size: 0.75rem;
    }
  
    .api-example-title .api-url {
      font-size: 0.75rem;
      word-break: break-all;
    }
  }
  
  /* Interactive Example Card */
  .api-example-card {
    background-color: rgba(235, 244, 250, 0.05);
    border: 1px solid rgba(235, 244, 250, 0.2);
    border-radius: 8px;
    margin: 1rem 0 2rem 0;
    overflow: hidden;
  }
  
  .api-example-header {
    background-color: rgba(235, 244, 250, 0.1);
    padding: 1rem;
    border-bottom: 1px solid rgba(235, 244, 250, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .api-example-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
  }
  
  .api-example-title .api-url {
    font-size: 0.9rem;
    word-break: break-all;
  }
  
  .api-example-dropdown select {
    background-color: #000000;
    color: #ebf4fa;
    border: 1px solid rgba(235, 244, 250, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
  }
  
  .api-example-dropdown select:focus {
    outline: none;
    border-color: #28a745;
  }
  
  .api-example-body {
    padding: 0;
  }
  
  .api-code-container {
    display: flex;
    background-color: #000000;
    min-height: 100px;
  }
  
  .api-code-lines {
    background-color: rgba(235, 244, 250, 0.1);
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(235, 244, 250, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    color: rgba(235, 244, 250, 0.6);
    user-select: none;
  }
  
  .api-code-lines span {
    line-height: 1.4;
    height: 1.4em;
    display: block;
  }
  
  .api-code-content {
    flex: 1;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #333 #1a1a1a;
  
    &::-webkit-scrollbar {
      width: 12px;
      height: 12px;
    }
  
    &::-webkit-scrollbar-track {
      background: #1a1a1a;
      border-radius: 8px;
    }
  
    &::-webkit-scrollbar-thumb {
      background: #333;
      border-radius: 8px;
      border: 3px solid #1a1a1a;
    }
  
    &::-webkit-scrollbar-thumb:hover {
      background: #444;
    }
  }
  
  .code-example {
    display: none;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #333 #1a1a1a;
  
    &::-webkit-scrollbar {
      width: 12px;
      height: 12px;
    }
  
    &::-webkit-scrollbar-track {
      background: #1a1a1a;
      border-radius: 8px;
    }
  
    &::-webkit-scrollbar-thumb {
      background: #333;
      border-radius: 8px;
      border: 3px solid #1a1a1a;
    }
  
    &::-webkit-scrollbar-thumb:hover {
      background: #444;
    }
  }
  
  .code-example.active {
    display: block;
  }
  
  .code-example code {
    background: transparent;
    color: #ffffff;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    display: block;
    max-width: 100%;
  }
  
  /* Section dividers */
  .api-section-divider {
    width: 100%;
    padding:0rem;
    height: 2px;
    background-color: rgba(235, 244, 250, 0.3);
    margin: 3rem 0;
    border: none;
  }
  
  /* Sticky positioning within section bounds */
  .api-sidebar .api-code {
    margin: 0.5rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .api-sidebar .api-code code {
    overflow-y: auto;
    flex: 1;
  }
  
  /* Sticky Code Wrapper */
  .api-code-wrapper {
    position: relative;
  }
  
  .api-code.sticky-scroll {
    position: sticky;
    top: 4rem; /* adjust if you have a fixed header */
    max-height: 90vh;
    overflow: hidden;
    z-index: 10;
  }
  
  .api-code.sticky-scroll code {
    max-height: 90vh;
    overflow-y: auto;
  }
  
  /* Field List Styles */
  .api-field-list {
    margin-bottom: 2rem;
  }
  
  .api-field-item {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(235, 244, 250, 0.2);
  }
  
  .api-field-item:first-child {
    border-top: 2px solid rgba(235, 244, 250, 0.3);
  }
  
  .api-field-item:last-child {
    border-bottom: none;
  }
  
  .api-field-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5rem;
  }
  
  .api-field-name {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 16px;
    color: #ebf4fa;
    background: none;
    padding: 0;
    font-weight: 600;
  }
  
  .api-field-type {
    color: #adb5bd;
    font-size: 14px;
    font-weight: 500;
    background: rgba(111, 66, 193, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(111, 66, 193, 0.3);
  }
  
  .api-field-required {
    color: #ff6b35;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
  }
  
  .api-field-description {
    color: rgba(235, 244, 250, 0.9);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    line-height: 1.5;
  }
  
  .api-field-example {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 0.9rem;
  }
  
  .api-field-example strong {
    color: #28a745;
    font-weight: 600;
  }
  
  .api-field-example code {
    color: #f8f8f2;
    background-color: #2d2d2d;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
  }
  
  /* Collapsible Field Sections */
  .api-fields-section {
    margin-bottom: 2rem;
  }
  
  .api-fields-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .api-fields-section-title {
    color: #ebf4fa;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
  }
  
  .expand-all-btn {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .expand-all-btn:hover {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.5);
  }
  
  /* Collapsible Field Items */
  .api-field-item.collapsible {
    padding: 0;
    border-top: 1px solid rgba(235, 244, 250, 0.2);
  }
  
  .api-field-item.collapsible:first-child {
    border-top: 2px solid rgba(235, 244, 250, 0.3);
  }
  
  .api-field-item.collapsible .api-field-header {
    padding: 1.5rem 0;
    margin-bottom: 0;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
  }
  
  .api-field-item.collapsible .api-field-header:hover {
    background-color: rgba(235, 244, 250, 0.03);
  }
  
  .api-field-caret {
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid #ebf4fa;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform 0.2s ease;
  }
  
  .api-field-item.expanded .api-field-caret {
    transform: translateY(-50%) rotate(90deg);
  }
  
  .api-field-item.collapsible .api-field-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
  }
  
  .api-field-item.collapsible.expanded .api-field-description {
    max-height: 200px;
    padding: 0 0 1.5rem 0;
  }
  
  /* Navigation Sidebar */
  .api-nav-sidebar {
    position: fixed;
    left: 0;
    top: 60px; /* Adjust based on your header height */
    width: 250px;
    height: calc(100vh - 60px);
    background: rgba(1, 30, 97, 0.95);
    
    padding: 2rem 0;
    overflow-y: auto;
    z-index: 50;
  }
  
  /* Sidebar Header */
  .api-nav-sidebar .sidebar-header {
    padding: 0 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(235, 244, 250, 0.2);
    margin-bottom: 1rem;
  }
  
  .api-nav-sidebar .sidebar-header h5 {
    color: #ebf4fa;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
  }
  
  
  
  /* Mobile Navbar */
  .api-navbar {
    background: rgba(1, 30, 97, 0.95);
    border-bottom: 1px solid rgba(235, 244, 250, 0.2);
    padding: 0.5rem 1rem;
    position: fixed;
    top: 62px; /* Start below the main header - moved down slightly */
    left: 0;
    right: 0;
    z-index: 50;
    transition: top 0.15s ease;
  }
  
  /* When scrolled, move navbar to top of viewport */
  .api-navbar.scrolled {
    top: 0;
  }
  
  .api-navbar .navbar-brand {
    color: #ebf4fa;
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  .api-navbar .navbar-toggler {
    border-color: rgba(235, 244, 250, 0.3);
  }
  
  .api-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28235, 244, 250, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  .api-navbar .navbar-nav {
    margin-top: 1rem;
  }
  
  .api-navbar .nav-item {
    border-bottom: 1px solid rgba(235, 244, 250, 0.1);
  }
  
  .api-navbar .nav-item:last-child {
    border-bottom: none;
  }
  
  .api-navbar .nav-link {
    color: #ebf4fa;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    transition: color 0.2s ease;
  }
  
  .api-navbar .nav-link:hover {
    color: #28a745;
  }
  
  .api-navbar .nav-link.active {
    color: #28a745;
    font-weight: 600;
  }
  
  .api-navbar .nav-link-title {
    color: #ebf4fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .api-navbar .nav-link-title:hover,
  .api-navbar .nav-link-title.active {
    color: #28a745;
  }
  
  .api-navbar .toggle-icon {
    cursor: pointer;
    padding: 0.5rem;
    font-weight: bold;
    user-select: none;
    color: #ebf4fa;
    font-size: 1.2rem;
    transition: color 0.2s ease;
  }
  
  .api-navbar .toggle-icon:hover {
    color: #28a745;
  }
  
  .api-navbar ul.collapse {
    background-color: rgba(235, 244, 250, 0.05);
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
  
  .api-navbar ul.collapse.show {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #28a745;
  }
  
  .api-navbar .nav-item-sub .nav-link.sub-link {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    color: rgba(235, 244, 250, 0.8);
  }
  
  .api-navbar .nav-item-sub .nav-link.sub-link:hover {
    color: #28a745;
  }
  
  .api-navbar .nav-item-sub .nav-link.sub-link.active {
    color: #28a745;
    font-weight: 600;
  }
  
  .api-nav-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .api-nav-sidebar li {
    margin: 0;
    padding: 0;
  }
  
  .api-nav-sidebar a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #ebf4fa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
  }
  
  .api-nav-sidebar a:hover {
    background: rgba(235, 244, 250, 0.1);
  }
  
  .api-nav-sidebar .section-link {
    font-weight: 600;
    font-size: 1rem;
  }
  
  .api-nav-sidebar .subsection-link {
    padding-left: 2.5rem;
    font-size: 0.9rem;
    color: rgba(235, 244, 250, 0.8);
  }
  
  /* Active link state */
  .api-nav-sidebar .active {
    background: rgba(235, 244, 250, 0.1);
    border-left: 3px solid #28a745;
  }
  
  /* Mobile Navigation */
  @media (max-width: 768px) {
    .api-nav-sidebar {
      display: none; /* Hide desktop sidebar on mobile */
    }
  
    .api-navbar {
      display: block !important; /* Force show mobile navbar */
    }
  
    .container {
      margin-left: 0;
      width: 100%;
      padding: 0 1rem;
      padding-top: 140px; /* Add top padding for header + fixed navbar */
      transition: padding-top 0.3s ease;
    }
    
    /* Reduce top padding on mobile */
    @media (max-width: 768px) {
      .container {
        padding-top: 80px; /* Reduce padding on mobile */
      }
    }
    
    /* When navbar is scrolled to top, reduce padding */
    .api-navbar.scrolled ~ .container {
      padding-top: 80px;
    }
  
    .api-section-content {
      padding: 1.5rem 0;
    }
  }
  
  /* Add a mobile-specific class for showing/hiding the navigation */
  .mobile-nav-visible {
    display: block !important;
  }
  
  /* Tablet adjustments */
  @media (max-width: 1024px) and (min-width: 769px) {
    .api-nav-sidebar {
      width: 200px;
    }
    
    .container {
      margin-left: 200px;
      width: calc(100% - 200px);
      padding: 0 1.5rem;
    }
  }
  
  /* Webkit scrollbar styling for code blocks */
  .api-code::-webkit-scrollbar,
  .api-code-content::-webkit-scrollbar,
  .code-example::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
  
  .api-code::-webkit-scrollbar-track,
  .api-code-content::-webkit-scrollbar-track,
  .code-example::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 8px;
  }
  
  .api-code::-webkit-scrollbar-thumb,
  .api-code-content::-webkit-scrollbar-thumb,
  .code-example::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 8px;
    border: 3px solid #1a1a1a;
  }
  
  .api-code::-webkit-scrollbar-thumb:hover,
  .api-code-content::-webkit-scrollbar-thumb:hover,
  .code-example::-webkit-scrollbar-thumb:hover {
    background: #444;
  }
  
  /* Firefox scrollbar styling */
  .api-code,
  .api-code-content,
  .code-example {
    scrollbar-width: thin;
    scrollbar-color: #333 #1a1a1a;
  }
  
  /* API Request Code Block (with language dropdown) */
  .api-request {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    margin: 1rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #f8f8f2;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 100%;
  }
  
  .api-request[data-header]::before {
    content: attr(data-header);
    display: block;
    background: #6c757d;
    color: #fff;
    padding: 8px 16px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 7px 7px 0 0;
    border-bottom: 1px solid #333;
  }
  
  .api-request-header {
    background: #2a2a2a;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .api-request-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
  }
  
  .api-language-select {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
  }
  
  .api-language-select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
  }
  
  .api-request-example {
    display: none;
    padding: 16px;
    background: #1a1a1a;
    overflow-x: auto;
  }
  
  .api-request-example.active {
    display: block;
  }
  
  .api-request-example code {
    display: block;
    background: transparent;
    color: #f8f8f2;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  /* Syntax highlighting for request code blocks */
  .api-request .string {
    color: #28a745;
  }
  
  .api-request .number {
    color: #ffa500;
  }
  
  .api-request .boolean {
    color: #0080ff;
  }
  
  .api-request .null {
    color: #808080;
  }
  
  .api-request .key {
    color: #ffffff;
  }
  
  .api-request:focus, .api-request:hover {
    border-color: #555;
  }
  
  /* Scrollbar styling for request blocks */
  .api-request::-webkit-scrollbar,
  .api-request-example::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
  
  .api-request::-webkit-scrollbar-track,
  .api-request-example::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 8px;
  }
  
  .api-request::-webkit-scrollbar-thumb,
  .api-request-example::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 8px;
    border: 3px solid #1a1a1a;
  }
  
  .api-request::-webkit-scrollbar-thumb:hover,
  .api-request-example::-webkit-scrollbar-thumb:hover {
    background: #444;
  }
  
  .api-request,
  .api-request-example {
    scrollbar-width: thin;
    scrollbar-color: #333 #1a1a1a;
  }
  
  .api-info-box {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(1, 30, 97, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(184, 197, 209, 0.2);
  }
  
  .api-info-box h4 {
    color: #ebf4fa;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
  }
  
  .api-info-box p,
  .api-info-box ul,
  .api-info-box li {
    color: #b8c5d1;
    line-height: 1.5;
  }
  
  .api-info-box p {
    margin: 0 0 10px 0;
  }
  
  .api-info-box ul {
    margin: 0;
    padding-left: 20px;
  }
  
  .api-info-box li {
    margin: 5px 0;
  }
  
  /* Ensure api-info-boxes in sidebar align properly with main content */
  .api-sidebar .api-info-box {
    margin: 1rem 0;
    /* Ensure consistent spacing */
    flex-shrink: 0;
  }
  
  /* Ensure the first api-info-box in sidebar aligns with the first content item */
  .api-sidebar .api-info-box:first-child {
    margin-top: 0;
  }
  
  /* Grid layout for Tips & Best Practices section */
  .api-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
  }
  
  .api-tips-grid .api-info-box {
    margin: 0;
    height: fit-content;
  }
  
  /* Contact intro section */
  .api-contact-intro {
    margin: 2rem 0 1rem 0;
    text-align: center;
  }
  
  .api-contact-intro h3 {
    margin-bottom: 1rem;
    color: #ebf4fa;
  }
  
  .api-contact-intro .api-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #b8c5d1;
  }
  
  /* Grid layout for Contact & Support section */
  .api-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
  }
  
  .api-contact-grid .api-info-box {
    margin: 0;
    height: fit-content;
    min-height: 200px;
    display: flex;
    flex-direction: column;
  }
  
  .api-contact-grid .api-info-box h4 {
    margin-bottom: 1rem;
    flex-shrink: 0;
  }
  
  .api-contact-grid .api-info-box ul {
    flex-grow: 1;
    margin-bottom: 0;
  }
  
  /* Get Started section */
  .api-get-started {
    margin-top: 2rem;
    text-align: center;
  }
  
  .api-get-started .api-info-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 2rem;
  }
  
  .api-get-started .api-info-box h4 {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .api-get-started .api-info-box p {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  /* Responsive grid adjustments */
  @media (max-width: 1200px) {
    .api-tips-grid,
    .api-contact-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }
  }
  
  @media (max-width: 900px) {
    .api-tips-grid,
    .api-contact-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    
    .api-contact-intro .api-description {
      font-size: 1rem;
    }
  }
  
  @media (max-width: 600px) {
    .api-tips-grid,
    .api-contact-grid {
      gap: 1rem;
    }
    
    .api-contact-intro {
      margin: 1.5rem 0 1rem 0;
    }
    
    .api-contact-intro h3 {
      font-size: 1.3rem;
    }
  }
  