/* ============================================================ */
/* BOTTOM NAVIGATION & MODERN SHELL FOR HABIT TRACKER PRO      */
/* AESTHETIC: FLOATING WARM GLASS DOCK & VIBRANT TACTILE TABS  */
/* ============================================================ */

/* Bottom Navigation Bar (Glass Dock) */
#bottom-nav {
  height: 4.35rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(44, 38, 34, 0.08);
  box-shadow: 0 -4px 24px -2px rgba(31, 26, 22, 0.06);
  transition: all 0.25s ease;
  z-index: 45;
}

.bottom-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem 0.65rem;
  min-width: 3.5rem;
  border-radius: 1rem;
  color: var(--text-secondary, #6E655F);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.bottom-nav-item:hover {
  color: var(--text-primary, #1F1A16);
  background: rgba(245, 241, 235, 0.5);
}

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

/* Tab Attivo con pillola color Sunset Coral e micro-glow */
.bottom-nav-item.active {
  color: #FF5A36 !important;
  font-weight: 700;
}

.bottom-nav-item.active::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  width: 2.25rem;
  height: 1.65rem;
  background: rgba(255, 90, 54, 0.12);
  border-radius: 9999px;
  z-index: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-item.active svg {
  color: #FF5A36 !important;
  stroke: #FF5A36 !important;
  transform: translateY(-2px) scale(1.08);
  stroke-width: 2.3;
  filter: drop-shadow(0 2px 6px rgba(255, 90, 54, 0.35));
  position: relative;
  z-index: 1;
}

.bottom-nav-item svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.2s ease, filter 0.2s ease;
  position: relative;
  z-index: 1;
}

.bottom-nav-item span {
  position: relative;
  z-index: 1;
  font-size: 0.6875rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* App Viewport Shell */
#app-viewport {
  flex: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Safe Area Inset Support per Smartphone & iPhone notch/home bar */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(4.35rem + env(safe-area-inset-bottom));
  }
}
