/* ============================================================
   LakshyaPro — Prism Mapping · Corporate theme
   Palette: navy #0B1F3A · royal blue #2E5BFF · gold #C9A227
   ============================================================ */
:root {
  --lp-navy: #0B1F3A;
  --lp-navy-2: #12294d;
  --lp-blue: #2E5BFF;
  --lp-blue-2: #1D3FCC;
  --lp-gold: #C9A227;
  --lp-gold-2: #A9851A;
  --lp-teal: #19B394;
  --lp-red: #E5484D;
  --lp-bg: #F4F7FC;
  --lp-card: #ffffff;
  --lp-text: #1C2B46;
  --lp-muted: #5A6577;
  --lp-border: #E2E8F2;
  --lp-radius: 14px;
  --lp-shadow: 0 10px 28px rgba(11, 31, 58, 0.08);
  --lp-grad: linear-gradient(135deg, #2E5BFF 0%, #12294d 100%);
}

* { font-family: "Poppins", "Noto Sans Devanagari", -apple-system, "Segoe UI", sans-serif; }

body { background: var(--lp-bg); color: var(--lp-text); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------------- navbar ---------------- */
.lp-navbar { background: linear-gradient(90deg, var(--lp-navy) 0%, var(--lp-navy-2) 100%); box-shadow: 0 3px 16px rgba(11,31,58,.25); padding: 10px 0; }
.lp-navbar .navbar-brand { color: #fff; }
.lp-navbar .nav-link { color: #C7D4EE; font-size: .92rem; }
.lp-navbar .nav-link:hover { color: #fff; }
.lp-logo { height: 40px; width: 40px; object-fit: contain; border-radius: 10px; }
.lp-brand-text { font-weight: 700; letter-spacing: .3px; }
.lp-brand-text small { font-weight: 400; font-size: .68rem; color: var(--lp-gold); display: block; }
.navbar-toggler { filter: invert(1); }

/* ---------------- buttons ---------------- */
.lp-btn-primary { background: var(--lp-grad); color: #fff !important; border: none; font-weight: 600; border-radius: 10px; padding: .5rem 1.2rem; box-shadow: 0 6px 16px rgba(46, 91, 255, .35); }
.lp-btn-primary:hover { background: var(--lp-blue-2); color: #fff; transform: translateY(-1px); }
.lp-btn-outline { background: transparent; color: var(--lp-blue); border: 1.5px solid var(--lp-blue); font-weight: 600; border-radius: 10px; }
.lp-btn-outline:hover { background: var(--lp-blue); color: #fff; }
.lp-btn-ghost { background: #EEF2FB; color: var(--lp-text); border: none; border-radius: 10px; font-weight: 600; }
.lp-btn-ghost:hover { background: #E2E8F7; }
.lp-btn-danger { background: var(--lp-red); color: #fff; font-weight: 600; border-radius: 10px; border: none; }

/* ---------------- auth ---------------- */
.lp-auth-body { background: radial-gradient(1200px 600px at 10% -10%, #1D3FCC 0%, transparent 55%), radial-gradient(900px 500px at 110% 110%, #0B1F3A 0%, transparent 50%), var(--lp-navy); }
.lp-auth-wrap { min-height: 86vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.lp-auth-card { background: #fff; border-radius: 22px; box-shadow: 0 24px 70px rgba(0, 0, 0, .4); padding: 38px 34px; width: 100%; max-width: 440px; }
.lp-auth-card-wide { max-width: 760px; }
.lp-auth-logo { height: 74px; width: 74px; object-fit: contain; border-radius: 18px; box-shadow: 0 8px 20px rgba(46, 91, 255, .35); margin-bottom: 10px; }
.lp-auth-title { font-weight: 800; color: var(--lp-navy); font-size: 1.5rem; }
.lp-auth-sub { color: var(--lp-muted); font-size: .9rem; }
.lp-input { border-radius: 10px; border: 1.5px solid var(--lp-border); padding: .6rem .9rem; font-size: .95rem; }
.lp-input:focus { border-color: var(--lp-blue); box-shadow: 0 0 0 4px rgba(46, 91, 255, .12); }
.lp-pills { gap: 6px; }
.lp-pills .nav-link { border-radius: 10px; font-weight: 600; font-size: .85rem; color: var(--lp-muted); }
.lp-pills .nav-link.active { background: var(--lp-blue); color: #fff; }
.lp-divider { border-color: var(--lp-border); }
.lp-hint { color: var(--lp-muted); font-size: .78rem; }
.lp-link { color: var(--lp-blue); font-weight: 600; text-decoration: none; }
.lp-link:hover { text-decoration: underline; }
.lp-link-danger { color: var(--lp-red); }
.lp-err { color: var(--lp-red); font-size: .8rem; margin-top: 3px; }
.lp-alert { border-radius: 12px; }
.lp-alert.alert-success { background: #EAF9F5; border: 1px solid #BDE8DB; color: #0F7B5F; }
.lp-alert.alert-danger { background: #FDEBEC; border: 1px solid #F7C4C6; color: #B3261E; }
.lp-alert.alert-warning { background: #FDF6E3; border: 1px solid #F2DFAE; color: #8A6B2F; }

/* ---------------- hero ---------------- */
.lp-hero { background: linear-gradient(120deg, var(--lp-navy) 0%, #17325f 65%, #1D3FCC 100%); color: #fff; padding: 64px 0 120px; position: relative; overflow: hidden; }
.lp-hero-eyebrow { color: var(--lp-gold); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; font-size: .85rem; }
.lp-hero-title { font-weight: 800; font-size: 2.4rem; }
.lp-hero-sub { color: #C7D4EE; max-width: 620px; }
.lp-hero-stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 10px 16px; text-align: center; min-width: 84px; }
.lp-hero-stats strong { display: block; font-size: 1.5rem; color: var(--lp-gold); }
.lp-hero-stats span { font-size: .72rem; color: #C7D4EE; }
.lp-hero-art { height: 260px; filter: drop-shadow(0 18px 34px rgba(0,0,0,.45)); }
.lp-hero-prism { position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 70px, rgba(255,255,255,.03) 70px 71px); pointer-events: none; }

/* ---------------- cards ---------------- */
.lp-card { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: var(--lp-radius); box-shadow: var(--lp-shadow); padding: 22px; }
.lp-card-title { font-weight: 700; color: var(--lp-navy); }
.lp-page-title { font-weight: 800; color: var(--lp-navy); }
.lp-muted { color: var(--lp-muted); }
.lp-list { list-style: none; padding: 0; margin: 0; }
.lp-list li { padding: 10px 0; border-bottom: 1px dashed var(--lp-border); font-size: .93rem; }
.lp-list li:last-child { border-bottom: none; }
.lp-table th { color: var(--lp-navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.lp-table td { font-size: .9rem; }
.lp-table thead th { background: #F0F4FB; }
.lp-qpreview { font-size: .85rem; }
.lp-qpreview-mr { font-size: .8rem; color: var(--lp-muted); }

/* ---------------- badges ---------------- */
.lp-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .4px; }
.lp-badge-academic { background: rgba(46, 91, 255, .12); color: var(--lp-blue); }
.lp-badge-reasoning { background: rgba(201, 162, 39, .15); color: var(--lp-gold-2); }
.lp-badge-psych { background: rgba(25, 179, 148, .12); color: #0F7B5F; }
.lp-badge-success { background: #EAF9F5; color: #0F7B5F; }
.lp-diff { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.lp-diff-easy { background: #EAF9F5; color: #0F7B5F; }
.lp-diff-medium { background: #FDF6E3; color: #8A6B2F; }
.lp-diff-hard { background: #FDEBEC; color: #B3261E; }
.lp-growth { color: var(--lp-teal); font-weight: 700; }

/* ---------------- stats ---------------- */
.lp-stat { background: #fff; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); padding: 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--lp-shadow); }
.lp-stat-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--lp-grad); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.lp-stat strong { display: block; font-size: 1.5rem; color: var(--lp-navy); }
.lp-stat span { color: var(--lp-muted); font-size: .8rem; }

/* ---------------- admin bar / pills ---------------- */
.lp-adminbar { background: #fff; border-bottom: 1px solid var(--lp-border); padding: 10px 0; }
.lp-pill { padding: 6px 14px; border-radius: 20px; font-size: .82rem; font-weight: 600; color: var(--lp-muted); text-decoration: none; }
.lp-pill:hover { background: #EEF2FB; color: var(--lp-navy); }
.lp-pill.active { background: var(--lp-navy); color: #fff; }
.lp-pill-add { background: var(--lp-gold); color: var(--lp-navy); }
.lp-pill-add:hover { background: var(--lp-gold-2); color: #fff; }

/* ---------------- progress ---------------- */
.lp-progress { height: 8px; border-radius: 10px; background: #E9EEF8; }
.lp-progress .progress-bar { background: var(--lp-grad); border-radius: 10px; }
.lp-trait-row { margin-bottom: 12px; }

/* ---------------- report ---------------- */
.lp-hero-score { background: var(--lp-grad); border-radius: var(--lp-radius); color: #fff; padding: 26px; box-shadow: var(--lp-shadow); }
.lp-summary { font-size: .98rem; line-height: 1.7; }
.lp-score-ring { width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--lp-gold) var(--v), rgba(255,255,255,.2) 0); display: flex; align-items: center; justify-content: center; }
.lp-score-ring > div { width: 122px; height: 122px; border-radius: 50%; background: var(--lp-navy); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lp-score-ring strong { font-size: 2rem; color: var(--lp-gold); }
.lp-score-ring span { font-size: .68rem; color: #C7D4EE; text-transform: uppercase; letter-spacing: .5px; }
.lp-match-badge { background: #EAF9F5; color: #0F7B5F; border-radius: 12px; padding: 6px 12px; font-weight: 800; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.lp-match-badge small { font-weight: 600; font-size: .62rem; text-transform: uppercase; }
.lp-career-card { border: 1px solid var(--lp-border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.lp-career-card:last-child { margin-bottom: 0; }
.lp-noreport { max-width: 560px; margin: 60px auto; }

/* ---------------- assessment cards ---------------- */
.lp-assessment-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lp-assessment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(11, 31, 58, 0.12);
}
.lp-assessment-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.lp-assessment-title {
  font-weight: 700;
  color: var(--lp-navy);
  margin-bottom: 8px;
}
.lp-assessment-desc {
  color: var(--lp-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
}
.lp-assessment-details {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.lp-assessment-details li {
  padding: 4px 0;
  border-bottom: 1px dashed var(--lp-border);
  color: var(--lp-text);
}
.lp-assessment-details li:last-child {
  border-bottom: none;
}

/* ---------------- exam ---------------- */
.lp-exam-body { background: #Eef2f9; }
.lp-exam-header { background: var(--lp-navy); color: #fff; padding: 12px 0; position: sticky; top: 0; z-index: 1030; box-shadow: 0 4px 18px rgba(11,31,58,.35); }
.lp-timer-wrap { text-align: center; }
.lp-timer { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--lp-gold); display: block; line-height: 1.1; }
.lp-timer.danger { color: #FF6B6B; animation: lpBlink 1s infinite; }
.lp-timer-wrap small { font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: #C7D4EE; }
.lp-exam-counters { display: flex; gap: 8px; }
.lp-count-box { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 4px 10px; font-size: .72rem; text-align: center; }
.lp-count-box b { display: block; font-size: 1.1rem; color: #fff; }
.lp-count-answered b { color: var(--lp-teal); }
.lp-count-flagged b { color: var(--lp-gold); }
.lp-count-skipped b { color: #9AA9C4; }
.lp-exam-wrap { padding: 22px 14px 40px; max-width: 1500px; margin: 0 auto; }
.lp-question-card { background: #fff; border-radius: var(--lp-radius); box-shadow: var(--lp-shadow); padding: 26px; min-height: 420px; }
.lp-qnum { background: #F0F4FB; border-radius: 20px; padding: 4px 13px; font-size: .82rem; font-weight: 700; color: var(--lp-navy); }
.lp-qtext { font-size: 1.08rem; font-weight: 500; line-height: 1.7; }
.lp-options { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.lp-option { border: 1.5px solid var(--lp-border); border-radius: 12px; padding: 12px 16px; cursor: pointer; font-size: .95rem; transition: all .15s; display: flex; gap: 12px; align-items: center; }
.lp-option:hover { border-color: var(--lp-blue); background: #F6F9FF; }
.lp-option input { accent-color: var(--lp-blue); width: 17px; height: 17px; flex: none; }
.lp-option:has(input:checked) { border-color: var(--lp-blue); background: #EEF3FF; box-shadow: 0 0 0 3px rgba(46,91,255,.12); }
.lp-instruction-card { background: #fff; border-radius: var(--lp-radius); box-shadow: var(--lp-shadow); padding: 18px; position: sticky; top: 110px; }
.lp-legend .lp-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 4px; vertical-align: -1px; }
.lp-dot-answered { background: var(--lp-teal); }
.lp-dot-flagged { background: var(--lp-gold); }
.lp-dot-skipped { background: #E8EDF6; border: 1px solid #C9D2E0; }
.lp-dot-current { background: var(--lp-blue); }
.lp-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 7px; }
.lp-pal-btn { border: 1.5px solid #C9D2E0; background: #E8EDF6; border-radius: 9px; height: 40px; font-size: .8rem; font-weight: 700; color: var(--lp-muted); cursor: pointer; }
.lp-pal-btn.answered { background: var(--lp-teal); border-color: var(--lp-teal); color: #fff; }
.lp-pal-btn.flagged { background: var(--lp-gold); border-color: var(--lp-gold); color: var(--lp-navy); }
.lp-pal-btn.current { outline: 3px solid var(--lp-blue); outline-offset: 1px; border-color: var(--lp-blue); background: var(--lp-blue); color: #fff; }
.lp-modal { border-radius: 18px; border: none; }
.lp-spinner { color: var(--lp-blue); }
.lp-popular .progress { height: 6px; }

/* ---------------- interactive aptitude micro-tasks ---------------- */
.lp-game-panel { border: 1px solid var(--lp-border); border-radius: 16px; padding: 1.15rem; background: linear-gradient(135deg, #f7fbff, #f7f4ff); }
.lp-game-hint { color: var(--lp-muted); font-weight: 600; margin-bottom: .8rem; }
.lp-memory-display { min-height: 3rem; margin: .85rem 0; padding: .65rem; border-radius: 10px; background: var(--lp-navy); color: #fff; font-size: 1.2rem; font-weight: 700; letter-spacing: .2rem; text-align: center; }
.lp-memory-grid, .lp-visual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 74px)); gap: .55rem; justify-content: center; }
.lp-memory-tile { aspect-ratio: 1; border: 0; border-radius: 13px; background: #e8edf5; color: #15345b; font-weight: 800; font-size: 1.15rem; transition: transform .15s, background .15s; }
.lp-memory-tile:not(:disabled):hover { background: #d3dfff; transform: translateY(-2px); }
.lp-memory-tile.picked { background: #886df2; color: #fff; }
.lp-visual-grid { grid-template-columns: repeat(5, minmax(0, 40px)); margin: .8rem 0 1rem; }
.lp-visual-cell { width: 40px; aspect-ratio: 1; border-radius: 9px; background: #dce5f0; }
.lp-visual-cell.lit { background: linear-gradient(135deg, #21c6b5, #3685eb); box-shadow: 0 4px 10px #21c6b544; }
.lp-pattern-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 1rem; }
.lp-pattern-token { display: inline-grid; place-items: center; min-width: 3rem; height: 3rem; padding: .3rem; border-radius: 12px; background: #182c4d; color: #fff; font-size: 1.35rem; font-weight: 800; }
.lp-game-choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.lp-game-choice { border: 1px solid #cad6e6; border-radius: 11px; background: #fff; padding: .6rem 1rem; color: #253f63; font-weight: 700; transition: .15s; }
.lp-game-choice:hover, .lp-game-choice.selected { border-color: #755ae8; background: #f0ecff; color: #5138bd; }

/* ---------------- footer ---------------- */
.lp-footer { background: var(--lp-navy); color: #9AA9C4; padding: 20px 0; margin-top: auto; font-size: .85rem; }
.lp-footer small { color: #66799B; }

@keyframes lpBlink { 50% { opacity: .45; } }

/* ---------------- responsive ---------------- */
@media (max-width: 992px) {
  .lp-hero { padding-bottom: 80px; }
  .lp-hero-title { font-size: 1.8rem; }
  .lp-exam-wrap { padding: 14px 10px 30px; }
  .lp-palette-pane { order: -1; }
  .lp-instruction-card { position: static; }
  .lp-palette { grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); max-height: 260px; overflow-y: auto; }
}

/* Production Resilience: Network status pill */
.lp-net-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  transition: all 0.3s ease;
  margin-left: 10px;
}
.lp-net-online {
  background: #E6F8F2;
  color: #0E7054;
  border: 1px solid #B8EAD9;
}
.lp-net-offline {
  background: #FFF3D6;
  color: #995A00;
  border: 1px solid #FADFA1;
  animation: lpPulse 1.8s infinite;
}
.lp-net-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.lp-net-online .lp-net-dot { background: #19B394; }
.lp-net-offline .lp-net-dot { background: #D9822B; }

@keyframes lpPulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}
