html {
  font-size: 14px;
}

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

html {
  position: relative;
  min-height: 100%;
  /* Force scrollbar to always be visible - this prevents modal shift */
  overflow-y: scroll;
  
  /* Prevent width changes when content height changes */
  width: 100vw;
  
  /* Prevent horizontal scrollbar */
  overflow-x: hidden;
}

/* Enhanced fix for Bootstrap modal scrollbar compensation */
body {
  /* Prevent Bootstrap from hiding overflow when modal opens */
  overflow-y: auto !important;
  
  /* Ensure consistent padding to account for scrollbar */
  padding-right: 0 !important;
  
  transition: none;
}

/* Prevent Bootstrap from adding padding-right when modal is open */
.modal-open {
  padding-right: 0 !important;
  overflow-y: auto !important;
}

/* Ensure content doesn't cause horizontal overflow */
.container, .container-fluid {
  overflow-x: hidden;
}

/* Additional fix for modal backdrop to work properly with forced scrollbar */
.modal-backdrop {
  /* Ensure backdrop covers the full viewport including scrollbar area */
  right: 0 !important;
}