:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #172033;
  --muted: #667085;
  --line: #e4e9f2;
  --brand: #101828;
  --brand-2: #344054;
  --success: #067647;
  --success-bg: #dcfae6;
  --danger: #b42318;
  --danger-bg: #fee4e2;
  --warning: #b54708;
  --warning-bg: #fef0c7;
  --info-bg: #eef4ff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.07);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(91, 141, 239, 0.12), transparent 26rem),
    var(--bg);
}
button, input, select { font: inherit; }
button { touch-action: manipulation; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 24px; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.login-card { width: min(440px, 100%); }
.brand { font-size: 28px; font-weight: 850; letter-spacing: -0.04em; }
.eyebrow { color: #475467; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

label { display: block; margin-top: 14px; font-size: 13px; font-weight: 700; color: #344054; }
input, select {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus { border-color: #84adff; box-shadow: 0 0 0 4px #dbe8ff; }
button {
  width: 100%;
  margin-top: 10px;
  padding: 12px 15px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s, background 0.12s;
}
button:hover { background: #1d2939; }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.55; cursor: wait; }
button.secondary { background: #eef2f6; color: var(--ink); }
button.secondary:hover { background: #e4e9ef; }
button.danger { background: var(--danger); }
button.small { width: auto; min-width: 110px; margin: 0; padding: 9px 12px; }

.topbar, .between, .item, .inline { display: flex; align-items: center; gap: 12px; }
.topbar, .between, .item { justify-content: space-between; }
.topbar { margin-bottom: 20px; }
.topbar-actions { display: flex; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; }
.stat strong { display: block; font-size: 34px; letter-spacing: -0.04em; }
.stat small { color: var(--muted); }

.message { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); }
.message.success { color: var(--success); background: var(--success-bg); }
.message.error { color: var(--danger); background: var(--danger-bg); }
.message.warning { color: var(--warning); background: var(--warning-bg); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #ecfdf3; color: var(--success); font-size: 12px; font-weight: 800; }
.badge.off { background: #f2f4f7; color: #475467; }

.list { display: grid; gap: 10px; }
.item { padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.item-main { min-width: 0; }
.item-main b { display: block; overflow: hidden; text-overflow: ellipsis; }
.item-main small { color: var(--muted); }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.empty { padding: 22px; text-align: center; color: var(--muted); border: 1px dashed #d0d5dd; border-radius: 14px; }

.employee-shell { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.employee-panel { width: min(580px, 100%); }
.employee-header { text-align: center; }
.employee-header h1 { margin: 6px 0; font-size: clamp(25px, 7vw, 38px); }
.shift-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fingerprint {
  width: 210px;
  height: 210px;
  margin: 30px auto 16px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 32%, #475467, #101828 64%);
  color: #fff;
  box-shadow: 0 0 0 15px #dbeafe, 0 18px 38px rgba(16, 24, 40, 0.22);
  font-size: 82px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.fingerprint:hover { background: radial-gradient(circle at 40% 32%, #667085, #101828 64%); }
.fingerprint:active { transform: scale(0.97); }
.fingerprint:focus-visible { outline: 5px solid #84adff; outline-offset: 9px; }
.fingerprint.busy { pointer-events: none; opacity: 0.78; animation: pulse 0.9s infinite; }
.fingerprint.verified { background: radial-gradient(circle at 40% 32%, #32d583, #067647 65%); box-shadow: 0 0 0 15px #dcfae6, 0 18px 38px rgba(6, 118, 71, 0.25); }
.fingerprint.error-state { background: radial-gradient(circle at 40% 32%, #f97066, #b42318 65%); box-shadow: 0 0 0 15px #fee4e2; }
.finger-hint { text-align: center; font-size: 18px; font-weight: 800; color: #344054; }
.status-label { text-align: center; margin-top: 8px; }
@keyframes pulse { 50% { transform: scale(0.95); box-shadow: 0 0 0 22px rgba(219, 234, 254, 0.65); } }

.section-title { margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.section-title h2, .section-title h3 { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { width: auto; margin: 0; background: #eef2f6; color: #344054; }
.tab.active { background: var(--brand); color: #fff; }
.panel-section[hidden] { display: none !important; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: #475467; background: var(--panel-soft); }
tr:last-child td { border-bottom: 0; }

.demo-box { margin-top: 18px; border: 1px solid #d9e1ea; border-radius: 14px; padding: 12px; background: #f8fafc; }
.demo-box summary { cursor: pointer; font-weight: 800; }
.demo-account { display: block; width: 100%; margin-top: 9px; padding: 10px 12px; text-align: left; background: #fff; color: var(--ink); border: 1px solid #d9e1ea; }
.demo-account small { display: block; margin-top: 4px; color: var(--muted); }

h1, h2, h3 { letter-spacing: -0.025em; }
@media (max-width: 760px) {
  .wrap { padding: 14px; }
  .row, .grid.two { grid-template-columns: 1fr; }
  .topbar, .between, .item { align-items: stretch; }
  .topbar { flex-direction: column; }
  .item { flex-direction: column; }
  .item-actions { justify-content: stretch; }
  .item-actions button { flex: 1; }
  .fingerprint { width: 185px; height: 185px; font-size: 72px; }
}
