/* RQClaw HR — light overrides on top of Tailwind */
:root {
  --navy: #0a1f44;
  --navy-soft: #1a3568;
  --gold: #c9a961;
  --gold-soft: #e0c585;
  --bg: #f8fafc;
  --green: #10b981;
  --green-dark: #059669;
  --red: #ef4444;
  --red-dark: #dc2626;
  --text: #0f172a;
  --muted: #64748b;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.brand-navy { background-color: var(--navy); }
.brand-navy-soft { background-color: var(--navy-soft); }
.brand-gold { color: var(--gold); }
.brand-gold-bg { background-color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--muted); }

/* Big circular check-in button */
.checkin-btn {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: white;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.15s ease;
  user-select: none;
}
.checkin-btn:active { transform: scale(0.97); }
.checkin-btn:disabled { filter: grayscale(0.5) opacity(0.7); cursor: not-allowed; }

.checkin-btn--in {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}
.checkin-btn--out {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}

.checkin-btn-label {
  font-size: 1.6rem;
  letter-spacing: 0.1em;
}
.checkin-btn-sub {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.92;
  margin-top: 6px;
}

@media (max-width: 480px) {
  .checkin-btn { width: 200px; height: 200px; }
}

/* Pulse around active button */
.pulse {
  position: relative;
}
.pulse::before {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 3px solid currentColor;
  opacity: 0.5;
  animation: pulse 2s infinite ease-out;
  pointer-events: none;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.18); opacity: 0;   }
}

/* Live timer text */
.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Card */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  padding: 1.25rem;
}

/* Progress bar */
.bar-track {
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  height: 10px;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
  transition: width 0.4s ease;
}
.bar-fill--over {
  background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--navy); color: white;
  padding: 12px 20px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 50;
  font-size: 0.95rem;
  max-width: 92vw;
}
.toast--err { background: var(--red-dark); }

/* Subtle table */
table.history { width: 100%; font-size: 0.9rem; }
table.history th, table.history td {
  padding: 0.5rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
table.history th { font-weight: 600; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.history td.num { text-align: right; font-variant-numeric: tabular-nums; }
.flag-auto { display: inline-block; padding: 2px 8px; font-size: 0.7rem; border-radius: 999px; background: #fee2e2; color: #991b1b; font-weight: 600; }
