/* global floating action button styles, used across all pages */
/* previous hide-logout rule removed to keep logout visible on mobile */
/* mobile floating action button (FAB) */
.fab {
  position: fixed;
  bottom: 28px;
  right: 8px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  /* allow overriding via JS if userConfigs.primaryColor is set */
  background: var(--fab-primary, rgba(51, 50, 50, 0.9));
  color: var(--fg, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  cursor: pointer;
}
.fab-icon { font-size: 24px; user-select: none; }
.fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.fab.open .fab-menu {
  opacity: 1;
  visibility: visible;
}
.fab-menu li {
  margin-bottom: 12px;
}
.fab-menu button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--fab-primary, rgba(51, 50, 50, 0.9));
  color: var(--fg, #fff) !important;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.fab-menu button:hover { background: var(--accent-light, #6f6eff); }

/* hide FAB on larger screens */
@media (min-width:801px){
  .fab { display: none; }
}
