/* ========================================================
   ZICC Staff Dashboard — Styles
   Shares design tokens with the main site (styles.css)
   ======================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700,800&f[]=switzer@400,500,600&display=swap');

:root{
  --text-body:#121217;
  --text-secondary:#6c6c89;
  --text-disabled:#a9a9bc;
  --text-white:#ffffff;
  --border-light:#ebebef;
  --bg-accent-gray:#f7f7f8;
  --bg-silver-50:#fcfcfc;
  --bg-black:#0b0b0d;
  --flame:#c8502b;
  --flame-light:#e0764a;

  --font-display:'General Sans', 'Switzer', 'Segoe UI', sans-serif;
  --font-body:'Switzer', 'General Sans', 'Segoe UI', sans-serif;

  --pad-x:24px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text-body);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

/* ---------- Check-in / auth cards (shared pattern with main site) ---------- */
.checkin-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px var(--pad-x);
  background:var(--bg-accent-gray);
}
.checkin-card{
  width:100%;
  max-width:420px;
  background:#fff;
  border-radius:24px;
  padding:32px;
  box-shadow:0 1px 3px rgba(18,18,23,0.06);
}
.checkin-card h1{
  font-family:var(--font-display);
  font-weight:600;
  font-size:26px;
  margin:0 0 8px;
}
.checkin-card p.sub{
  color:var(--text-secondary);
  font-size:15px;
  margin:0 0 24px;
}
.checkin-field{ margin-bottom:16px; }
.checkin-field label{
  display:block;
  font-size:14px;
  font-weight:600;
  margin-bottom:6px;
}
.checkin-field input, .checkin-field select{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border-light);
  font-size:16px;
  font-family:inherit;
  color:var(--text-body);
}
.checkin-field input:focus{ outline:2px solid var(--flame-light); outline-offset:1px; }
.checkin-submit{
  width:100%;
  padding:14px;
  border-radius:360px;
  border:none;
  background:var(--flame);
  color:#fff;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:background .2s ease;
}
.checkin-submit:hover{ background:var(--flame-light); }
.checkin-submit:disabled{ opacity:.6; cursor:default; }
.checkin-error{
  color:#b3261e;
  font-size:14px;
  margin-top:12px;
  display:none;
}
.checkin-error.show{ display:block; }
.checkin-success{
  color:#1e7a3c;
  font-size:14px;
  margin-top:12px;
  display:none;
}
.checkin-success.show{ display:block; }

/* Staff scanner */
.scan-video-wrap{
  position:relative;
  width:100%;
  max-width:420px;
  aspect-ratio:1/1;
  border-radius:20px;
  overflow:hidden;
  background:#000;
}
.scan-video-wrap video{ width:100%; height:100%; object-fit:cover; }
.scan-reticle{
  position:absolute;
  inset:12% 12%;
  border:3px solid rgba(255,255,255,0.85);
  border-radius:16px;
  pointer-events:none;
}
.scan-result{
  width:100%;
  max-width:420px;
  margin-top:20px;
  padding:20px;
  border-radius:16px;
  text-align:center;
  font-weight:600;
  font-size:17px;
  display:none;
}
.scan-result.show{ display:block; }
.scan-result.ok{ background:#e5f5ea; color:#1e7a3c; }
.scan-result.repeat{ background:#fff6e0; color:#9a6a00; }
.scan-result.error{ background:#fbe7e6; color:#b3261e; }
.scan-status{
  margin-top:12px;
  color:var(--text-secondary);
  font-size:14px;
  text-align:center;
}

/* ---------- Dashboard shell ---------- */
.dash-page{
  min-height:100vh;
  background:var(--bg-accent-gray);
  padding:24px var(--pad-x) 60px;
}
.dash-topbar{
  max-width:960px;
  margin:0 auto 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.dash-brand{
  font-family:var(--font-display);
  font-weight:700;
  font-size:18px;
}
.dash-who{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:13px;
  color:var(--text-secondary);
}
.dash-who button{
  background:none;
  border:none;
  color:var(--flame);
  font-weight:600;
  font-size:13px;
  cursor:pointer;
  padding:0;
}
.dash-nav{
  display:flex;
  gap:8px;
  max-width:960px;
  margin:0 auto 24px;
  flex-wrap:wrap;
}
.dash-nav a{
  padding:8px 16px;
  border-radius:360px;
  font-size:14px;
  font-weight:600;
  color:var(--text-secondary);
  background:#fff;
  border:1px solid var(--border-light);
}
.dash-nav a.active{ color:#fff; background:var(--flame); border-color:var(--flame); }

.dash-card{
  max-width:960px;
  margin:0 auto 24px;
  background:#fff;
  border-radius:24px;
  padding:28px;
}
.dash-card h2{
  font-family:var(--font-display);
  font-weight:600;
  font-size:20px;
  margin:0 0 16px;
}
.dash-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.dash-card-head h2{ margin:0; }

.dash-inline-form{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:20px;
}
.dash-inline-form input{
  flex:1 1 220px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border-light);
  font-size:15px;
  font-family:inherit;
}
.dash-inline-form button{
  padding:10px 20px;
  border-radius:360px;
  border:none;
  background:var(--flame);
  color:#fff;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
}
.dash-inline-form button:disabled{ opacity:.6; cursor:default; }

.dash-table{
  width:100%;
  border-collapse:collapse;
}
.dash-table th{
  text-align:left;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--text-secondary);
  padding:8px;
  border-bottom:1px solid var(--border-light);
}
.dash-table td{
  padding:10px 8px;
  border-bottom:1px solid var(--border-light);
  font-size:14px;
}
.dash-table tr:last-child td{ border-bottom:none; }
.dash-badge{
  display:inline-block;
  padding:3px 10px;
  border-radius:360px;
  font-size:12px;
  font-weight:600;
}
.dash-badge.admin{ background:#eef0ff; color:#4353c4; }
.dash-badge.staff{ background:#f0f0f2; color:var(--text-secondary); }
.dash-badge.active{ background:#e5f5ea; color:#1e7a3c; }
.dash-badge.disabled{ background:#fbe7e6; color:#b3261e; }
.dash-toggle-btn{
  background:none;
  border:1px solid var(--border-light);
  border-radius:360px;
  padding:6px 14px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  color:var(--text-body);
}
.dash-toggle-btn:hover{ background:var(--bg-accent-gray); }
.dash-empty{
  color:var(--text-secondary);
  font-size:14px;
  text-align:center;
  padding:24px 0;
}

.dash-stats{
  display:flex;
  gap:24px;
  flex-wrap:wrap;
  margin-bottom:20px;
}
.dash-stat{ flex:1 1 140px; }
.dash-stat .value{
  font-family:var(--font-display);
  font-weight:700;
  font-size:36px;
  line-height:1;
}
.dash-stat .label{
  color:var(--text-secondary);
  font-size:13px;
  margin-top:4px;
}

.dash-chart-wrap{ width:100%; overflow-x:auto; }
.dash-chart-wrap svg{ display:block; }

.dash-attendance-list{
  display:flex;
  flex-direction:column;
  gap:2px;
  max-height:420px;
  overflow-y:auto;
}
.dash-attendance-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 4px;
  border-bottom:1px solid var(--border-light);
  font-size:14px;
}
.dash-attendance-row:last-child{ border-bottom:none; }
.dash-attendance-row .time{ color:var(--text-secondary); font-size:13px; }

.dash-tabs{
  display:flex;
  gap:6px;
  margin-bottom:20px;
  border-bottom:1px solid var(--border-light);
}
.dash-tab{
  padding:10px 4px;
  margin-right:16px;
  font-size:14px;
  font-weight:600;
  color:var(--text-secondary);
  background:none;
  border:none;
  border-bottom:2px solid transparent;
  cursor:pointer;
}
.dash-tab.active{ color:var(--flame); border-bottom-color:var(--flame); }
