/* =============================================
   HAIRTEC TOOLBAR — Matterport-style bottom bar
   ============================================= */

.hairtec-toolbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, opacity 0.35s ease;
  contain: layout style;
  will-change: transform, opacity;
  box-sizing: border-box;
  font-family: inherit;
}

.hairtec-toolbar * {
  box-sizing: border-box;
}

.hairtec-toolbar-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* ── Toolbar Groups ── */
.hairtec-tb-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hairtec-tb-left {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 3px 4px;
}

.hairtec-tb-center {
  flex: 1;
  justify-content: center;
}

.hairtec-tb-right {
  gap: 4px;
}

/* ── Buttons ── */
.hairtec-tb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  margin: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* Ensure FA icons inside buttons render properly */
.hairtec-tb-btn i,
.hairtec-tb-btn .fa-solid {
  display: inline-block;
  width: auto;
  height: auto;
  font-size: inherit;
  line-height: 1;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.hairtec-tb-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hairtec-tb-btn:active {
  transform: scale(0.92);
}

/* Play button slightly larger */
.hairtec-tb-btn[data-action="play"] {
  width: 38px;
  height: 38px;
  min-width: 38px;
  font-size: 15px;
}

/* Right-side buttons: subtle bg */
.hairtec-tb-right .hairtec-tb-btn {
  background: rgba(255, 255, 255, 0.08);
}

.hairtec-tb-right .hairtec-tb-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Scene Indicator Dots ── */
.hairtec-tb-scene-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hairtec-tb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  padding: 0;
}

.hairtec-tb-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.3);
}

.hairtec-tb-dot-active {
  background: #fff;
  transform: scale(1.2);
}

.hairtec-tb-dot-active:hover {
  background: #fff;
}

/* ── Scene Transition Overlay ── */
.hairtec-transition-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  z-index: 50;
  pointer-events: none;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

.hairtec-transition-overlay.hairtec-active {
  opacity: 1;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .hairtec-toolbar {
    padding: 8px 10px;
  }

  .hairtec-tb-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 15px;
  }

  .hairtec-tb-btn[data-action="play"] {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 17px;
  }

  .hairtec-tb-dot {
    width: 10px;
    height: 10px;
  }
}
