/* =========================================================
   Centralized Bidding Desk — Reward & Recognition Portal
   Design tokens: Navy #1F4E78 / Gold #BF8F00 (carried over
   from the Self-Evaluation workbook this portal replaces)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #1F4E78;
  --navy-dark: #163A5A;
  --navy-light: #E9F0F7;
  --gold: #BF8F00;
  --gold-light: #FFF6DD;
  --ink: #1C2530;
  --muted: #5B6472;
  --border: #E2E7EE;
  --bg: #F4F6F9;
  --card: #FFFFFF;
  --green: #2E7D46;
  --green-light: #E7F5EC;
  --red: #C0392B;
  --red-light: #FBEAE8;
  --amber: #B7791F;
  --amber-light: #FDF3E1;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28,37,48,.06), 0 8px 24px -12px rgba(28,37,48,.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.page-head {
  padding: 32px 0 20px;
}

.page-head h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.page-head p {
  color: var(--muted);
  margin: 0;
  font-size: 14.5px;
}

/* ---------- Navbar ---------- */
.navbar {
  background: var(--navy);
  color: #fff;
}
.navbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.brand .dot { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: #CFE0F0;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-links a.active { background: rgba(255,255,255,.14); color: #fff; }
.nav-links .signout {
  color: #CFE0F0;
  border: 1px solid rgba(255,255,255,.25);
  margin-left: 6px;
}
.nav-user {
  font-size: 12.5px;
  color: #A9C2DA;
  padding: 8px 10px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 14px;
}
.card h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
.card-sub { color: var(--muted); font-size: 13px; margin: -8px 0 16px; }

/* ---------- Forms ---------- */
label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-light);
}
textarea { resize: vertical; min-height: 60px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .06s, background .15s, border-color .15s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #A67B00; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy); }
.btn-danger { background: #fff; color: var(--red); border-color: #F0C6C0; }
.btn-danger:hover { background: var(--red-light); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- Status pills & stepper (signature element) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.pill-pending { background: var(--amber-light); color: var(--amber); }
.pill-done { background: var(--green-light); color: var(--green); }
.pill-closed { background: #EEF0F3; color: var(--muted); }
.pill-gold { background: var(--gold-light); color: #8A6A00; }

.stepper { display: flex; align-items: center; gap: 0; }
.step {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.step .node {
  width: 22px; height: 22px; border-radius: 50%;
  background: #E9ECF1; color: #97A0AD;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  border: 2px solid #E9ECF1;
}
.step.done .node { background: var(--navy); border-color: var(--navy); color: #fff; }
.step.current .node { background: #fff; border-color: var(--gold); color: var(--gold); }
.step.done { color: var(--navy); }
.step.current { color: var(--gold); }
.step-line { width: 26px; height: 2px; background: #E9ECF1; margin: 0 4px; }
.step-line.done { background: var(--navy); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: center; }
.table-wrap { overflow-x: auto; }

.score-input { width: 68px; text-align: center; }
.max-note { color: var(--muted); font-size: 12px; margin-left: 4px; }

/* ---------- Misc ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 780px) { .grid-2 { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.center { text-align: center; }
.empty {
  text-align: center; padding: 40px 20px; color: var(--muted);
}
.empty .big { font-size: 34px; margin-bottom: 8px; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.tag { display: inline-block; background: var(--navy-light); color: var(--navy); font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 8px;
  font-size: 13.5px; box-shadow: var(--shadow); z-index: 999; opacity: 0;
  transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }

.auth-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 220px, var(--bg) 220px);
  padding: 20px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 32px 28px;
}
.auth-logo { text-align: center; margin-bottom: 18px; }
.auth-logo .mark { font-size: 30px; }
.auth-logo h1 { font-size: 17px; font-weight: 800; color: var(--navy); margin: 6px 0 2px; }
.auth-logo p { font-size: 12.5px; color: var(--muted); margin: 0; }
.auth-tabs { display: flex; background: var(--bg); border-radius: 9px; padding: 3px; margin-bottom: 20px; }
.auth-tabs button {
  flex: 1; padding: 8px; border: none; background: transparent; border-radius: 7px;
  font-family: inherit; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer;
}
.auth-tabs button.active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.error-msg { background: var(--red-light); color: var(--red); font-size: 13px; padding: 9px 12px; border-radius: 7px; margin-bottom: 14px; display: none; }
.error-msg.show { display: block; }

.tabs-bar { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.tabs-bar button {
  padding: 10px 16px; border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 13.5px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs-bar button.active { color: var(--navy); border-bottom-color: var(--gold); }

.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 780px) { .kpi-row { grid-template-columns: 1fr 1fr; } }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.kpi .n { font-size: 24px; font-weight: 800; color: var(--navy); }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }

.loading { text-align: center; padding: 40px; color: var(--muted); font-size: 13.5px; }
