/* ============================================================
   CFO Centre Time Tracker — Shared Styles
   Fonts: DM Sans (body), DM Mono (numbers/times)
   Brand: #E5007E (pink), #0C2646 (navy)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  --pink:         #E5007E;
  --pink-light:   #FF3EA5;
  --pink-dark:    #B8006A;
  --pink-muted:   rgba(229, 0, 126, 0.12);
  --navy:         #0C2646;
  --navy-light:   #1a3a62;
  --navy-muted:   rgba(12, 38, 70, 0.08);

  --bg:           #FAF9F7;
  --surface:      #FFFFFF;
  --surface-2:    #F3F2F0;
  --border:       #E8E6E3;
  --border-strong:#C8C5C0;

  --text:         #1A1816;
  --text-2:       #5A564F;
  --text-3:       #9A958D;
  --text-inv:     #FFFFFF;

  --success:      #18A84A;
  --warning:      #F59E0B;
  --danger:       #EF4444;
  --info:         #3B82F6;

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow:       0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:    0 16px 40px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

  --header-h:     60px;
  --nav-h:        56px;
  --transition:   0.18s ease;

  --font:         'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Fira Mono', monospace;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0F1117;
    --surface:      #1A1D24;
    --surface-2:    #22262F;
    --border:       #2E3340;
    --border-strong:#3E4455;

    --text:         #F0EDE8;
    --text-2:       #9A97A0;
    --text-3:       #60606A;
    --text-inv:     #FFFFFF;

    --navy-muted:   rgba(12, 38, 70, 0.4);
    --pink-muted:   rgba(229, 0, 126, 0.18);

    --shadow-sm:    0 1px 3px rgba(0,0,0,.3);
    --shadow:       0 4px 12px rgba(0,0,0,.4);
    --shadow-lg:    0 16px 40px rgba(0,0,0,.5);
  }
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); font-size: 1rem; }

/* ── Typography ──────────────────────────────────────────── */
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.35rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.1rem;  font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }

.mono { font-family: var(--font-mono); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.muted   { color: var(--text-2); }
.dimmed  { color: var(--text-3); }

/* ── Layout ──────────────────────────────────────────────── */
.page-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.content-area {
  flex: 1;
  padding: 20px 16px calc(var(--nav-h) + 20px);
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

/* ── Header ──────────────────────────────────────────────── */
.app-header {
  height: var(--header-h);
  background: var(--navy);
  color: var(--text-inv);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.app-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-header .logo img {
  height: 32px;
  width: auto;
}

.app-header .logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-inv);
  letter-spacing: -0.01em;
}

.app-header .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header .user-chip {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* ── Bottom Nav ──────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}

.bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 500;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav .nav-item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav .nav-item.active {
  color: var(--pink);
}

.bottom-nav .nav-item:hover {
  color: var(--pink-light);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), opacity var(--transition), transform var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--pink);
  color: #fff;
}
.btn-primary:hover { background: var(--pink-light); }

.btn-secondary {
  background: var(--navy);
  color: #fff;
}
.btn-secondary:hover { background: var(--navy-light); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { opacity: 0.85; }

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-sm);
  line-height: 1;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-body {
  padding: 18px;
}

/* ── Day Entry Card ──────────────────────────────────────── */
.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.day-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--navy-muted);
}

.day-card-date {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

@media (prefers-color-scheme: dark) {
  .day-card-date { color: var(--text); }
}

.day-card-week {
  font-size: 0.75rem;
  color: var(--text-3);
}

.entry-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.entry-row:last-of-type { border-bottom: none; }

.company-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.entry-company { font-weight: 600; font-size: 0.9rem; flex: 1; }

.entry-times {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-2);
}

.entry-hours {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  min-width: 48px;
  text-align: right;
}

@media (prefers-color-scheme: dark) {
  .entry-hours { color: var(--text); }
}

.entry-earnings {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--pink);
  font-weight: 600;
  min-width: 64px;
  text-align: right;
}

.half-day-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--pink-muted);
  color: var(--pink);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.03em;
}

.tasks-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.tasks-col {
  padding: 8px 14px;
}

.tasks-col:first-child {
  border-right: 1px solid var(--border);
}

.tasks-col-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 2px;
}

.tasks-col-text {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* ── Metrics Strip ───────────────────────────────────────── */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

@media (prefers-color-scheme: dark) {
  .metric-value { color: var(--text); }
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Week Navigation ─────────────────────────────────────── */
.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.week-nav-center {
  text-align: center;
  line-height: 1.3;
}

.week-nav-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.week-nav-fy {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
}

.form-control {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-muted);
}

.form-control::placeholder { color: var(--text-3); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ── Modal ───────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
  animation: fadeIn 0.15s ease;
}

@media (min-width: 600px) {
  .modal-backdrop { align-items: center; }
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-lg) var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.22s ease;
}

@media (min-width: 600px) {
  .modal { border-radius: var(--radius-xl); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.modal-title { font-size: 1.05rem; font-weight: 700; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-2);
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}

.modal-close:hover { background: var(--border); }

.modal-body { padding: 20px; }

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Toast Notifications ─────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 70px;
  right: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.2s ease forwards;
}

.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warning); color: #1a1816; }

.toast-dismiss {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0 0 6px;
}

@keyframes toastIn {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ── Progress Bar ────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--pink);
  transition: width 0.4s ease;
}

/* ── Tabs ────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
}

.tab-item {
  flex: 1;
  padding: 8px 12px;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: none;
  background: none;
}

.tab-item.active {
  background: var(--surface);
  color: var(--pink);
  box-shadow: var(--shadow-sm);
}

.tab-item:hover:not(.active) { color: var(--text); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Company Card ────────────────────────────────────────── */
.company-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.company-swatch {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.company-info { flex: 1; min-width: 0; }
.company-name { font-weight: 600; font-size: 0.95rem; }
.company-rate { font-size: 0.8rem; color: var(--text-2); }

/* ── Forecast Calendar ───────────────────────────────────── */
.forecast-calendar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calendar-dow {
  text-align: center;
  padding: 8px 4px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
}

.calendar-cell {
  background: var(--surface);
  min-height: 52px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 4px;
  transition: background var(--transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.calendar-cell.other-month {
  background: var(--surface-2);
  opacity: 0.5;
  pointer-events: none;
}

.calendar-cell.weekend-hidden { display: none; }

.calendar-cell:hover { background: var(--pink-muted); }

.calendar-cell.today { outline: 2px solid var(--pink); outline-offset: -2px; }

.cell-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 2px;
}

.cell-chips {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cell-chip {
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-chip.unavailable {
  background: var(--text-3);
  color: var(--text-inv);
}

/* Diagonal split for two half-days */
.cell-split {
  flex: 1;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  min-height: 24px;
}

.cell-split-top, .cell-split-bottom {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 4px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #fff;
}

.cell-split-top {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
  align-items: flex-start;
}

.cell-split-bottom {
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
  align-items: flex-end;
}

/* ── Availability Breakdown ──────────────────────────────── */
.avail-week-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.avail-week-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  width: 60px;
  flex-shrink: 0;
}

.avail-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.avail-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  border: 2px solid transparent;
}

.avail-pill.avail    { background: rgba(24,168,74,0.15); color: var(--success); border-color: var(--success); }
.avail-pill.half     { background: rgba(245,158,11,0.15); color: var(--warning); border-color: var(--warning); }
.avail-pill.busy     { background: var(--pink-muted); color: var(--pink); border-color: var(--pink); }
.avail-pill.unavail  { background: var(--surface-2); color: var(--text-3); border-color: var(--border); }

/* ── Dashboard Charts ────────────────────────────────────── */
.bar-chart-wrap { margin-top: 16px; }

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bar-label {
  font-size: 0.82rem;
  font-weight: 600;
  width: 120px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  flex: 1;
  height: 20px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}

.bar-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  width: 56px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Admin Table ─────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr {
  cursor: pointer;
  transition: background var(--transition);
}

.data-table tbody tr:hover { background: var(--pink-muted); }

.data-table .mono { font-family: var(--font-mono); }

/* ── Check-in Widget ─────────────────────────────────────── */
.checkin-widget {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.checkin-timer {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 10px 0;
}

.checkin-label {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 14px;
}

.checkin-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ── Login Page ──────────────────────────────────────────── */
.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--navy);
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.login-logo img { height: 44px; }

.login-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
}

/* ── Loader / Spinner ────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.spinner.dark {
  border-color: var(--border);
  border-top-color: var(--pink);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
}

.empty-state svg {
  margin: 0 auto 14px;
  opacity: 0.4;
}

.empty-state p { font-size: 0.9rem; margin-top: 6px; }

/* ── Colour Picker Row ───────────────────────────────────── */
.colour-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.colour-swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}

.colour-swatch-btn.selected,
.colour-swatch-btn:hover {
  border-color: var(--text);
  transform: scale(1.15);
}

/* ── Utility ─────────────────────────────────────────────── */
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8         { gap: 8px; }
.gap-12        { gap: 12px; }
.mt-8          { margin-top: 8px; }
.mt-16         { margin-top: 16px; }
.mt-20         { margin-top: 20px; }
.mb-8          { margin-bottom: 8px; }
.mb-12         { margin-bottom: 12px; }
.mb-16         { margin-bottom: 16px; }
.mb-20         { margin-bottom: 20px; }
.w-full        { width: 100%; }
.text-right    { text-align: right; }
.text-center   { text-align: center; }
.fw-700        { font-weight: 700; }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .tasks-band { grid-template-columns: 1fr; }
  .tasks-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  h1 { font-size: 1.4rem; }
}

@media (min-width: 768px) {
  .content-area { padding: 28px 24px calc(var(--nav-h) + 28px); }
  .checkin-timer { font-size: 3rem; }
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
