/* Make it feel app-like */
html,
body {
  height: 100%;
}

.bg-primary {
  background-color: #ff6600 !important;
}

/* Improve audio button readability and accessibility */
/* #audio-toggle-btn { */
/* background-color: #003754 !important; /* Deep blue for high contrast */
*/
  /* color: #fff !important; /* White text/icon for contrast */ */
  /* border: 2px solid #0d6efd !important; /* Bootstrap primary border */ */
/* } */
/* #audio-toggle-btn:focus, */
/* #audio-toggle-btn:active { */
/*   outline: 3px solid #ffdf00 !important; /* High-visibility yellow focus */ */
/*   outline-offset: 2px; */
/* } */
/* #audio-toggle-btn[aria-pressed="true"] { */
  /* background-color: #198754 !important; /* Bootstrap green when enabled */ */
  /* border-color: #145c32 !important; */
/* } */
/* #audio-toggle-icon { */
/*   color: #fff !important; /* Ensure icon is always white for contrast */ */
/* } */

/* Pulse animation for scan button */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(13, 110, 253, 0.12);
    transform: scale(1.06);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.6);
    transform: scale(1);
  }
}

.scan-pulse {
  animation: pulse 1.3s infinite cubic-bezier(0.4, 0, 0.6, 1);
  z-index: 5;
}
body {
  padding: 0;
  margin: 0;
  font-size: 1.1rem;
}
#app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.content {
  flex: 1;
  overflow: auto;
  padding: 0.75rem;
}

.totals-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: #fff;
  border-top: 1px solid #eee;
}
.history-list {
  max-height: 25vh;
  overflow: auto;
}
.navbar-nav .nav-item {
  flex: 1; /* Each button takes equal width */
}
.nav-link {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-top: 3px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; /* Fill the nav-item height */
}
.nav-link.active {
  border-top-color: #0d6efd;
}
.navbar.fixed-bottom {
  padding-top: 0; /* Remove extra space above buttons */
}

#top-navbar {
  border-bottom: 1px solid #eee;
  /* background-color: #DADADA; */
  background-color: #003754;
}

#oob-total-value {
  font-weight: bold;
  font-size: 1.2em;
  color: #eee;
}

@media (max-width: 576px) {
  #oob-total-value {
    font-size: 1.4em;
  }
}

.camera-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  z-index: 3;
}

.camera-controls > * {
  font-size: 1.1rem; /* Default font size for all children */
}

.top-camera-controls {
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  display: flex;
  justify-content: center;
  z-index: 3; /* Increase to ensure visibility */
}

.top-camera-controls > * {
  font-size: 1rem;
}
