#navigation .submenu-list a.active {
  font-weight: 700;
  color: #000000;
}
#navigation .submenu.open > .submenu-toggle {
  font-weight: 700;
  color: #000000;
}
#navigation .submenu-toggle:focus {
  outline: none !important;
}

.component-page
  .component-list-card
  .list-group-item.list-group-item-action:hover {
  background-color: transparent !important;
}

.list-group-item-action:not(.active):active {
  background-color: transparent !important;
}

.list-group-item {
  background-color: transparent !important;
}

/* Navigation styles */
#navigation {
  padding: 0;
}

#navigation .category-header {
  border: none !important;
  padding: 0.5rem 1rem !important;
}

#navigation .category-header h5 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  margin: 0;
}

/* Submenu styles */
#navigation .submenu {
  padding: 0;
  margin-bottom: 2px;
}

#navigation .submenu > .submenu-toggle {
  text-align: left;
  background: transparent;
  border: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0 0.5rem;
  transition: all 0.2s ease;
  position: relative;
}

#navigation .submenu-toggle:hover {
  background-color: #f3f4f6;
}

#navigation .submenu-toggle:focus {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

#navigation .menu-icon {
  font-size: 1rem;
  width: 1.8rem;
  height: 1.8rem;
  margin-right: 0.75rem;
  color: #9ca3af;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border-radius: 8px;
  transition: all 0.2s ease;
}

#navigation .menu-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
}

#navigation .submenu.open > .submenu-toggle {
  background-color: #f3f4f6;
  color: #000000;
}

#navigation .submenu.open > .submenu-toggle .menu-icon {
  color: #000000;
  background-color: #e5e7eb;
}

#navigation .submenu.open > .submenu-toggle .menu-text {
  color: #000000;
}

#navigation .submenu-list {
  padding-left: 0;
  margin-left: 2.3rem;
  margin-right: 0.5rem;
  transition: height 0.25s ease, opacity 0.25s ease;
  overflow: hidden;
  border-left: 2px solid #e5e7eb;
}

#navigation .submenu-list.collapse.show {
  display: block !important;
}

#navigation .submenu-list.collapse:not(.show) {
  display: none;
}

#navigation .submenu-child {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border: none !important;
  background: transparent !important;
  color: #6b7280;
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 1px;
  transition: all 0.2s ease;
}

#navigation .submenu-child:hover {
  color: #000000 !important;
}

/* Documentation Content Styles */
#doc-content {
  line-height: 1.7;
  color: #333;
  font-size: 14px;
}

#doc-content h1,
#doc-content h2,
#doc-content h3,
#doc-content h4,
#doc-content h5,
#doc-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1f2937;
}

#doc-content h1 {
  font-size: 2rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

#doc-content h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.3rem;
}

#doc-content h3 {
  font-size: 1.25rem;
}

#doc-content h4 {
  font-size: 1.1rem;
}

#doc-content p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

#doc-content ul,
#doc-content ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

#doc-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

#doc-content code {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 0.85em;
  background-color: #f3f4f6;
  border-radius: 3px;
  color: #e11d48;
  font-weight: 600;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
}

#doc-content pre {
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85em;
  line-height: 1.45;
  background-color: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin: 1.5rem 0;
  position: relative;
}

#doc-content pre code {
  background: none !important;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0;
}

/* Prism.js syntax highlighting overrides */
#doc-content pre[class*="language-"] {
  background: #2d3748 !important;
  border: 1px solid #4a5568;
}

#doc-content code[class*="language-"] {
  color: #e2e8f0 !important;
  background: none !important;
  text-shadow: none;
}

/* Light theme code styling */
[data-pc-theme="light"] #doc-content pre[class*="language-"] {
  background: #f7fafc !important;
  border: 1px solid #e2e8f0;
}

[data-pc-theme="light"] #doc-content code[class*="language-"] {
  color: #2d3748 !important;
}

#doc-content blockquote {
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: #6b7280;
  border-left: 4px solid #3b82f6;
  background-color: #f8fafc;
  border-radius: 0 6px 6px 0;
}

#doc-content blockquote p {
  margin-bottom: 0;
  font-style: italic;
}

#doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

#doc-content th,
#doc-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

#doc-content th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
}

#doc-content tr:hover {
  background-color: #f9fafb;
}

#doc-content a {
  color: #3b82f6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

#doc-content a:hover {
  color: #1d4ed8;
  border-bottom-color: #3b82f6;
}

#doc-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#doc-content hr {
  border: none;
  height: 1px;
  background-color: #e5e7eb;
  margin: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #doc-content {
    font-size: 13px;
  }

  #doc-content h1 {
    font-size: 1.75rem;
  }

  #doc-content h2 {
    font-size: 1.3rem;
  }

  #doc-content h3 {
    font-size: 1.1rem;
  }

  #doc-content pre {
    padding: 0.75rem;
    margin: 1rem 0;
  }

  #doc-content blockquote {
    padding: 0.75rem 1rem;
    margin: 1rem 0;
  }
}

/* Dark theme styles */
[data-pc-theme="dark"] #navigation .category-header h5 {
  color: #9ca3af;
}

[data-pc-theme="dark"] #navigation .submenu-toggle:hover {
  background-color: #374151;
}

[data-pc-theme="dark"] #navigation .menu-icon {
  color: #6b7280;
  background-color: #374151;
}

[data-pc-theme="dark"] #navigation .menu-text {
  color: #6b7280;
}

[data-pc-theme="dark"] #navigation .submenu.open > .submenu-toggle {
  background-color: #374151;
}

[data-pc-theme="dark"] #navigation .submenu.open > .submenu-toggle .menu-icon {
  color: #ffffff;
  background-color: #4b5563;
}

[data-pc-theme="dark"] #navigation .submenu.open > .submenu-toggle .menu-text {
  color: #ffffff;
}

[data-pc-theme="dark"] #navigation .submenu-list {
  border-left-color: #4b5563;
}

[data-pc-theme="dark"] #navigation .submenu-child {
  color: #9ca3af;
}

[data-pc-theme="dark"] #navigation .submenu-child:hover {
  color: #ffffff !important;
}

[data-pc-theme="dark"] #navigation .submenu-child.active {
  color: #ffffff;
}

[data-pc-theme="dark"] #navigation .submenu.open > .submenu-toggle {
  color: #ffffff;
}

[data-pc-theme="dark"] #doc-content {
  color: #e5e7eb;
}

[data-pc-theme="dark"] #doc-content h1,
[data-pc-theme="dark"] #doc-content h2,
[data-pc-theme="dark"] #doc-content h3,
[data-pc-theme="dark"] #doc-content h4,
[data-pc-theme="dark"] #doc-content h5,
[data-pc-theme="dark"] #doc-content h6 {
  color: #f9fafb;
}

[data-pc-theme="dark"] #doc-content h1 {
  border-bottom-color: #374151;
}

[data-pc-theme="dark"] #doc-content h2 {
  border-bottom-color: #374151;
}

[data-pc-theme="dark"] #doc-content code {
  background-color: #374151;
  color: #fbbf24;
}

[data-pc-theme="dark"] #doc-content pre {
  background-color: #1f2937;
  border-color: #374151;
}

[data-pc-theme="dark"] #doc-content pre code {
  color: #e5e7eb;
}

/* Dark theme Prism.js overrides */
[data-pc-theme="dark"] #doc-content pre[class*="language-"] {
  background: #1a202c !important;
  border-color: #2d3748;
}

[data-pc-theme="dark"] #doc-content code[class*="language-"] {
  color: #e2e8f0 !important;
}

[data-pc-theme="dark"] #doc-content blockquote {
  background-color: #1f2937;
  color: #9ca3af;
  border-left-color: #60a5fa;
}

[data-pc-theme="dark"] #doc-content table {
  border-color: #374151;
}

[data-pc-theme="dark"] #doc-content th,
[data-pc-theme="dark"] #doc-content td {
  border-bottom-color: #374151;
}

[data-pc-theme="dark"] #doc-content th {
  background-color: #374151;
  color: #f9fafb;
}

[data-pc-theme="dark"] #doc-content tr:hover {
  background-color: #374151;
}

[data-pc-theme="dark"] #doc-content a {
  color: #60a5fa;
}

[data-pc-theme="dark"] #doc-content a:hover {
  color: #93c5fd;
  border-bottom-color: #60a5fa;
}

[data-pc-theme="dark"] #doc-content hr {
  background-color: #374151;
}

/* Theme toggle button */
#theme-toggle {
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  transform: scale(1.05);
}

#theme-icon {
  transition: transform 0.3s ease;
}

#theme-toggle:hover #theme-icon {
  transform: rotate(15deg);
}

/* Mobile sidebar toggle */
#sidebar-toggle {
  transition: all 0.3s ease;
}

#sidebar-toggle:hover {
  transform: scale(1.05);
}

/* Mobile responsive adjustments */
@media (max-width: 1199px) {
  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-brand {
    order: 2;
    margin: 0;
  }

  #sidebar-toggle {
    order: 1;
  }

  .navbar-nav {
    order: 3;
  }
}
