/* Thanh dưới mobile — 5 cột đều, nền trắng, nút + tròn giữa */

.sidebar-mb {
  width: 100%;
  background: #fff;
  border-top: 1px solid #e8eaef;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.sidebar-mb__inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: stretch;
  gap: 0;
  max-width: 100%;
  min-height: 3.75rem;
  padding: 0.45rem 0.25rem 0.5rem;
  box-sizing: border-box;
}

.sidebar-mb__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.2rem 0.1rem;
  text-decoration: none;
  color: #64748b;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.sidebar-mb__item:hover,
.sidebar-mb__item:focus-visible {
  color: #334155;
  background: rgba(15, 23, 42, 0.04);
  outline: none;
}

.sidebar-mb__item.is-active {
  color: #1b77ee;
}

.sidebar-mb__item.is-active .sidebar-mb__ico {
  color: #1b77ee;
}

.sidebar-mb__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: currentColor;
}

.sidebar-mb__ico svg {
  width: 100%;
  height: 100%;
}

.sidebar-mb__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cột giữa — FAB, dấu + xoay 0° → 90° mỗi 2s */
.sidebar-mb__fab-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.sidebar-mb__fab {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(145deg, #93c5fc 0%, #60a5fa 45%, #3b82f6 100%);
  color: #fff;
  cursor: pointer;
  transform: translateY(-0.2rem);
  box-shadow:
    0 2px 2px rgba(255, 255, 255, 0.22) inset,
    0 8px 24px rgba(59, 130, 246, 0.32),
    0 3px 10px rgba(15, 23, 42, 0.12);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.2s ease,
    filter 0.2s ease,
    border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.sidebar-mb__fab-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    148deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.03) 30%,
    transparent 46%
  );
  pointer-events: none;
  z-index: 0;
}

.sidebar-mb__fab-icon {
  position: relative;
  z-index: 1;
  display: block;
  flex-shrink: 0;
  color: #fff;
  overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.28));
  width: 2rem;
  height: 2rem;
}

/* Mỗi 2s nhảy 90° (8s = 4 × 90°), không giật về 0 giữa chu kỳ */
.sidebar-mb__fab-plus {
    transform-origin: center;
    transform-box: fill-box;
    animation: sidebar-mb-plus-90 4s infinite;
  }
  
  @keyframes sidebar-mb-plus-90 {
    0% {
      transform: rotate(0deg);
    }
  
    /* chạy trong 25% đầu (0.5s) */
    25% {
      transform: rotate(90deg);
    }
  
    /* giữ nguyên trạng thái đến hết vòng */
    100% {
      transform: rotate(90deg);
    }
  }

.sidebar-mb__fab:hover {
  transform: translateY(-0.24rem) scale(1.03);
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(145deg, #a5d8ff 0%, #7dd3fc 38%, #60a5fa 100%);
  box-shadow:
    0 2px 3px rgba(255, 255, 255, 0.26) inset,
    0 12px 32px rgba(59, 130, 246, 0.38),
    0 5px 14px rgba(15, 23, 42, 0.14);
}

.sidebar-mb__fab:active {
  transform: translateY(-0.1rem) scale(0.98);
  box-shadow:
    0 2px 5px rgba(15, 23, 42, 0.18) inset,
    0 5px 18px rgba(59, 130, 246, 0.28),
    0 2px 6px rgba(15, 23, 42, 0.1);
  filter: brightness(0.97);
}

.sidebar-mb__fab:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-mb__fab-plus {
    animation: none;
    transform: rotate(0deg);
  }
}
