/* ==========================================================================
   7. Documentation Layouts
   ==========================================================================

/* Sidebar Active State Primary Background */
#docSidebarAccordion .list-group-item.active {
  background-color: var(--bs-primary) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#docSidebarAccordion .list-group-item.active i {
  color: #ffffff !important;
}

/* Visual indentation line for nested lists */
#docSidebarAccordion .border-start {
  border-left-color: #e9ecef !important;
}

/* Multi-level Accordion Styles */
.sub-accordion-btn {
  font-size: 0.875rem !important;
  color: #495057 !important;
}

.sub-accordion-btn:not(.collapsed) {
  color: #0d6efd !important;
  font-weight: 600 !important;
}

/* Adjust nested caret icon size */
.sub-accordion-btn::after {
  transform: scale(0.75);
}

/* Custom Inline Code Block styling
code {
    background-color: #f1f3f5;
    color: #d63384;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 88%;
} */

/* Custom Documentation Alert Callouts */
.callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid #dee2e6;
    border-radius: 0 6px 6px 0;
}

.callout-warning {
    background-color: #fff9db;
    border-left-color: #fab005;
}
.callout-warning h5, .callout-warning h6 {
    color: #f59f00;
}

.callout-info {
    background-color: #e7f5ff;
    border-left-color: #228be6;
}
.callout-info h5, .callout-info h6 {
    color: #1c7ed6;
}

/* Spacing and alignments inside modern ordered step lists */
.custom-steps .list-group-item {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}


/* Modernized Code Block Container with Copy Header */
.code-block-container {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  background-color: #212529;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2b3035;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #343a40;
  color: #adb5bd;
  font-size: 0.8rem;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.code-block-container pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: #f8f9fa;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

.code-block-container pre code {
  background-color: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: inherit !important;
}

.btn-copy-code {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease-in-out;
}

/* ==========================================================================
   Prism.js Dark Theme Overrides
   ========================================================================== */

/* Custom Token Colors matching VS Code Dark */
.token.tag,
.token.keyword {
  color: #569cd6 !important; /* Tag blue */
}

.token.attr-name {
  color: #9cdcfe !important; /* Attribute light-blue */
}

.token.attr-value,
.token.string {
  color: #ce9178 !important; /* String orange/brown */
}

.token.punctuation {
  color: #808080 !important; /* Grey brackets */
}

.token.comment {
  color: #6a9955 !important; /* Comment green */
  font-style: italic;
}

.token.function,
.token.class-name {
  color: #dcdcaa !important; /* Yellow functions */
}

.token.variable {
  color: #4ec9b0 !important; /* Teal variables */
}

/* Offsets scroll target position so headers remain visible below sticky navbars */
.bd-content h2[id],
.bd-content [id] {
  scroll-margin-top: 5rem; /* Adjust height based on your top navbar height */
}