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;
}

/* Navbar Styling */
.navbar-custom {
  background-color: #15396C;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav .nav-link {
  color: #E0E0E0;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus {
  color: #FFF;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus {
  color: #FFF;
}

/* Login/Logout button styling */
.navbar-custom .navbar-nav .btn-link {
  color: #E0E0E0;
  text-decoration: none;
}

.navbar-custom .navbar-nav .btn-link:hover,
.navbar-custom .navbar-nav .btn-link:focus {
  color: #FFF;
  text-decoration: none;
}

/* DataTables Bottom Controls Layout */
.bottom {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  /*margin-top: 1rem;*/
}

.bottom-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.bottom-left .dt-length {
  display: inline-flex;
  align-items: center;
  margin: 0;
  white-space: nowrap;
}

.bottom-left .dt-paging {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.bottom-right {
  margin-left: auto;
}

.bottom-right .dt-info {
  margin: 0;
  white-space: nowrap;
}

/* Remove button border radius */
.btn {
  border-radius: 0 !important;
}

/* Instructions modal close button hover */
.instructions-close-btn {
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.instructions-close-btn:hover {
    background-color: #145480 !important;
    border-color: #145480 !important;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Enhanced Bootstrap Multi-Select Styling */
.multiselect-container {
    position: relative;
    width: 100%;
}

.multiselect-display {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.multiselect-display:hover {
    border-color: #86b7fe;
}

.multiselect-display.focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.multiselect-placeholder {
    color: #6c757d;
    font-size: 0.9rem;
}

.multiselect-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: #1C6DA6;
    color: white;
    border-radius: 4px;
    font-size: 0.875rem;
    gap: 6px;
}

.multiselect-tag-remove {
    cursor: pointer;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 0 4px;
    margin-left: 4px;
}

.multiselect-tag-remove:hover {
    background: rgba(255, 255, 255, 0.4);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-top: 4px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: none;
}

.multiselect-dropdown.show {
    display: block;
}

.multiselect-search {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}

.multiselect-search input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.multiselect-options {
    max-height: 250px;
    overflow-y: auto;
}

.multiselect-option {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.multiselect-option:hover {
    background-color: #f8f9fa;
}

.multiselect-option input[type="checkbox"] {
    cursor: pointer;
}

.multiselect-option.selected {
    background-color: #e7f3ff;
}

/* Hide original select */
.multiselect-original {
    display: none;
}