/* LLG Golf School — App Styles */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');

:root {
  --pink: #C8006E;
  --pink-hover: #a0005a;
  --pink-light: #FBEAF0;
  --teal: #1D9E75;
  --teal-light: #E1F5EE;
  --purple: #7F77DD;
  --purple-light: #EEEDFE;
  --amber: #BA7517;
  --amber-light: #FAEEDA;
  --text: #1a1a1a;
  --muted: #2c2c2a;
  --border: #c8c8c5;
  --bg: #f7f7f5;
  --white: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Avenir Next', 'Avenir', 'Nunito', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); font-weight: 300; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; min-height: 100vh; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 700; }
strong, .fw-600 { font-weight: 700; }
.topbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 24px; height: 50px; display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 100; }
.logo { color: var(--pink); font-size: 18px; font-weight: 700; letter-spacing: -0.5px; text-decoration: none; font-family: var(--font); }
.topbar-crumb { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; font-weight: 300; }
.topbar-crumb a { color: var(--muted); text-decoration: none; }
.topbar-crumb a:hover { color: white; }
.topbar-crumb span { color: #888; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.page { max-width: 1100px; margin: 0 auto; padding: 28px 24px; }
.page-wide { max-width: 1400px; margin: 0 auto; padding: 28px 24px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 24px; font-weight: 700; font-family: var(--font); }
.page-sub { font-size: 13px; color: var(--muted); margin-top: 3px; font-weight: 300; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card-sm { padding: 14px 16px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.card-title { font-size: 15px; font-weight: 700; font-family: var(--font); }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 300; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; border: none; text-decoration: none; transition: all .15s; white-space: nowrap; }
.btn-primary { background: var(--pink); color: white; }
.btn-primary:hover { background: var(--pink-hover); }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--pink); border: 1px solid var(--pink); }
.btn-outline:hover { background: var(--pink-light); }
.btn-outline:disabled { color: #ccc; border-color: #ccc; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-danger { background: #fcebeb; color: #a32d2d; border: 1px solid #f09595; }
.btn-danger:hover { background: #f7c1c1; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
label { font-size: 12px; font-weight: 600; color: var(--muted); font-family: var(--font); }
input[type=text],input[type=email],input[type=number],input[type=date],select,textarea { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 11px; font-size: 13px; font-family: var(--font); font-weight: 300; color: var(--text); background: var(--white); width: 100%; transition: border-color .15s; }
input:focus,select:focus,textarea:focus { outline: none; border-color: var(--pink); }
textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; font-family: var(--font); white-space: nowrap; }
.badge-pink { background: var(--pink-light); color: var(--pink); }
.badge-teal { background: var(--teal-light); color: var(--teal); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-gray { background: #f1efe8; color: #555; }
.badge-green { background: #eaf3de; color: #3b6d11; }
.status-dots { display: flex; gap: 5px; align-items: center; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-done { background: var(--teal); }
.dot-partial { background: var(--amber); }
.dot-empty { background: var(--border); border: 1px solid #ccc; }
.participant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 20px; }
.participant-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s; text-decoration: none; color: inherit; display: block; }
.participant-card:hover { border-color: var(--pink); box-shadow: 0 2px 8px rgba(200,0,110,0.08); }
.pc-head { padding: 14px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.pc-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--pink-light); color: var(--pink); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; font-family: var(--font); }
.pc-avatar.no-quiz { background: #f1efe8; color: #999; }
.pc-name { font-size: 14px; font-weight: 700; font-family: var(--font); }
.pc-meta { font-size: 12px; color: var(--muted); font-weight: 300; }
.pc-profile { font-size: 12px; color: var(--pink); font-weight: 600; margin-top: 1px; }
.pc-profile.no-quiz { color: var(--muted); font-weight: 300; }
.pc-body { padding: 12px 16px; }
.pc-progress { display: flex; align-items: center; gap: 8px; }
.section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.section-head { padding: 14px 18px; display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; transition: background .1s; }
.section-head:hover { background: var(--bg); }
.section-num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; font-family: var(--font); }
.section-title { font-size: 14px; font-weight: 600; flex: 1; font-family: var(--font); }
.section-chevron { color: var(--muted); font-size: 11px; transition: transform .2s; }
.section.open .section-chevron { transform: rotate(180deg); }
.section-body { display: none; padding: 18px; border-top: 1px solid var(--border); }
.section.open .section-body { display: block; }
.section-profile .section-num { background: var(--teal-light); color: var(--teal); }
.section-workbook .section-num { background: var(--pink-light); color: var(--pink); }
.section-day1 .section-num { background: var(--amber-light); color: var(--amber); }
.section-day2 .section-num { background: var(--purple-light); color: var(--purple); }
.section-day3 .section-num { background: #f1efe8; color: #555; }
.section-track .section-num { background: var(--teal-light); color: var(--teal); }
.divider { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 0 10px; border-top: 1px solid var(--border); margin-top: 4px; font-family: var(--font); }
.divider:first-child { padding-top: 0; border-top: none; margin-top: 0; }
.trait-bars { display: flex; flex-direction: column; gap: 6px; }
.trait-row { display: flex; align-items: center; gap: 8px; }
.trait-label { font-size: 11px; color: var(--muted); width: 88px; text-align: right; flex-shrink: 0; font-weight: 300; }
.trait-track { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.trait-fill { height: 100%; border-radius: 5px; transition: width .4s ease; }
.trait-val { font-size: 11px; font-weight: 700; width: 22px; color: var(--text); }
.brief-output { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.brief-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.brief-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.brief-heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pink); margin-bottom: 8px; font-family: var(--font); }
.brief-text { font-size: 13px; line-height: 1.7; color: var(--text); font-weight: 300; }
.brief-text ul { padding-left: 18px; }
.brief-text li { margin-bottom: 4px; }
.loading { display: flex; align-items: center; gap: 10px; padding: 16px; background: var(--purple-light); border-radius: var(--radius-sm); font-size: 13px; color: var(--purple); font-weight: 300; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--purple); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 36px; margin-bottom: 12px; opacity: .4; }
.empty-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; font-family: var(--font); }
.empty-sub { font-size: 13px; font-weight: 300; }
.stats-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; min-width: 120px; }
.stat-num { font-size: 26px; font-weight: 700; line-height: 1; font-family: var(--font); }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 300; }
.rating-row { display: flex; gap: 6px; flex-wrap: wrap; }
.rating-btn { border: 1px solid var(--border); background: var(--white); border-radius: var(--radius-sm); padding: 5px 12px; font-size: 12px; font-family: var(--font); font-weight: 300; cursor: pointer; transition: all .15s; color: var(--text); }
.rating-btn.active { background: var(--pink); color: white; border-color: var(--pink); font-weight: 600; }
.rating-btn:hover:not(.active) { border-color: var(--pink); color: var(--pink); }
.score-grid { display: grid; grid-template-columns: repeat(9, 1fr) 60px; gap: 4px; align-items: end; }
.score-hole { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.score-hole label { font-size: 10px; color: var(--muted); font-weight: 600; }
.score-hole input { width: 100%; text-align: center; padding: 6px 2px; }
.score-total { font-size: 16px; font-weight: 700; color: var(--pink); padding: 6px 0; text-align: center; font-family: var(--font); }
.check-list { display: flex; flex-direction: column; gap: 5px; }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 300; }
.check-item input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--pink); flex-shrink: 0; }
.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; font-weight: 300; }
.alert-success { background: var(--teal-light); color: var(--teal); }
.alert-error { background: #fcebeb; color: #a32d2d; }
.alert-info { background: var(--purple-light); color: var(--purple); }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal { background: var(--white); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 480px; box-shadow: 0 8px 40px rgba(0,0,0,.15); }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; font-family: var(--font); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.text-muted { color: var(--muted); }
.text-pink { color: var(--pink); }
.text-sm { font-size: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.hidden { display: none; }
@media print {
  .topbar,.btn,.section-head .section-chevron { display: none !important; }
  .section-body { display: block !important; }
  body { background: white; }
  .card,.brief-output { box-shadow: none; border: 1px solid #ddd; }
}
/* ---- GLOBAL NAV ---- */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
}
.nav-link {
  color: #888;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-family: var(--font);
  transition: all .15s;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,.08); color: white; }
.nav-link.active { color: var(--pink); background: rgba(200,0,110,.12); }
