:root {
  --bslib-sidebar-main-bg: #f8f8f8;
}

.popover {
  --bs-popover-header-bg: #222;
  --bs-popover-header-color: #fff;
}

.popover .btn-close {
  filter: var(--bs-btn-close-white-filter);
}

.navigation-logo {
  white-space: nowrap; /* 阻止换行 */
  display: flex; /* 使用 Flexbox 布局 */
  align-items: center; /* 垂直居中对齐 */
}

.logo {
  width: 50px; /* Logo 的宽度 */
  height: auto; /* 自动调整高度以保持比例 */
  margin-right: 10px; /* Logo 和文字之间的间距 */
}

.welcome-modal-content {
  line-height: 1.6;
  color: #1f2933;
}

.welcome-modal-content h4 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.welcome-modal-content p {
  margin: 0 0 10px;
}

.demo-input-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-input-note {
  margin: 0;
  color: #44515f;
  font-size: 0.92rem;
  line-height: 1.45;
}

.demo-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-example-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #d8dde3;
  background: #fff;
  border-radius: 6px;
}

.demo-example-label {
  color: #5b6773;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.demo-example-row code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.result-table-grid shiny-data-frame .shiny-data-grid > table > thead > tr > th,
.result-table-grid shiny-data-frame .shiny-data-grid > table > thead > tr > td,
.result-table-grid shiny-data-frame .shiny-data-grid > table > tbody > tr > td {
  text-align: right;
}

.shiny-genomespy-output {
  height: 100%;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.card:has(.shiny-genomespy-output),
.card:has(.shiny-genomespy-output) > .card-body {
  min-height: 0;
  overflow: hidden;
}

.shiny-genomespy-output .genome-spy-app {
  height: 100%;
  min-height: 0;
}

.shiny-genomespy-output .genome-spy-workspace {
  display: flex;
  flex: 1 1 auto;
  height: auto !important;
  min-height: 0;
}

.shiny-genomespy-output .genome-spy {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.shiny-genomespy-output .genome-spy > .tooltip {
  opacity: 1 !important;
  visibility: visible;
  position: absolute;
  max-width: 450px;
  overflow: hidden;
  z-index: 1081;
  padding: 10px;
  font-size: 12px;
  background: #f6f6f6;
  color: #1d1f21;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.21);
  pointer-events: none;
}

.shiny-genomespy-output .genome-spy > .tooltip table {
  margin: 0;
  border-collapse: collapse;
}

.shiny-genomespy-output .genome-spy > .tooltip th,
.shiny-genomespy-output .genome-spy > .tooltip td {
  padding: 2px 0.4em;
  vertical-align: top;
  font-size: 12px;
}

.shiny-genomespy-output .genome-spy > .tooltip th {
  text-align: left;
  font-weight: 700;
}
