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%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

#toggleThemeText {
    padding-top: 1.2rem;
    padding-left: 1.0rem;
}

.btn:focus,.btn:active {
    outline: none!important;
    box-shadow: none;
}

.btn:hover {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #0066a6;
}

a {
    text-decoration: none;
    color: #fff;
}

a:hover {
    color: rgba(255, 255, 255, 0.75);
}

.nav-link, .dropdown-item {
  color: #fff!important;
}

.nav-link:hover, .dropdown-item:hover {
  color: rgba(255, 255, 255, 0.75)!important;
}

/* Light theme overrides */
[data-bs-theme="light"] a {
  color: #000;
}

[data-bs-theme="light"] a:hover {
  color: rgba(0, 0, 0, 0.75);
}

[data-bs-theme="light"] .nav-link,
[data-bs-theme="light"] .dropdown-item {
  color: #000!important;
}

[data-bs-theme="light"] .nav-link:hover,
[data-bs-theme="light"] .dropdown-item:hover {
  color: rgba(0, 0, 0, 0.75)!important;
}

/* Footer links - ensure consistent styling */
.footer a {
  color: #fff!important;
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.75)!important;
}

[data-bs-theme="light"] .footer a {
  color: #000!important;
}

[data-bs-theme="light"] .footer a:hover {
  color: rgba(0, 0, 0, 0.75)!important;
}

/* Allow title tooltips on disabled links */
.nav-link.disabled {
    pointer-events: auto;
    cursor: not-allowed;
}

/* Prevent clicking */
.nav-link.disabled:hover {
    color: var(--bs-nav-link-disabled-color);
    text-decoration: none;
}

@media print {
  html,
  body,
  .container,
  main,
  header,
  footer,
  nav,
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  span,
  strong,
  div,
  a,
  .nav-link,
  .dropdown-item,
  .text-muted {
    color: #000 !important;
    background: #fff !important;
  }

  body {
    margin-bottom: 0;
  }

  #toggleThemeBtn,
  .print-hidden {
    display: none !important;
  }

  a,
  a:visited,
  a:hover,
  .footer a,
  .footer a:hover,
  .nav-link,
  .nav-link:hover,
  .dropdown-item,
  .dropdown-item:hover {
    color: #000 !important;
    text-decoration: none;
  }

  .border-bottom,
  .border-top {
    border-color: #000 !important;
  }

  .box-shadow {
    box-shadow: none !important;
  }
}
