/* nav.css — bottom navigation, the ➕ FAB, and buttons.
 *
 * §43 of the concept doc asks for `Home | Leads | + | Follow-up | Me` with `+`
 * as the primary shortcut to Tambah Prospek. It is a raised centre item rather
 * than a fifth flat tab because it is the one action a marketing does dozens of
 * times a day and the four others are navigation.
 *
 * NO HEX. Every colour is var(--sn-*) from tokens.gen.css. */

.bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: var(--sn-surface);
  border-top: 1px solid var(--sn-outline-variant);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: var(--sn-elevation-2);
}

.bottomnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  /* 44px is the floor; 56 gives the label room and matches the till. */
  min-height: 56px;
  padding: 6px 2px;
  color: var(--sn-on-surface-variant);
  font-size: 11px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.bottomnav-item[aria-current="page"] {
  color: var(--sn-primary-text);
  font-weight: 600;
}
.bottomnav-glyph { font-size: 19px; line-height: 1; }

.bottomnav-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 6px;
  border-radius: var(--sn-shape-corner-full);
  background: var(--sn-primary);
  color: var(--sn-on-primary);
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--sn-elevation-4);
}
.bottomnav-fab:active { transform: scale(0.94); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--sn-shape-corner-medium);
  background: var(--sn-surface-container-high);
  color: var(--sn-on-surface);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--sn-primary); color: var(--sn-on-primary); }
.btn-success { background: var(--sn-success); color: var(--sn-on-success); }
.btn-outline {
  background: transparent;
  border-color: var(--sn-outline);
  color: var(--sn-on-surface);
}
.btn-text { background: transparent; color: var(--sn-primary-text); }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 auto; }

/* The three quick actions on a lead: WhatsApp, Telepon, Maps. Equal thirds so
   the thumb lands on the same spot on every lead. */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-actions .btn { padding: 0 6px; font-size: 13px; }

/* ── Sticky action bar for wizard steps ──────────────────────────────────── */

.sticky-actions {
  position: sticky;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 10px 0 0;
  background: linear-gradient(to top, var(--sn-background) 70%, transparent);
}
.sticky-actions > .btn { flex: 1; }
