html,
body {
  font-family: "Roboto", sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--color-gray-light);
  font-size: 14px;
}

/* bulma override */
.modal-card-head {
  /* background-color: #c0e8ff !important; */
  background: linear-gradient(90deg, hsla(239, 100%, 67%, 1) 0%, hsla(187, 100%, 89%, 1) 100%) !important;
}

/* reset a tags */
a {
  text-decoration: none;
  color: inherit;
}

.icon-text {
  align-items: center;
}

.modal-card-title .has-text-info,
.modal-card-title .icon-text {
  color: var(--color-white) !important;
}

.button.is-primary.is-default {
  border-radius: 9999px !important;
}

/* end bulma override */

/* search */
.search-button {
  /* height: 3rem; */
  font-size: 1.3rem !important;
  background: var(--color-gradient-header);
  border: none;
  transition: all 0.3s ease;
}

.search-button:hover {
  box-shadow: 0 5px 15px rgba(67, 133, 206, 0.4);
}

.search-input {
  height: 3rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: none;
}

.search-input:focus {
  box-shadow: 0 0 0 2px rgba(67, 133, 206, 0.25);
}

/* end search */

/* Key layout styles */
.app-container {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  width: 100%;
  background-color: #F7F9FB;
}

.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  /* Glassmorphism effect */
  /* background: rgba(255, 255, 255, 0.25); */
  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
  /* border-radius: 12px; */
  /* border: 1px solid rgba(255, 255, 255, 0.18); */
  /* box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); */
  padding: 15px 15px 15px 0;
  /* margin: 20px;   */
  color: var(--color-gray-dark);
}



/* DataTable responsive scrolling */
.dataTables_wrapper {
  overflow-x: auto;
}

.dataTables_scrollBody {
  overflow-x: auto !important;
  overflow-y: visible !important;
}



.min-h-1 {
min-height: 0.25rem;
} 

.min-h-4 {
  min-height: 1rem;
}

.min-h-64 {
  min-height: 16rem;
}

.min-h-hvh {
  min-height: 50vh;
}


/* Better mobile table styling */
@media screen and (max-width: 768px) {
  .main-content {
    padding: 20px;
    margin: 10px 10px;
    border-radius: 12px;
  }
}

@media screen and (max-width: 480px) {
  .main-content {
    padding: 15px;
    margin: 5px 5px;
    border-radius: 8px;
  }

  .dataTables_wrapper .dataTables_scrollBody {
    -webkit-overflow-scrolling: touch;
  }

  .dataTables_wrapper .dataTables_scrollHead table,
  .dataTables_wrapper .dataTables_scrollBody table {
    min-width: 600px;
    /* Ensure minimum width for scrolling */
  }
}

.title-container {
  /* max-width: 48px; */
  max-height: 48px;
}

.title-container h1 {
  position: relative;
  font-size: 2rem;
  letter-spacing: -0.5px;
}

.title-container .has-text-primary {
  background: var(--color-gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
  font-weight: 800;
}

.title-container .has-text-info {
  font-weight: 800;
}

/* Subtle glow effect on hover */
.logo-container:hover .title-container h1 {
  text-shadow: 0 0 15px rgba(50, 115, 220, 0.3);
}

.navbar {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-item img {
  max-height: 2.5rem;
}

.card {
  transition: all 0.3s ease;
  /* height: 100%; */
}

.card:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-card {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: unset;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.icon-large {
  font-size: 2.5rem;
}

table.is-hoverable tbody tr:hover {
  background-color: var(--color-blue-sky) !important;
}

/* 
.visitor-header {
  background: var(--color-gradient-primary);
} */

.circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #005088;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  font-size: 1.5rem;
}

.modern-btn {
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-weight: 500;
  border: none;
  letter-spacing: 0.5px;
  height: 2.25em;
}

.modern-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.modern-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.modern-btn.is-primary {
  background-image: var(--color-gradient-success);
}

.modern-btn.is-danger {
  background-image: var(--color-gradient-danger);
}

.modal-card {
  overflow: auto !important;
}

/* ------------------------------------------------------Select2 customizations------------------------------------*/

/* Select2 custom styles for lab logos */
.lab-logo {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  object-fit: cover;
  vertical-align: middle;
}

.select2-container--default .select2-selection--single {
  border-radius: 12px 0 0 12px;
  /* for rounded look */
  height: 2.5em;
  padding-top: 0.3em;
}

.select2-container--default .select2-results__option {
  padding: 6px 12px;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid var(--color-gray-border);
  border-radius: 4px;
  padding: 0.375em 0.75em;
  /* min-height: 2.25em; */
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--color-teal);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  padding: 0.25em 0.75em;
  margin-top: 0.25em;
  margin-right: 0.25em;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.select2-container .select2-search--inline {
  float: unset !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  border-radius: 50%;
}

.select2-selection__choice__remove span {
  line-height: 0;
  color: var(--color-white);
}

.select2-selection__choice__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 4px;
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  background: none;
}

.select2-selection__rendered span {
  display: flex;
  align-items: center;
}

/* sorting selection */

.c-sort {
  cursor: pointer;
  justify-content: center;
  /* padding-bottom: calc(.5em - 1px); */
  padding-left: 1em;
  padding-right: 1em;
  padding-top: calc(0.5em - 1px);
  text-align: center;
  white-space: nowrap;
  border-radius: 9999px;
}

.c-sort #sortSelect {
  border-radius: 9999px;
}

.c-sort-icon {
  left: 1.25rem !important;
  top: 5px !important;
}
