/* Navigation Flottante Mobile (Barre Sombre Flat, Pastille Orange & Icone Blanche) & Top Navbar - Whisp It */

/* Top Navbar */
.top-navbar {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 8px 4px 16px 4px;
  view-transition-name: top-navbar;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.navbar-desktop-nav {
  display: none;
}

.brand-dot-orange {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-orange);
}

/* 1. Barre de Navigation Flottante Mobile (Marges aerees & Format compact) */
.bottom-nav-bar {
  position: fixed;
  bottom: 14px;
  bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) * 0.4 + 8px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 56px);
  max-width: 308px;
  height: 52px;
  background-color: rgba(18, 18, 22, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  view-transition-name: bottom-nav-bar;
  padding: 5px;
  box-sizing: border-box;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Masquer la barre de navigation flottante mobile lors de la consultation d un compte-rendu plein ecran */
body:has(#meeting-detail-view.active) .bottom-nav-bar,
.meeting-detail-view.active ~ .bottom-nav-bar,
.app-container:has(#meeting-detail-view.active) .bottom-nav-bar {
  transform: translate(-50%, 120px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Indicateur Glissant Elastique (Pastille Orange #ff5e3a Flat) */
.bottom-nav-indicator {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  background-color: var(--accent-orange, #ff5e3a);
  border-radius: var(--radius-pill);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  box-shadow: none;
  transition: transform 0.32s cubic-bezier(0.34, 1.45, 0.64, 1), width 0.25s ease, opacity 0.2s ease;
  will-change: transform, width;
}

/* Elements de Navigation */
.bottom-nav-item {
  flex: 1;
  height: 100%;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  position: relative;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.34, 1.5, 0.64, 1);
}

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

.bottom-nav-item.active {
  color: #ffffff;
}

.bottom-nav-item:not(.active):hover {
  color: #d4d4d8;
}

.bottom-nav-item svg {
  transition: transform 0.22s cubic-bezier(0.34, 1.45, 0.64, 1);
}

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