/* ==========================================================================
   css/components/voice-bar.css
   Split from app.html (build 2026.10.08.9-beta), original lines 911-1001.
   Rules are in their ORIGINAL order; load order is defined in index.html.
   ========================================================================== */
.voice-bar {
  background: #1e1f24;   /* match the retuned user panel so the two read as ONE joined card (was #36373E) */
  border: 1px solid var(--border-strong);
  border-radius: 8px 8px 0 0;
  position: fixed;
  left: 6px;      /* match the user panel's 6px edge gap */
  bottom: 64px;   /* flush on top of the 58px panel that sits at bottom:6px (6+58) */
  width: calc(64px + var(--ch-w, 193px) - 12px); /* server rail(64) + sidebar, 6px inset each side */
  z-index: 90;
  backdrop-filter: blur(10px);
  padding: 8px 10px;
  display: none;
  flex-direction: column;
  gap: 4px;
  /* Lifts the bar visually off the scrolled channel list behind it, instead of the
     two blending into one flat surface. */
  box-shadow: 0 -8px 16px -6px rgba(0,0,0,0.45);
}
.voice-bar.active { display: flex; }
.voice-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.voice-bar-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green, #43b581);
  font-weight: 600;
}
.voice-bar-info svg { flex-shrink: 0; }
.voice-bar-name {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.voice-bar-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.voice-bar-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.14s var(--ease-spring, ease);
}
.voice-bar-btn:hover { background: var(--bg-elevated); color: var(--text-primary); transform: scale(1.08); }
.voice-bar-btn:active { transform: scale(0.88); }
.voice-bar-btn.muted { color: #ed4245; }
.voice-bar-btn.leave { color: #ed4245; }
.voice-bar-btn.leave:hover { background: #ed424520; }

/* Custom tooltip: put text in data-tt instead of title. Used first on the
   user-panel mic/deafen/settings cluster so hovering shows a small app-themed
   label instead of the plain OS/browser tooltip box. */
[data-tt] { position: relative; }
[data-tt]::after {
  content: attr(data-tt);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #111214;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
  transition: opacity .12s ease, transform .12s ease;
  transition-delay: .05s;
  z-index: 200;
}
[data-tt]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

