/* Bendigo Senior Secondary College – eGooroo trainer tools (mockup)
   Brand tokens taken from the BSSC document heading. */
:root {
  --brand-blue: #14528C;      /* BSSC navy (header, buttons, headings) */
  --brand-blue-dark: #0D3F70;
  --brand-green: #3FA9E5;     /* accent: the light blue used for document subtitles */
  --brand-gold: #F2B544;
  --light-bg: #F2F5F9;
  --text: #1E2A3A;
  --muted: #5F6B7A;
  --line: #E1E6EE;
  --card-shadow: 0 8px 30px rgba(13, 63, 112, .08);

  /* Assessment legend (same as the Celebrant Institute timeline) */
  --st-completed: #198754;
  --st-submitted: #90EE90;
  --st-tryagain: #FFC107;
  --st-commenced: #FFF3CD;
  --st-enrolled: #E9ECEF;
  --st-overdue: #DC3545;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--light-bg);
  color: var(--text);
  font-family: 'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--brand-blue); }

/* ---------- BSSC banner (mirrors the college's document heading) ---------- */
.bssc-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, #0F4A82 0%, #14528C 55%, #17599A 100%);
  border-bottom-left-radius: 96px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 48px 30px;
  min-height: 150px;
}
.bssc-banner .decor {
  position: absolute; top: 0; right: 0; height: 100%; width: 46%; min-width: 320px;
  pointer-events: none;
}
.bssc-banner img.logo { height: 70px; width: auto; position: relative; z-index: 1; flex: none; }
.bssc-banner .titles { position: relative; z-index: 1; }
.bssc-banner h1 { margin: 0; font-size: 2.1rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.bssc-banner .sub { margin: .2rem 0 0; font-size: 1.3rem; color: var(--brand-green); font-weight: 400; }
.bssc-banner.compact { min-height: 104px; padding: 16px 32px 18px; border-bottom-left-radius: 64px; gap: 22px; }
.bssc-banner.compact img.logo { height: 56px; }
.bssc-banner.compact h1 { font-size: 1.55rem; }
.bssc-banner.compact .sub { font-size: 1.02rem; }
.bssc-banner .divider { width: 1px; align-self: stretch; background: rgba(255,255,255,.25); margin: 4px 0; position: relative; z-index: 1; }

/* ---------- Tool navigation strip ---------- */
.tool-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  max-width: 1400px; margin: 16px auto 0; padding: 0 16px;
}
.tool-nav a {
  text-decoration: none; font-weight: 600; font-size: .88rem;
  color: var(--brand-blue); background: #fff; border-radius: 50px;
  padding: .45rem 1rem; box-shadow: 0 2px 8px rgba(13,63,112,.07);
  transition: all .2s ease;
}
.tool-nav a:hover { transform: translateY(-1px); box-shadow: 0 6px 15px rgba(13,63,112,.12); }
.tool-nav a.active { background: var(--brand-blue); color: #fff; }
.tool-nav .who { margin-left: auto; color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: .5rem; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-gold); color: #4A3300;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem;
}

/* ---------- Generic sheet / pills / chips ---------- */
.sheet {
  max-width: 1400px; margin: 16px auto 32px; background: #fff; border-radius: 1rem;
  box-shadow: var(--card-shadow); padding: 1.5rem;
}
.sheet h2 { color: var(--brand-blue); font-weight: 700; font-size: 1.3rem; margin: 0 0 .25rem; }
.sheet .lead { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 16px; }

.pill-btn {
  display: inline-flex; align-items: center; gap: .4rem; border: 0; border-radius: 50px;
  padding: .55rem 1.2rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
  background: var(--brand-blue); color: #fff; text-decoration: none; transition: all .2s ease;
}
.pill-btn:hover { background: var(--brand-blue-dark); transform: translateY(-1px); color: #fff; }
.pill-btn.secondary { background: #fff; color: var(--brand-blue); box-shadow: inset 0 0 0 2px var(--brand-blue); }
.pill-btn.secondary:hover { background: #EAF2FA; color: var(--brand-blue); }
.pill-btn.small { padding: .3rem .8rem; font-size: .8rem; }

.chip {
  display: inline-block; padding: .14rem .62rem; border-radius: 50px; font-size: .76rem; font-weight: 700;
  white-space: nowrap; line-height: 1.5;
}
.chip.st-C { background: #D6EEDF; color: #0F5A35; }
.chip.st-S { background: #DDF8DD; color: #22682A; }
.chip.st-T { background: #FFEDB8; color: #7A5600; }
.chip.st-M { background: #FFF3CD; color: #806000; box-shadow: inset 0 0 0 1px #F1DC9A; }
.chip.st-E { background: #E9ECEF; color: #495057; }
.chip.st-N { background: #fff; color: #868E96; box-shadow: inset 0 0 0 1.5px #D5D9DE; }
.chip.u-competent { background: var(--st-completed); color: #fff; }
.chip.u-marking { background: var(--st-submitted); color: #134A17; }
.chip.u-progress { background: var(--st-tryagain); color: #4D3700; }
.chip.u-overdue { background: var(--st-overdue); color: #fff; }
.chip.u-notstarted { background: var(--st-enrolled); color: #495057; }
.chip.u-notenrolled { background: #fff; color: #868E96; box-shadow: inset 0 0 0 1.5px #D5D9DE; }

/* Status boxes (legend + grid) */
.status-box { display: inline-block; width: 22px; height: 22px; border-radius: 4px; vertical-align: middle; }
.status-box.st-C { background: var(--st-completed); }
.status-box.st-S { background: var(--st-submitted); }
.status-box.st-T { background: var(--st-tryagain); }
.status-box.st-M { background: var(--st-commenced); box-shadow: inset 0 0 0 1px #EAD9A0; }
.status-box.st-E { background: var(--st-enrolled); }
.status-box.st-N { background: transparent; border: 2px dashed #D5D9DE; }

.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; font-size: .86rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend .status-box { width: 13px; height: 13px; border-radius: 3px; }

.footer { text-align: center; color: var(--muted); font-size: .82rem; margin: 2rem auto 2.5rem; padding: 0 16px; }
.footer strong { color: var(--brand-blue); }
.demo-flag {
  display: inline-block; background: #FFF6DB; color: #7A5600; border-radius: 50px; padding: .1rem .6rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}

/* Toast (demo actions) */
.toast-demo {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: #1E2A3A; color: #fff; padding: .7rem 1.2rem; border-radius: 12px; font-size: .9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: all .25s ease; z-index: 3000; max-width: calc(100% - 32px);
}
.toast-demo.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .bssc-banner { padding: 18px 20px 22px; gap: 14px; border-bottom-left-radius: 48px; min-height: 0; flex-wrap: wrap; }
  .bssc-banner img.logo, .bssc-banner.compact img.logo { height: 48px; }
  .bssc-banner h1, .bssc-banner.compact h1 { font-size: 1.3rem; }
  .bssc-banner .sub, .bssc-banner.compact .sub { font-size: .92rem; }
  .bssc-banner .divider { display: none; }
  .bssc-banner .decor { width: 60%; opacity: .55; }
  .tool-nav .who { margin-left: 0; width: 100%; }
  .sheet { padding: 1rem; border-radius: .8rem; }
}
