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

/* Table styling */
.table-responsive {
  overflow-x: auto;
}

.table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

/* Ensure striped tables use neutral (grey) stripes, not themed blue */
.table.table-striped {
  --bs-table-striped-bg: rgba(0, 0, 0, 0.03);
  --bs-table-striped-color: inherit;
}

/* Ensure header row is neutral regardless of theme */
.table thead.table-light th {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

/* Compact tables globally for index views */
.table.table-sm td, .table.table-sm th {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* Neutralize any custom blue row backgrounds that may come from older classes */
.table-primary > td, .table-primary > th {
  background-color: #e9f2ff !important;
}

/* Pagination styling */
.pagination {
  margin-bottom: 0;
}

.pagination .page-item.active .page-link {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.pagination .page-link {
  color: #0d6efd;
}

/* Card styling */
.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 0.75rem 1.25rem;
}

/* Badge styling */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

/* Form control spacing */
.input-group {
  margin-bottom: 0;
}

/* Animation for alerts */
.alert {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}