html {
  font-size: 14px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  position: relative;
  min-height: 100%;
}

@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;
}

body {
  margin-bottom: 60px;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

@keyframes slide-from-right {
  from {
    transform: translateX(90px);
  }
}

@keyframes slide-to-left {
  to {
    transform: translateX(-90px);
  }
}

/* define animations for the old and new content */
::view-transition-old(slide-it) {
  animation: 180ms cubic-bezier(0.4, 0, 1, 1) both fade-out,
    600ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
}

::view-transition-new(slide-it) {
  animation: 420ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in,
    600ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
}

body {
  margin-bottom: 60px;
  view-transition-name: slide-it;
}

.navbar {
  view-transition-name: main-header-text;
  animation: none;
  mix-blend-mode: normal;
}

footer {
  view-transition-name: footer;
  animation: none;
  mix-blend-mode: normal;
}

.clickable-row {
  cursor: pointer;
}

/* Add these styles */
.dashboard .card {
  transition: transform 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dashboard .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dashboard .placeholder {
  background-color: #e9ecef;
  border-radius: 4px;
}

.dashboard .card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.dashboard .list-group-item i {
  margin-right: 8px;
}

.dashboard .btn i {
  margin-right: 4px;
}

/* Add these styles to your site.css */
[data-theme-icon-active] {
  display: inline-block;
}

[data-theme-icon-inactive] {
  display: none;
}

.theme-icon-active {
  display: inline-block !important;
}

[data-theme-icon-active]:not(.theme-icon-active) {
  display: none;
}

/* Question transitions */
.question {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  scroll-margin-top: 100px;
}

.question.fade-out {
  opacity: 0;
}

.question.fade-in {
  opacity: 1;
}

[id$="-suggestions"] {
  position: relative;
  z-index: 1000;
}

[id$="-suggestions"] .list-group {
  max-height: 200px;
  overflow-y: auto;
}

.single-metric-container {
  min-width: 6em;
  text-wrap: nowrap;
}

.accordion-button.top-row::after {
  visibility: hidden;
}

.accordion-button::after {
  position: absolute;
}

.accordion-button.no-body-metrics::after {
  visibility: hidden;
}

.accordion-header h5 {
  font-weight: bold;
}

.htmx-request.htmx-indicator {
  animation: slow-pulse 2s ease infinite;
}

@keyframes slow-pulse {
  0% {
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}