.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  width: 100%;
  max-width: 48rem;
  z-index: 50;
  padding: 0.25rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
  background: var(--surface-container-lowest);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  height: 5.5rem;
  flex-shrink: 0;
  margin: 0 auto;
}

/* Desktop navigation - full width */
@media (min-width: 1025px) {
  .bottom-nav {
    max-width: 100%;
    padding: 0.25rem 2rem calc(0.5rem + env(safe-area-inset-bottom));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--on-surface-variant);
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s;
  position: relative;
  min-width: 3.5rem;
}

.bottom-nav-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nav-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  color: inherit;
  position: relative;
}

.nav-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  /* Stronger, brighter blue to make scan button easy to find */
  background: var(--fab-bg);
  color: var(--fab-text);
  box-shadow: 0 8px 26px var(--fab-shadow);
  margin-top: -1.5rem;
  transition: transform 0.12s, box-shadow 160ms ease;
}

.nav-fab:active {
  transform: scale(0.92);
}

.nav-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--fab-shadow);
}

.nav-fab:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(43,91,181,0.12), 0 8px 26px var(--fab-shadow);
}

.nav-badge {
  position: absolute;
  top: 0;
  right: -2px;
  width: 1.125rem;
  height: 1.125rem;
  background: var(--error);
  color: var(--on-error);
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 2px solid var(--surface-container-lowest);
  line-height: 1;
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  color: var(--on-surface-variant);
}

.nav-label--active {
  color: var(--primary);
  font-weight: 700;
}

.nav-indicator {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--primary);
  border-radius: var(--radius-full);
  margin-top: 0.125rem;
}

.bottom-nav-item.active .nav-icon-wrap {
  color: var(--primary);
}

.bottom-nav-item.active .nav-icon-wrap svg {
  stroke-width: 2.5;
}

.bottom-nav-item:hover {
  color: var(--primary);
  background: transparent;
  font-weight: 700;
}

.nav-elevated.active .nav-label {
  color: var(--tertiary);
}
