/**
 * parent-bottom-nav.css — Bottom tab bar for parent dashboard (PWA mobile).
 */
.parent-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10200;
  pointer-events: auto;
  display: none;
  justify-content: space-around;
  align-items: center;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(12, 12, 36, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 204, 51, 0.15);
}

/* While a full-screen modal overlay is open, hide the nav so it neither
   covers the modal's lower content nor lets users navigate away mid-modal.
   body.modal-open is set deterministically by modal-open-observer.js;
   the :has() rule covers pages without the observer. */
body.modal-open .parent-bottom-nav,
body:has(> .fixed.inset-0:not(.hidden)) .parent-bottom-nav {
  visibility: hidden;
}

body.parent-magic-dashboard .parent-bottom-nav:not([hidden]),
body.parent-magic-view .parent-bottom-nav:not([hidden]),
body.parent-magic-library .parent-bottom-nav:not([hidden]) {
  display: flex;
}

/* Hide duplicate when native tab bar already mounted */
body.has-native-tab-bar .parent-bottom-nav {
  display: none !important;
}

.parent-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: rgba(244, 244, 255, 0.55);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-width: 56px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.parent-bottom-nav-btn .parent-bottom-nav-icon {
  font-size: 22px;
  line-height: 1;
}

.parent-bottom-nav-btn.is-active {
  color: #d8b35d;
}

.parent-bottom-nav-btn:focus-visible {
  outline: 2px solid #e3c36b;
  outline-offset: 2px;
  border-radius: 16px;
}

.parent-bottom-nav-btn:disabled,
.parent-bottom-nav-btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.parent-bottom-nav-btn:active {
  opacity: 0.85;
}
