/* nav.css — navigasi bawah 4 route (Checklist dipindah ke FAB) */

.app-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-width: 430px;
  margin: 0 auto;
  height: calc(74px + env(safe-area-inset-bottom));
  padding: 0 8px env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-item {
  position: relative;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 2px;
  color: var(--muted-2);
  /* 14px: label nav ikut naik. white-space normal membuat
     "Saldo Hutang" turun satu baris di layar 360px, tidak menabrak kolom sebelah. */
  font-size: var(--fs-10);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.1px;
  text-align: center;
  white-space: normal;
  transition: color .16s ease;
}

.nav-item svg { width: 25px; height: 25px; }

.nav-item.is-active { color: var(--emerald); }

.nav-item.is-active::before {
  content: "";
  position: absolute;
  top: 5px;
  width: 26px;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--emerald);
}

.nav-item:active { color: var(--deep-2); }
