/* DataBoom API documentation additions — 2026-07-11 */
.vendor-auth-chip {
  border-color: rgba(251, 191, 36, .55) !important;
  background: rgba(251, 191, 36, .12) !important;
  color: #fde68a !important;
}
html[data-bs-theme="light"] .vendor-auth-chip {
  color: #92400e !important;
  background: rgba(245, 158, 11, .12) !important;
  border-color: rgba(180, 83, 9, .25) !important;
}
[data-doc-group] article:target {
  outline: 3px solid rgba(110, 231, 255, .28);
  outline-offset: 4px;
}
.api-doc-idempotency-note {
  border-left: 3px solid rgba(52, 211, 153, .75);
  padding-left: .75rem;
}

/* Prominent return-to-home controls — 2026-07-11 */
.btn-doc-home {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(110, 231, 255, .58);
  background: linear-gradient(135deg, rgba(14, 165, 233, .96), rgba(79, 70, 229, .96));
  color: #fff !important;
  font-weight: 750;
  box-shadow: 0 10px 26px rgba(14, 165, 233, .24);
  text-decoration: none;
}
.btn-doc-home:hover,
.btn-doc-home:focus-visible {
  border-color: rgba(255, 255, 255, .8);
  background: linear-gradient(135deg, rgba(2, 132, 199, 1), rgba(67, 56, 202, 1));
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(79, 70, 229, .3);
  transform: translateY(-1px);
}
.hero-home-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1rem;
}
.hero-home-hint {
  max-width: 28rem;
}
html[data-bs-theme="light"] .btn-doc-home {
  border-color: rgba(2, 132, 199, .35);
  box-shadow: 0 10px 24px rgba(2, 132, 199, .2);
}
@media (max-width: 575.98px) {
  .hero-home-row .btn-doc-home {
    width: 100%;
    justify-content: center;
  }
  .hero-home-hint {
    width: 100%;
  }
  .doc-home-nav {
    min-width: 2.65rem;
    justify-content: center;
  }
}


/* Keep the accented home button legible inside the light-theme navbar. */
html[data-bs-theme="light"] nav.navbar .hero-actions .btn-doc-home,
html[data-bs-theme="light"] nav.navbar .hero-actions .btn-doc-home i {
  color: #fff !important;
}

/* Secure endpoint testing and sandbox controls — 2026-07-11 */
.endpoint-actions .api-test-text {
  padding: .35rem .2rem;
  border: 0;
  color: #67e8f9;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .22rem;
}
.endpoint-actions .api-test-text:hover,
.endpoint-actions .api-test-text:focus-visible {
  color: #fff;
  text-decoration-thickness: 2px;
}
.endpoint-actions .api-test-text.sandbox { color: #86efac; }
.endpoint-actions .api-test-text.sandbox:hover,
.endpoint-actions .api-test-text.sandbox:focus-visible { color: #dcfce7; }
.api-test-modal-content {
  border: 1px solid rgba(148, 163, 184, .25);
  background: linear-gradient(155deg, rgba(10, 18, 35, .99), rgba(20, 30, 52, .99));
  color: #e5eefb;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.api-test-modal-content .modal-header { border-bottom-color: rgba(148, 163, 184, .2); }
.api-test-modal-content .btn-close { filter: invert(1) grayscale(1); }
.api-test-modal-content .form-control,
.api-test-modal-content .form-select {
  background: rgba(2, 6, 23, .72);
  border-color: rgba(148, 163, 184, .28);
  color: #f8fafc;
}
.api-test-modal-content .form-control:focus,
.api-test-modal-content .form-select:focus {
  border-color: rgba(34, 211, 238, .75);
  box-shadow: 0 0 0 .2rem rgba(34, 211, 238, .14);
}
.api-test-result {
  max-height: min(62vh, 760px);
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 1rem;
  background: #020617;
}
.api-test-result code { min-height: 12rem; }
.sandbox-badge {
  border-color: rgba(34, 197, 94, .55) !important;
  background: rgba(34, 197, 94, .14) !important;
  color: #bbf7d0 !important;
}
.result-ok { color: #bbf7d0 !important; border-color: rgba(34,197,94,.55) !important; }
.result-fail { color: #fecaca !important; border-color: rgba(239,68,68,.55) !important; }
.page-edge-controls {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.page-edge-button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 231, 255, .48);
  background: linear-gradient(145deg, rgba(14, 165, 233, .96), rgba(79, 70, 229, .96));
  color: #fff;
  box-shadow: 0 12px 30px rgba(2, 8, 23, .32);
  transition: transform .15s ease, opacity .15s ease, filter .15s ease;
}
.page-edge-button:hover,
.page-edge-button:focus-visible { transform: translateY(-2px); filter: brightness(1.12); }
.page-edge-button.muted { opacity: .45; }
html[data-bs-theme="light"] .endpoint-actions .api-test-text { color: #0369a1; }
html[data-bs-theme="light"] .endpoint-actions .api-test-text.sandbox { color: #15803d; }
html[data-bs-theme="light"] .api-test-modal-content {
  background: #fff;
  color: #0f172a;
}
html[data-bs-theme="light"] .api-test-modal-content .btn-close { filter: none; }
html[data-bs-theme="light"] .api-test-modal-content .form-control,
html[data-bs-theme="light"] .api-test-modal-content .form-select {
  background: #fff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, .22);
}
@media (max-width: 575.98px) {
  .endpoint-actions { width: 100%; }
  .endpoint-actions .api-test-text { flex: 1 1 calc(50% - .5rem); text-align: left; }
  .page-edge-controls { right: 12px; bottom: 12px; }
  .page-edge-button { width: 43px; height: 43px; }
  .api-test-modal-content .modal-body { padding: 1rem; }
}
