.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
  color: white;
  font-weight: 600;
}

.api-tabs-container {
  position: relative;
}

.api-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid hsl(var(--color-soft-gray));
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.api-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: hsl(var(--color-muted-foreground));
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.api-tab .tab-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.api-tab:hover {
  color: hsl(var(--color-navy));
  background: rgba(20, 184, 166, 0.05);
}

.api-tab.active {
  color: hsl(var(--color-teal));
  border-bottom-color: hsl(var(--color-teal));
}

.api-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.api-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid hsl(var(--color-soft-gray));
}

.text-h2 {
  font-size: clamp(1.75rem, 1.25rem + 2.5vw, 3rem);
  color: hsl(var(--color-navy));
}

.text-h3 {
  font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem);
  color: hsl(var(--color-navy));
}

.text-h4 {
  font-size: 1.125rem;
  color: hsl(var(--color-navy));
}

.text-body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  color: hsl(var(--color-charcoal));
}

.text-body {
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--color-charcoal));
}

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

.text-muted {
  color: hsl(var(--color-muted-foreground));
}

.webhook-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.webhook-type-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid hsl(var(--color-soft-gray));
  transition: all 0.3s ease;
}

.webhook-type-card:hover {
  border-color: hsl(var(--color-teal));
  box-shadow: 0 10px 15px -3px rgba(20, 184, 166, 0.1);
  transform: translateY(-2px);
}

.icon-box {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, hsl(var(--color-navy)), hsl(var(--color-teal)));
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, hsl(var(--color-teal)), hsl(76 73% 55%));
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.step-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom right, rgba(20, 184, 166, 0.05), transparent);
  border: 1px solid hsl(var(--color-soft-gray));
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--color-navy)), hsl(var(--color-teal)));
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, hsl(var(--color-navy)), hsl(var(--color-teal)));
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  color: hsl(var(--color-navy));
  background: transparent;
  border: 2px solid hsl(var(--color-navy));
}

.btn-outline:hover {
  background: hsl(var(--color-navy));
  color: white;
  transform: translateY(-1px);
}

.scalar-section {
  min-height: 600px;
}

.scalar-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid hsl(var(--color-soft-gray));
  border-top-color: hsl(var(--color-teal));
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scalar-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  text-align: center;
}

.scalar-error svg {
  width: 3rem;
  height: 3rem;
  color: hsl(0 72% 51%);
}

.scalar-error h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: hsl(var(--color-navy));
}

#scalar-container {
  margin-top: 1.5rem;
}

.icon-box-inline {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.icon-box-inline svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.rate-limits-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.rate-limits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.rate-limits-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--color-soft-gray));
}

.rate-limits-list li:last-child {
  border-bottom: none;
}

.help-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.code-example {
  border-radius: 0.5rem;
  overflow: hidden;
  background: #2d2d2d;
  margin-bottom: 1rem;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #1e1e1e;
  border-bottom: 1px solid #3d3d3d;
}

.code-title {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: #9cdcfe;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  color: #cccccc;
  background: transparent;
  border: 1px solid #3d3d3d;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

.copy-btn:hover {
  background: #3d3d3d;
  color: white;
}

.copy-btn.copied {
  color: hsl(var(--color-teal));
  border-color: hsl(var(--color-teal));
}

.code-example pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}

.code-example code {
  font-family: 'Courier New', Consolas, Monaco, monospace;
}

code {
  padding: 0.125rem 0.375rem;
  background: rgba(20, 184, 166, 0.1);
  color: hsl(var(--color-teal));
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.endpoint-card {
  border: 2px solid hsl(var(--color-soft-gray));
  transition: border-color 0.3s;
}

.endpoint-card:hover {
  border-color: hsl(var(--color-teal));
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.endpoint-method {
  padding: 0.375rem 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
}

.endpoint-method.post {
  background: hsl(76 73% 55% / 0.2);
  color: hsl(76 73% 35%);
}

.endpoint-path {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: hsl(var(--color-navy));
}

.expand-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--color-teal));
  background: transparent;
  border: 1px solid hsl(var(--color-teal));
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s;
}

.expand-btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s;
}

.expand-btn:hover {
  background: hsl(var(--color-teal));
  color: white;
}

.expand-btn.expanded svg {
  transform: rotate(180deg);
}

.expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 1rem;
}

.expandable-content.expanded {
  max-height: 5000px;
}

.error-codes-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.error-code-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(20, 184, 166, 0.05);
}

.status-code {
  padding: 0.25rem 0.75rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.status-code.success {
  background: hsl(142 71% 45% / 0.2);
  color: hsl(142 71% 25%);
}

.status-code.error {
  background: hsl(0 72% 51% / 0.2);
  color: hsl(0 72% 31%);
}

.headers-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header-item {
  padding: 1rem;
  border-left: 3px solid hsl(var(--color-teal));
  background: rgba(20, 184, 166, 0.05);
  border-radius: 0.25rem;
}

.header-name {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 1rem;
}

.code-tabs {
  margin-top: 1rem;
}

.code-tab-buttons {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #3d3d3d;
}

.code-tab-btn {
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: #9cdcfe;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.code-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.code-tab-btn.active {
  color: hsl(var(--color-teal));
  border-bottom-color: hsl(var(--color-teal));
}

.code-tab-content {
  display: none;
}

.code-tab-content.active {
  display: block;
}

.retry-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.retry-step {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.retry-badge {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--color-navy)), hsl(var(--color-teal)));
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.retry-info strong {
  display: block;
  color: hsl(var(--color-navy));
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.info-callout {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(20, 184, 166, 0.1);
  border-left: 4px solid hsl(var(--color-teal));
  border-radius: 0.5rem;
  margin-top: 1.5rem;
}

.info-callout svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--color-teal));
  flex-shrink: 0;
}

.best-practices-list,
.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.best-practices-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.best-practices-list svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--color-teal));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.requirements-list li {
  padding-left: 1.5rem;
  position: relative;
}

.requirements-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: hsl(var(--color-teal));
  font-weight: 700;
}

.search-bar {
  position: relative;
  margin-bottom: 1rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--color-muted-foreground));
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  font-size: 1rem;
  border: 2px solid hsl(var(--color-soft-gray));
  border-radius: 0.5rem;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: hsl(var(--color-teal));
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-label {
  font-weight: 600;
  color: hsl(var(--color-navy));
  font-size: 0.875rem;
}

.filter-select {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 2px solid hsl(var(--color-soft-gray));
  border-radius: 0.375rem;
  background: white;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: hsl(var(--color-teal));
}

.event-category {
  margin-bottom: 2rem;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: hsl(var(--color-navy));
  background: linear-gradient(to right, rgba(20, 184, 166, 0.1), transparent);
  border-left: 4px solid hsl(var(--color-teal));
  border-radius: 0.5rem;
}

.category-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--color-teal));
}

.event-count {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--color-muted-foreground));
}

.event-card {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: white;
  border: 2px solid hsl(var(--color-soft-gray));
  border-radius: 0.75rem;
  transition: all 0.3s;
}

.event-card:hover {
  border-color: hsl(var(--color-teal));
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.event-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.event-badge {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0.25rem;
}

.event-badge.outbound {
  background: hsl(var(--color-teal) / 0.2);
  color: hsl(var(--color-teal));
}

.event-badge.inbound {
  background: hsl(var(--color-navy) / 0.2);
  color: hsl(var(--color-navy));
}

.event-type {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 1rem;
  color: hsl(var(--color-navy));
}

.event-expand-btn {
  display: flex;
  align-items: center;
  padding: 0.375rem;
  background: transparent;
  border: 1px solid hsl(var(--color-soft-gray));
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.event-expand-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--color-muted-foreground));
  transition: transform 0.3s;
}

.event-expand-btn:hover {
  background: rgba(20, 184, 166, 0.1);
  border-color: hsl(var(--color-teal));
}

.event-expand-btn svg.rotated {
  transform: rotate(180deg);
}

.event-description {
  color: hsl(var(--color-muted-foreground));
  line-height: 1.5;
}

.event-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 1rem;
}

.event-details.expanded {
  max-height: 3000px;
}

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  text-align: center;
}

.no-results svg {
  width: 3rem;
  height: 3rem;
  color: hsl(var(--color-muted-foreground));
}

.no-results h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: hsl(var(--color-navy));
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--color-navy)), hsl(var(--color-teal)));
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
}

.back-to-top svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .api-tabs-nav {
    border-bottom: none;
    margin-bottom: 1rem;
  }

  .api-tab {
    flex-direction: column;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .webhook-types-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .rate-limits-section {
    grid-template-columns: 1fr;
  }

  .icon-box-inline {
    margin-bottom: 1rem;
  }

  .code-example pre {
    font-size: 0.75rem;
  }

  .help-actions {
    flex-direction: column;
  }

  .help-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .endpoint-header {
    flex-wrap: wrap;
  }

  .filter-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-select {
    width: 100%;
  }

  .event-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}
