/* ─────────────────────────────────────────────────────────────────────────────
   ALVI Dashboard — css/dashboard.css
   Premium UI polish for hackathon demonstration.
   All improvements are additive / non-breaking to existing Tailwind classes.
───────────────────────────────────────────────────────────────────────────── */

/* ── Voice Journey Timeline ─────────────────────────────────────────────── */
.timeline-svg-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
  animation: pulsePath 3s ease-in-out infinite alternate;
}

@keyframes pulsePath {
  0%   { stroke-opacity: 0.7; stroke-width: 3; }
  100% { stroke-opacity: 1;   stroke-width: 4.5; }
}

.glow-node {
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

/* ── Hero card — deep-navy gradient with inner glow ─────────────────────── */
#page-dashboard .hero-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  position: relative;
}

#page-dashboard .hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 70% 50%, rgba(99, 102, 241, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Timeline node hover glow ───────────────────────────────────────────── */
[data-timeline-info]:hover .timeline-node-emerald {
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
}
[data-timeline-info]:hover .timeline-node-amber {
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

/* ── Check-in launcher card ─────────────────────────────────────────────── */
#start-checkin-main-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
  box-shadow: 0 8px 24px -4px rgba(79, 70, 229, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#start-checkin-main-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
  box-shadow: 0 12px 32px -4px rgba(79, 70, 229, 0.55);
  transform: translateY(-2px) scale(1.01);
}

#start-checkin-main-btn:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.35);
}

/* ── Check-in step mini-cards ───────────────────────────────────────────── */
.checkin-step-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1.5px solid #e2e8f0;
}

.checkin-step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.12);
  border-color: #c7d2fe;
}

.checkin-step-number {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Signal cards (bottom row) ──────────────────────────────────────────── */
.signal-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px -6px rgba(30, 41, 59, 0.14);
}

/* ── AI Insight card subtle pulse ───────────────────────────────────────── */
.insight-card-inner {
  position: relative;
}

.insight-card-inner::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), transparent);
  pointer-events: none;
}

/* ── Demo data badge ────────────────────────────────────────────────────── */
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 2px 8px;
}

/* ── Welcome greeting ───────────────────────────────────────────────────── */
.dashboard-greeting {
  background: linear-gradient(90deg, #0f172a 0%, #312e81 60%, #4c1d95 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Quick-action New Check-in button (header) ──────────────────────────── */
#quick-checkin-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#quick-checkin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -3px rgba(79, 70, 229, 0.4);
}

/* ── Page container comfortable max-width on large screens ──────────────── */
#page-dashboard {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
