.fab-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fab-btn {
  width: 23px;
  height: 23px;
  /*min-width: 30px;*/
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: #ffffff;
  position: relative;
  text-shadow: 0 1px 0 rgba(0,0,0,0.7);
  background: #043d22;
  border: 1px solid rgba(0,0,0,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 6px rgba(0,0,0,0.35);
  transition: filter .12s ease, background-color .12s ease;
}

.fab-btn > i {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
}

.fab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 3px rgba(142, 148, 163, 0.32), inset 0 1px 0 rgba(255,255,255,0.24);
  filter: brightness(1.08);
  background: #054a2a;
  text-shadow: 0 1px 0 rgba(0,0,0,0.65), 0 2px 5px rgba(6,120,70,0.4);
}

.fab-btn:active {
  transform: translateY(0);
}

.fab-menu {
  position: absolute;
  right: 0;
  top: auto;
  bottom: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  padding: 10px;
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
  min-width: 170px;
}

.fab-menu.fab-menu-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-menu-item {
  min-width: 160px;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, filter .2s ease, box-shadow .2s ease;
}

:root[data-bs-theme="dark"] .fab-menu {
  background: rgba(20, 25, 34, 0.92);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 16px 38px rgba(0,0,0,.4);
}

:root[data-bs-theme="dark"] .fab-menu-item {
  background-color: rgba(255,255,255,.08);
  color: #f8f9fa;
  border: 1px solid rgba(255,255,255,.1);
}

:root[data-bs-theme="light"] .fab-menu {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
}

:root[data-bs-theme="light"] .fab-menu-item {
  background-color: rgba(255,255,255,.95);
  color: #212529;
  border: 1px solid rgba(0,0,0,.08);
}
