
/* Bottom Dock Navigation (mobile) */
@media (max-width: 900px){
  .bottom-dock{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    align-items: center;
    justify-items: center;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    z-index: 2147483601;
  }
  .bottom-dock a{
    text-decoration: none;
    color: #4b5563;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .bottom-dock .icon{
    font-size: 18px;
    line-height: 1;
  }
  .bottom-dock a.active{
    color: #0d6efd;
    font-weight: 600;
  }
  body.with-bottom-dock{
    padding-bottom: 60px; /* prevent content underlap */
  }
}


/* Keep any floating round buttons above the dock if present */
@media (max-width: 900px){
  body.with-bottom-dock .fab-container { 
    bottom: calc(16px + 60px) !important; 
  }
  body.with-bottom-dock .fab-menu { 
    bottom: calc(86px + 60px) !important; 
  }
  /* generic helpers in case other round floats exist */
  body.with-bottom-dock .floating-round,
  body.with-bottom-dock .btn.rounded-circle.fixed-bottom,
  body.with-bottom-dock .btn.rounded-circle.position-fixed {
    bottom: calc(16px + 60px) !important;
  }
}


/* Force bottom dock to single row with responsive sizing */
.bottom-dock, nav.bottom-dock, #bottom-dock{
  position: fixed;
  left: 8px; right: 8px; bottom: 8px;
  z-index: 2147483000;
  display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center;
  gap: var(--dock-gap, 6px);
  padding: 6px 8px;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.bottom-dock .dock-item, #bottom-dock .dock-item{
  flex: 0 1 auto;
}
#bottom-dock .dock-btn, .bottom-dock .dock-btn{
  width: var(--dock-size, 48px);
  height: var(--dock-size, 48px);
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: calc(var(--dock-size, 48px) * 0.44);
  line-height: 1;
}
#bottom-dock .dock-label{ font-size: 11px; margin-top: 2px; }

@media (max-width: 360px){
  :root{ --dock-size: 40px; --dock-gap: 4px; }
}
@media (min-width: 361px) and (max-width: 389px){
  :root{ --dock-size: 44px; --dock-gap: 6px; }
}
@media (min-width: 390px){
  :root{ --dock-size: 48px; --dock-gap: 8px; }
}

