html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.5rem;
}

.docs-sidebar {
  border-right: 1px solid #dee2e6;
  padding-right: 1rem;
}

.docs-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav-link {
  color: #1d3557;
  display: block;
  padding: 0.4rem 0.55rem;
  text-decoration: none;
  border-radius: 0.375rem;
}

.docs-nav-link:hover {
  background-color: #edf2fb;
}

.docs-nav-link.active {
  background-color: #dbe4ff;
  font-weight: 600;
}

.docs-content {
  max-width: 100%;
  overflow-x: auto;
  padding-right: 0.5rem;
}

.docs-content img {
  max-width: 100%;
  height: auto;
}

.docs-content table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.docs-content table th,
.docs-content table td {
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
}

.docs-content pre {
  background: #f8f9fa;
  border-radius: 0.375rem;
  padding: 0.75rem;
}

.docs-content pre.mermaid {
  background: #fff;
  border: 1px solid #e9ecef;
  overflow-x: auto;
}

.docs-content pre.mermaid svg {
  display: block;
  max-width: none !important;
}

.docs-content pre.mermaid svg foreignObject {
  overflow: visible;
}

.docs-content pre.mermaid .nodeLabel p {
  white-space: normal;
}

@media (max-width: 992px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    border-right: 0;
    border-bottom: 1px solid #dee2e6;
    padding-right: 0;
    padding-bottom: 1rem;
  }
}
