/* Custom styles for REDAXO Docs */

/* Fix Bootstrap Icons font path */
@font-face {
  font-display: block;
  font-family: "bootstrap-icons";
  src: url("../fonts/bootstrap-icons.woff2") format("woff2"),
       url("../fonts/bootstrap-icons.woff") format("woff");
}

/* Sidebar navigation */
.docs-sidebar {
  position: sticky;
  top: 4.5rem;
  height: calc(100vh - 4.5rem);
  overflow-y: auto;
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
}

.docs-sidebar .nav-link {
  color: #333;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 0.25rem;
}

.docs-sidebar .nav-link:hover {
  background-color: #e9ecef;
  color: #000;
}

.docs-sidebar .nav-link.active {
  background-color: #0d6efd;
  color: #fff;
}

.docs-sidebar .nav-section-title {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  padding: 1rem 1rem 0.5rem;
  margin-top: 0.5rem;
}

.docs-sidebar .nav-section-title:first-child {
  margin-top: 0;
}

/* Search input */
.docs-search {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.docs-search input {
  font-size: 0.9rem;
}

/* Main content area */
.docs-content {
  padding: 2rem;
  max-width: none;
}

/* Navbar brand styling */
.navbar-brand {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand .bi {
  font-size: 1.5rem;
}

/* Card styling for homepage sections */
.doc-card {
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.doc-card .card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doc-card .card-title .bi {
  color: #0d6efd;
}

/* Section headers on homepage */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #0d6efd;
}

.section-header .bi {
  font-size: 1.5rem;
  color: #0d6efd;
}

/* Badge styling */
.badge-count {
  font-size: 0.75rem;
}

/* Footer styling */
.docs-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 2rem 0;
  margin-top: 3rem;
}

.docs-footer a {
  color: #6c757d;
}

.docs-footer a:hover {
  color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .docs-sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
    max-height: 50vh;
  }
}

/* Navigation filter - hide items that don't match search */
.nav-link.d-none {
  display: none !important;
}

/* Accordion styling for navigation groups */
.docs-sidebar .accordion-button {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: transparent;
  box-shadow: none;
}

.docs-sidebar .accordion-button:not(.collapsed) {
  background-color: #e9ecef;
  color: #000;
}

.docs-sidebar .accordion-body {
  padding: 0.25rem 0 0.5rem 0;
}

.docs-sidebar .accordion-body .nav-link {
  padding-left: 1.5rem;
}
