:root {
  --sidebar-width: 280px;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}
.docs-sidebar {
  position: fixed;
  top: 56px;
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - 56px);
  overflow-y: auto;
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
  padding: 1.5rem 1rem;
  z-index: 1000;
}
.docs-content {
  margin-left: var(--sidebar-width);
  padding: 2rem 3rem;
  padding-top: calc(56px + 2rem);
  max-width: none;
}
.docs-toc {
  position: fixed;
  top: 76px;
  right: 20px;
  width: 220px;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 5px;
  font-size: 0.9rem;
}
.toc-list {
  list-style-type: none;
  padding-left: 0;
}
.toc-list li {
  margin-bottom: 0.5rem;
}
.toc-list .toc-sublist {
  padding-left: 1rem;
  list-style-type: none;
}
.toc-link {
  color: #495057;
  text-decoration: none;
}
.toc-link:hover {
  color: #0d6efd;
}
.docs-header {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #dee2e6;
}
.section {
  margin-bottom: 2.5rem;
}
.section-title {
  margin-bottom: 1.5rem;
  color: #212529;
  font-weight: 600;
}
.code-block {
  border-radius: 5px;
  margin: 1rem 0;
  background-color: #f8f9fa;
}
.info-box {
  background-color: #e8f4fd;
  border-left: 4px solid #0d6efd;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 5px 5px 0;
}
.warning-box {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 5px 5px 0;
}
.tip-box {
  background-color: #d1e7dd;
  border-left: 4px solid #198754;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 5px 5px 0;
}
.sidebar-item {
  padding: 0.5rem 0;
}
.sidebar-link {
  color: #495057;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.sidebar-link:hover {
  color: #0d6efd;
}
.sidebar-link.active {
  color: #0d6efd;
  font-weight: 600;
}

/* Multi-level sidebar styles */
.sidebar-nav .sidebar-dropdown-toggle {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.sidebar-dropdown-toggle[aria-expanded="true"] .dropdown-icon {
  transform: rotate(90deg);
}

.sidebar-submenu {
  padding-left: 1.2rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  border-left: 1px solid #dee2e6;
}

.sidebar-submenu .sidebar-link {
  font-size: 0.95rem;
  padding: 0.4rem 0;
}

.sidebar-submenu .sidebar-submenu {
  padding-left: 1rem;
  font-size: 0.9rem;
}

.sidebar-submenu .sidebar-submenu .sidebar-link {
  font-size: 0.9rem;
  padding: 0.3rem 0;
}
@media (max-width: 992px) {
  .docs-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
  }
  .docs-sidebar.show {
    transform: translateX(0);
  }
  .docs-content {
    margin-left: 0;
    padding: 1rem;
    padding-top: calc(56px + 1rem); /* Adjust top padding for mobile */
  }
  .docs-toc {
    display: none;
  }
  .sidebar-toggle {
    display: block !important;
  }

  .navbar-brand {
    width: auto !important;
    }
}
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
}

/* Sidebar collapse/expand styles */
.sidebar-collapse-btn {
  padding: 0.25rem 0.5rem;
  color: #6c757d;
}

.sidebar-collapse-btn:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
}

body.sidebar-collapsed .docs-sidebar {
  margin-left: -280px; /* Adjust to match your sidebar width */
}

body.sidebar-collapsed .docs-content {
  margin-left: 0;
}

.sidebar-expand-btn {
  position: fixed;
  top: 70px;
  left: 10px;
  z-index: 100;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Smooth transition for sidebar */
.docs-sidebar,
.docs-content,
.sidebar-expand-btn {
  transition: all 0.3s ease;
}

.highlight-section {
  animation: highlight-fade 2s;
}

@keyframes highlight-fade {
  0% {
    background-color: rgba(13, 110, 253, 0.1);
  }
  100% {
    background-color: transparent;
  }
}

.sidebar-link.active-parent {
  color: var(--bs-primary);
  font-weight: 500;
  background-color: rgba(13, 110, 253, 0.05);
  border-left: 3px solid var(--bs-primary);
  padding-left: calc(1rem - 3px); /* Adjust padding to compensate for border */
}

/* For dark mode */
[data-bs-theme="dark"] .sidebar-link.active-parent {
  color: #8bb9fe;
  background-color: rgba(13, 110, 253, 0.15);
  border-left-color: #8bb9fe;
}

/* Table styling */
.table td {
  vertical-align: middle;
}

/* Optional: Style table headers as well */
.table th {
  vertical-align: middle;
}

/* If you want to target specific tables, use a more specific selector */
.table-striped td,
.table-bordered td {
  vertical-align: middle;
}

.table {
  margin-bottom: 1.5rem;
}

.table-responsive {
  margin-bottom: 2rem;
}

/* Add slight padding to cells for better spacing */
.table td,
.table th {
  padding: 0.75rem;
}

/* Improve code display in tables */
.table code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.875em;
}

/* Hide main toggle button on desktop when we have the header toggle */
@media (min-width: 992px) {
  #sidebarToggle {
    display: none;
  }
}

/* Breadcrumb styling */
.docs-breadcrumb {
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  background-color: transparent;
}

.breadcrumb {
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.03);
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
}

.docs-breadcrumb a {
  text-decoration: none;
}

.docs-breadcrumb a:hover {
  text-decoration: underline;
}

/* Search styling */
.search-form {
  width: 100%;
  max-width: 400px;
}

@media (max-width: 768px) {
  .search-form {
    max-width: 200px;
  }
}

.search-results {
  position: relative;
  z-index: 1000;
}

.search-result-item {
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.search-result-item:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: bold;
  color: #0d6efd;
}

.search-result-path {
  font-size: 0.8rem;
  color: #6c757d;
}

.search-result-text {
  margin-top: 5px;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-highlight {
  background-color: rgba(255, 230, 0, 0.4);
  padding: 0 2px;
}

/* Search styling */
#searchResultsCard {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.list-group-item-action:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

.search-form {
  width: 100%;
  max-width: 300px;
}

@media (max-width: 768px) {
  .search-form {
    max-width: 180px;
  }
}

/* Keyboard shortcut indicator */
.search-shortcut {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0 4px;
  font-size: 0.7em;
  color: #6c757d;
}

/* Search highlight styling */
.search-highlight {
  background-color: rgba(255, 255, 0, 0.4);
  padding: 0 2px;
  border-radius: 2px;
}

/* Language badge styling */
.list-group-item .badge {
  font-size: 0.7rem;
}

/* Language tabs styling */
.language-tabs .btn-group {
  max-width: 100%;
}

.language-tabs .btn {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}

/* Search highlighting */
.search-highlight {
  background-color: rgba(255, 255, 0, 0.4);
  padding: 0 2px;
  border-radius: 2px;
}

/* Language badge styling */
.list-group-item .badge {
  font-size: 0.7rem;
  margin-left: 8px;
}

/* Language tabs */
.language-tabs .btn-group {
  width: 100%;
}

.language-tabs .btn {
  font-size: 0.8rem;
}

/* Search modal styling */
#searchResultsModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

#searchResultsModal .list-group {
  border-radius: 0;
}

#searchResultsModal .list-group-item:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

#searchResultsModal .list-group-item:last-child {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#searchResultsModal .modal-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80%;
}

/* Language filter buttons in modal */
#searchResultsModal .language-tabs {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: white;
  padding-top: 0.5rem;
}

/* Enhanced search styling */
.search-form {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-form .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.search-shortcut {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

/* Search suggestions dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1050;
}

.search-suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover {
  background-color: #f8f9fa;
}

.search-suggestion-item .suggestion-title {
  font-weight: bold;
  margin-bottom: 2px;
}

.search-suggestion-item .suggestion-context {
  font-size: 0.8rem;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-item .suggestion-badge {
  font-size: 0.65rem;
  padding: 1px 5px;
  margin-left: 5px;
}

/* Modal search results styling */
#searchResultsModal .modal-body {
  padding: 0;
}

#searchResultsModal .list-group {
  border-radius: 0;
  margin-bottom: 0;
}

#searchResultsModal .list-group-item {
  border-left: none;
  border-right: none;
}

#searchResultsModal .list-group-item:first-child {
  border-top: none;
}

#searchResultsModal .list-group-item:last-child {
  border-bottom: none;
}

/* Search result highlight */
.search-highlight {
  background-color: rgba(255, 255, 0, 0.4);
  padding: 0 2px;
  border-radius: 2px;
}

/* Footer for search modal */
#searchResultsModal .modal-footer {
  border-top: 1px solid #e9ecef;
  justify-content: space-between;
}

.navbar-brand {
    width: var(--sidebar-width) ;
}
#extract-step, #transform-step, #load-step {
  .table tr td span.bg-danger {
    --bs-bg-opacity: 1;
      /* background-color: rgba(var(--bs-info-rgb), var(--bs-bg-opacity)) !important; */
      /* background: #c2e7ff !important;
      color: #004a77; */
      background: #4285f4 !important;
      color: white !important;
  }
}
#extract-step, #transform-step, #load-step {
  .table tr td code {
    color: #0a22ca;
    font-weight: bold;
    background-color: unset !important;
  }
  .table tr.table-primary {
    background: #ecf3fe !important;
  }
}

#fieldMappingModal {
  .table-bordered>:not(caption)>*>* {
      border-width: 0;
  }
}

