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 3px var(--primary);
  outline: none;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Fix for anchor tags overflowing list items */
ul li a {
  display: block;
  text-decoration: none;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: block;
  text-decoration: none;
}

/* Ensure dropdown menus are properly contained */
.dropdown-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-item {
  display: block;
  text-decoration: none;
}

/* Allow dropdowns to overflow properly */
.dropdown {
  position: relative;
}

.dropdown-menu {
  z-index: 9999;
}

/* DataTables responsive improvements */
.dataTables_wrapper {
  padding: 20px 0;
}

table.dataTable thead th {
  border-bottom: 2px solid rgba(156, 106, 222, 0.2) !important;
}

table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd {
  background-color: rgba(156, 106, 222, 0.02);
}

table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover {
  background-color: rgba(156, 106, 222, 0.05) !important;
}

.dataTables_wrapper .dataTables_paginate {
  padding-top: 1rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  padding-bottom: 1rem;
}