
/* Override the existing minimal hover line + tip with a premium 4K look */

/* ===== Track gets premium cursor + perspective ===== */
.dash-session-strip .dss-track {
  cursor: crosshair !important;
  position: relative !important;
}

/* ===== The vertical scrubber line — brighter, animated, with KNOB ===== */
.dash-session-strip .dss-hover-line {
  top: -10px !important;
  bottom: -10px !important;
  width: 2px !important;
  background: linear-gradient(180deg,
    rgba(255,255,255,1) 0%,
    rgba(196,181,253,1) 35%,
    rgba(124,92,252,1) 70%,
    rgba(196,181,253,1) 100%
  ) !important;
  box-shadow:
    0 0 8px rgba(255,255,255,0.85),
    0 0 16px rgba(196,181,253,0.8),
    0 0 28px rgba(124,92,252,0.65),
    0 0 48px rgba(124,92,252,0.4) !important;
  transition: opacity 0.18s ease, transform 0.04s linear !important;
  z-index: 8 !important;
}

/* === Knob/diamond at the top of the scrubber line === */
.dash-session-strip .dss-hover-line::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #C4B5FD 50%, #7C5CFC 100%);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 2px rgba(8,8,16,0.9),
    0 0 12px rgba(196,181,253,1),
    0 0 24px rgba(124,92,252,0.8),
    0 0 40px rgba(124,92,252,0.5);
  animation: dssKnobPulse 1.6s ease-in-out infinite;
}
@keyframes dssKnobPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.18); }
}

/* === Diamond at the bottom of the line === */
.dash-session-strip .dss-hover-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #C4B5FD 0%, #7C5CFC 100%);
  transform: translateX(-50%) rotate(45deg);
  box-shadow:
    0 0 10px rgba(196,181,253,0.9),
    0 0 20px rgba(124,92,252,0.6);
}

/* ===== Premium tooltip card ===== */
.dss-hover-tip {
  position: fixed !important;   /* re-homed onto <body> so the strip can't clip it */
  bottom: auto !important;      /* top/left are set in JS (onMove) in viewport coords */
  padding: 14px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 9px !important;
  min-width: 220px !important;
  background:
    linear-gradient(135deg,
      rgba(124,92,252,0.10) 0%,
      rgba(34,197,94,0.06) 50%,
      rgba(124,92,252,0.10) 100%
    ),
    linear-gradient(180deg,
      rgba(20,18,38,0.98) 0%,
      rgba(10,8,20,0.99) 100%
    ) !important;
  border: 1px solid rgba(124,92,252,0.6) !important;
  border-top-color: rgba(255,255,255,0.18) !important;
  border-radius: 14px !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 -1px 0 rgba(0,0,0,0.6) inset,
    0 10px 28px rgba(0,0,0,0.7),
    0 18px 48px rgba(0,0,0,0.5),
    0 0 22px rgba(124,92,252,0.5),
    0 0 42px rgba(124,92,252,0.25) !important;
  backdrop-filter: blur(14px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.5) !important;
  z-index: 99999 !important;   /* fixed overlay on <body> — sit above everything */
  transition: opacity 0.18s ease, transform 0.15s cubic-bezier(.22,.61,.36,1) !important;
}
.dss-hover-tip.dss-hov-show {
  animation: dssTipEnter 0.22s cubic-bezier(.22,.61,.36,1) both;
  opacity: 1 !important;
}
@keyframes dssTipEnter {
  from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(0.95); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Replace tip arrow with a more polished one */
.dss-hover-tip::after {
  content: '' !important;
  border-left: 7px solid transparent !important;
  border-right: 7px solid transparent !important;
  border-top: 8px solid rgba(124,92,252,0.85) !important;
  filter: drop-shadow(0 4px 8px rgba(124,92,252,0.5));
}
.dss-hover-tip::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4) 50%, transparent);
  pointer-events: none;
}

/* === Restyle the existing time line === */
.dsshov-time {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  text-shadow:
    0 0 14px rgba(196,181,253,0.7),
    0 0 28px rgba(124,92,252,0.4),
    0 2px 4px rgba(0,0,0,0.5) !important;
  font-feature-settings: "zero" 1, "tnum" 1 !important;
  font-variant-numeric: slashed-zero tabular-nums !important;
}

/* === New "LOCAL TIME" mini-label above the time === */
.dss-hover-tip .dsshov-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.30em;
  color: rgba(196,181,253,0.7);
  text-transform: uppercase;
  margin-bottom: -2px;
  text-shadow: 0 0 8px rgba(124,92,252,0.4);
}

/* === Session badge — bigger & glowy === */
.dsshov-sess {
  font-family: 'Rubik', 'Inter', sans-serif !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  align-self: flex-start;
  margin-top: 2px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.4),
    0 0 14px currentColor;
  filter: saturate(1.2);
}

/* === Secondary info grid (UTC, % of day, next session) === */
.dss-hover-tip .dsshov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px dashed rgba(124,92,252,0.25);
}
.dss-hover-tip .dsshov-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dss-hover-tip .dsshov-cell .lbl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(196,181,253,0.55);
  text-transform: uppercase;
}
.dss-hover-tip .dsshov-cell .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.02em;
  font-feature-settings: "zero" 1, "tnum" 1;
  font-variant-numeric: slashed-zero tabular-nums;
  text-shadow: 0 0 8px rgba(124,92,252,0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dss-hover-tip .dsshov-cell.full {
  grid-column: 1 / -1;
}
.dss-hover-tip .dsshov-cell .val.green { color: #22c55e; text-shadow: 0 0 8px rgba(34,197,94,0.5); }
.dss-hover-tip .dsshov-cell .val.purple { color: #C4B5FD; text-shadow: 0 0 8px rgba(196,181,253,0.5); }
.dss-hover-tip .dsshov-cell .val.cyan { color: #67e8f9; text-shadow: 0 0 8px rgba(103,232,249,0.5); }
.dss-hover-tip .dsshov-cell .val.amber { color: #fbbf24; text-shadow: 0 0 8px rgba(251,191,36,0.5); }

/* === Mini progress bar at the bottom of tooltip showing position % === */
.dss-hover-tip .dsshov-prog-wrap {
  height: 4px;
  background: rgba(124,92,252,0.15);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  margin-top: 2px;
  border: 1px solid rgba(124,92,252,0.18);
}
.dss-hover-tip .dsshov-prog-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #7C5CFC, #C4B5FD, #ffffff);
  border-radius: inherit;
  box-shadow: 0 0 8px rgba(196,181,253,0.6);
  width: 0%;
  transition: width 0.05s linear;
}

/* === Mobile === */
@media (max-width: 768px) {
  .dss-hover-tip {
    min-width: 180px !important;
    padding: 12px 14px !important;
  }
  .dsshov-time {
    font-size: 18px !important;
  }
  .dash-session-strip .dss-hover-line::before {
    width: 12px; height: 12px; top: -7px;
  }
  .dash-session-strip .dss-hover-line::after {
    width: 8px; height: 8px; bottom: -7px;
  }
}
@media (hover: none) {
  /* On touch devices, hide the hover scrubber (only visible on mouse-enabled) */
  .dash-session-strip .dss-hover-line,
  .dss-hover-tip {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-session-strip .dss-hover-line::before,
  .dss-hover-tip.dss-hov-show {
    animation: none !important;
  }
}

/* ============================================================
   SIDEBAR USER PILL — show full email even when long
   Earlier rules truncated with text-overflow:ellipsis on a single
   line, so long Gmail addresses were cut to "fortunestra…".
   These overrides allow the email to wrap to 2 lines (with
   ellipsis kicking in only past line 2) and break at any
   character so '@' and dots aren't kept on the first line alone.
   ============================================================ */
.user-pill .user-info{
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.user-pill .user-name{
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.user-pill .user-email{
  font-size: 11px !important;
  line-height: 1.35 !important;
  /* allow wrapping to a second line for long addresses */
  white-space: normal !important;
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-top: 2px !important;
}
/* Make sure the pill itself can grow vertically for the wrapped email */
.user-pill{
  align-items: flex-start !important;
  padding: 10px 12px !important;
}
.user-pill .user-avatar{ margin-top: 2px !important; }
.user-pill .logout-btn{ align-self: flex-start !important; margin-top: 2px !important; }
