/* Theme overrides
   Define your brand colors here (optional).
   Sneat uses CSS variables; these overrides affect primary color tokens.
*/
:root {
  /* Example: uncomment and adjust */
  /* --bs-primary: #3f51b5; */
  /* --bs-primary-rgb: 63, 81, 181; */
}

/* Example: avatar initials sizing */
.avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-weight: 600;
}


/* Optional: global loading state (used by htmx hooks) */
.is-loading body { cursor: progress; }

/* Navbar global search: active row for keyboard navigation */
.global-search-item {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.global-search-item-active,
.global-search-item[aria-selected="true"] {
  background-color: rgba(var(--bs-primary-rgb), 0.12);
  box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.22);
}

.global-search-item-active span,
.global-search-item[aria-selected="true"] span {
  font-weight: 600;
}

.autocomplete-select-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 1200;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.25rem rgba(67, 89, 113, 0.2);
  max-height: 260px;
  overflow-y: auto;
}

.autocomplete-select-menu .list-group-item {
  cursor: pointer;
  background-color: var(--bs-body-bg);
  border-color: var(--bs-border-color-translucent);
}

.autocomplete-select-item-active {
  background-color: rgba(var(--bs-primary-rgb), 0.12);
  border-color: rgba(var(--bs-primary-rgb), 0.22);
}

.mobile-scanner-fab {
  display: none;
}

@media (max-width: 767.98px) {
  .mobile-scanner-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1085;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bs-primary), #2b7fff);
    color: #fff;
    box-shadow: 0 0.75rem 1.5rem rgba(var(--bs-primary-rgb), 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .mobile-scanner-fab:hover,
  .mobile-scanner-fab:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem rgba(var(--bs-primary-rgb), 0.42);
  }

  .mobile-scanner-fab i {
    font-size: 1.45rem;
    line-height: 1;
  }
}
