/* Documentation Tabs Styles */
.doc-tabs {
  margin: 1.5rem 0;
}

/* Override any documentation ul styles */
.documentation .doc-tabs .doc-tabs-nav,
.documentation ul.doc-tabs-nav {
  margin-left: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  list-style-position: initial !important;
}

.documentation .doc-tabs .doc-tabs-nav-item,
.documentation .doc-tabs-nav li.doc-tabs-nav-item {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  list-style-position: initial !important;
}

/* Remove list markers */
.doc-tabs-nav-item::marker {
  content: none !important;
}

.doc-tabs-nav {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0 4px;
  padding-bottom: 0;
  list-style: none !important;
  background-color: #f5f5f7;
  border: 1px solid #e5e5e7;
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.doc-tabs-nav-item {
  margin: 0;
  list-style: none !important;
  list-style-type: none !important;
  flex-shrink: 0;
}

.doc-tabs-nav-item::before {
  content: none !important;
  display: none !important;
}

.doc-tabs-nav-link {
  display: block;
  padding: 0.5rem 1rem;
  padding-bottom: 0.625rem;
  color: #1d1d1f;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 0.375rem 0.375rem 0 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  position: relative;
}

.doc-tabs-nav-link:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.04);
}

.doc-tabs-nav-link.active {
  color: #1d1d1f;
  background-color: #ffffff;
  font-weight: 500;
}

.doc-tabs-content {
  background-color: #ffffff;
  border: 1px solid #e5e5e7;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 1.5rem;
  margin-top: 0;
}

.doc-tabs-panel {
  display: none;
}

.doc-tabs-panel.active {
  display: block;
}

/* Code blocks within tabs */
.doc-tabs-panel pre {
  margin-top: 0;
}

.doc-tabs-panel > *:first-child {
  margin-top: 0;
}

.doc-tabs-panel > *:last-child {
  margin-bottom: 0;
}

/* Hide scrollbar on desktop for cleaner look */
@media (min-width: 768px) {
  .doc-tabs-nav::-webkit-scrollbar {
    display: none;
  }
  
  .doc-tabs-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}