/* ============================================================
   attendance.css — GymBI by Statvo
   PURPOSE: Styles for the attendance module — live dot,
   check-in search results dropdown, currently-inside chips,
   and today's log list.
   ============================================================ */

/* ------------------------------------------------------------
   LIVE INDICATOR DOT
   Pulsing green dot to show real-time updates are active.
   ------------------------------------------------------------ */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  position: relative;
}

/* Ripple animation around the dot */
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: live-ripple 1.8s ease-out infinite;
  opacity: 0;
}

@keyframes live-ripple {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2);   opacity: 0;   }
}

/* ------------------------------------------------------------
   CHECK-IN SEARCH RESULTS DROPDOWN
   Appears below the search bar when user types.
   ------------------------------------------------------------ */
.checkin-results {
  background: var(--glass-3);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid var(--glass-border-bright);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  /* Slides down when shown */
  animation: fade-in 0.15s ease;
}

/* Each result row */
.checkin-result-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--glass-border);
}
.checkin-result-item:last-child {
  border-bottom: none;
}
.checkin-result-item:hover {
  background: var(--accent-dim);
}

/* ------------------------------------------------------------
   TODAY'S LOG LIST
   Each entry is a row inside the log card.
   ------------------------------------------------------------ */

/* Hover highlight on log rows */
#today-log-list > div:hover {
  background: var(--glass-1);
  border-radius: var(--radius-sm);
  margin: 0 calc(-1 * var(--sp-2));
  padding-left: var(--sp-2);
  padding-right: var(--sp-2);
}

/* ------------------------------------------------------------
   CURRENTLY INSIDE CHIPS
   Pill-shaped chips showing who's still in the gym.
   ------------------------------------------------------------ */

/* Chip pulse animation — subtle beat to show they're "live" */
@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%       { box-shadow: 0 0 0 4px var(--accent-dim); }
}

/* Mobile: chips wrap naturally (flex-wrap already set inline) */
@media (max-width: 480px) {
  #currently-in { margin-top: var(--sp-3); }
}
