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: 0;
}

/* Ensure footer sticks to bottom */
main {
  padding-bottom: 2rem;
}

/* Admin pages specific styling */
.container-fluid {
  padding-bottom: 2rem;
}

/* Mobile specific footer spacing */
@media (max-width: 768px) {
  main {
    padding-bottom: 3rem;
  }
  
  footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  /* Ensure footer is visible on mobile */
  footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Admin page specific styles */
.admin-page-container {
  position: relative;
  z-index: 1;
}

/* Index page specific styles */
.index-page-container {
  position: relative;
  z-index: 1;
}

/* Ensure footer stays at bottom on admin and index pages */
body:has(.admin-page-container) footer,
body:has(.index-page-container) footer {
  position: relative;
  margin-top: auto;
  z-index: 100;
}

/* Fallback for browsers that don't support :has() */
.admin-page-container ~ footer,
.index-page-container ~ footer {
  position: relative;
  margin-top: auto;
  z-index: 100;
}