:root {
  --primary: #0b3a75;
  --primary-2: #1458a8;
  --accent: #f6a623;
  --ink: #1f2937;
  --muted: #6b7280;
  --surface: #ffffff;
  --line: #e5e7eb;
  --bg: #f5f7fb;
}

body { background: var(--bg); color: var(--ink); font-family: "Segoe UI", system-ui, sans-serif; letter-spacing: 0; }
.app-navbar { background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 8px 28px rgba(11, 58, 117, .18); }
.nav-logo { width: 210px; max-height: 42px; object-fit: contain; background: #fff; border-radius: 4px; padding: 3px 6px; }
.app-shell { min-height: calc(100vh - 132px); }
.footer-band { background: #0b2447; color: #cbd5e1; padding: 18px 0; font-size: .92rem; }
.hero-band { background: linear-gradient(135deg, #0b3a75, #1458a8); color: white; padding: 46px 0 34px; position: relative; overflow: hidden; }
.hero-band:after { content: ""; position: absolute; inset: auto -10% -44% 50%; height: 260px; background: rgba(246, 166, 35, .18); transform: rotate(-8deg); border-radius: 32px; }
.content-wrap { max-width: 1180px; margin: 0 auto; padding: 26px 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(15, 23, 42, .07); }
.panel-pad { padding: 22px; }
.metric { border-left: 4px solid var(--accent); }
.status-badge { border-radius: 999px; padding: .35rem .65rem; font-size: .8rem; font-weight: 700; background: #e8f1ff; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.status-Submitted, .status-UnderReview { background: #fff7e6; color: #995f00; }
.status-Shortlisted, .status-Selected, .status-Joined { background: #e8fff3; color: #096b3d; }
.status-Rejected { background: #feecec; color: #b42318; }
.status-OnHold { background: #eef2ff; color: #3730a3; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-warning { background: var(--accent); border-color: var(--accent); color: #1f2937; font-weight: 700; }
.form-control, .form-select { min-height: 46px; border-radius: 8px; }
.required:after { content: " *"; color: #dc2626; }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn .25s ease-in; }
.step-pill { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: #e5e7eb; color: #4b5563; font-weight: 700; }
.step-pill.active { background: var(--primary); color: white; }
.timeline { border-left: 3px solid #dbeafe; margin-left: 12px; padding-left: 22px; }
.timeline-item { position: relative; margin-bottom: 18px; }
.timeline-item:before { content: ""; position: absolute; left: -31px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 3px solid white; box-shadow: 0 0 0 2px #fcd98d; }
.table thead th { background: #f8fafc; color: #334155; font-size: .88rem; }
.admin-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.admin-menu { position: sticky; top: 76px; align-self: start; }
.admin-menu a { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #334155; text-decoration: none; }
.admin-menu a:hover { background: #e8f1ff; color: var(--primary); }
.illustration { width: 88px; height: 88px; border-radius: 22px; background: #fff7e6; display: grid; place-items: center; color: var(--accent); font-size: 2.4rem; }
.kanban-board { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.kanban-column { min-height: 520px; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, #fff8ec, #f7fbff); border: 1px solid #e8edf5; box-shadow: inset 0 1px 0 #fff, 0 16px 38px rgba(23, 43, 77, .08); transition: transform .18s ease, box-shadow .18s ease; }
.kanban-column.drop-ready { transform: translateY(-3px); box-shadow: inset 0 0 0 2px #f6a623, 0 18px 42px rgba(246, 166, 35, .16); }
.kanban-column h2 { font-size: .95rem; font-weight: 800; color: #17325f; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kanban-column h2 span { min-width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 50%; background: #fff; color: #995f00; box-shadow: 0 8px 18px rgba(15, 23, 42, .08); }
.kanban-card { display: grid; gap: 5px; padding: 14px; margin-bottom: 10px; border-radius: 14px; background: rgba(255,255,255,.92); border: 1px solid #edf2f7; box-shadow: 0 12px 28px rgba(15, 23, 42, .08); cursor: grab; }
.kanban-card.dragging { opacity: .6; }
.kanban-card span, .kanban-card small { color: var(--muted); }
.kanban-card em { color: #9a5b00; font-style: normal; font-weight: 700; font-size: .82rem; }
.notification-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 13px; border-radius: 14px; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.notification-row:hover { background: #f8fafc; color: var(--ink); }
.notification-row.unread { background: #fff7e6; border-color: #ffd994; }
.notification-row i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: #e8f1ff; color: var(--primary); }
.notification-row small { display: block; color: var(--muted); }
.notification-row time { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.diff-table td { max-width: 360px; white-space: normal; overflow-wrap: anywhere; }
.assessment-exam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 14px;
  align-items: start;
  position: relative;
  max-width: 1240px;
}

.assessment-main-panel,
.assessment-answer-panel {
  min-width: 0;
}

.assessment-answer-panel {
  position: sticky;
  top: 92px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #e5edf7;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
  max-height: calc(100vh - 124px);
  overflow-y: auto;
}

.assessment-answer-panel h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #10264d;
}

.assessment-answer-panel p {
  color: #6b7280;
  font-size: .8rem;
  margin-bottom: 10px;
}

.answer-palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.answer-tile {
  min-height: 42px;
  border: 1px solid #d8e3f3;
  border-radius: 10px;
  background: #f8fafc;
  color: #17325f;
  font-weight: 800;
  padding: 5px 4px;
  font-size: .78rem;
}

.answer-tile span,
.answer-tile strong {
  display: block;
}

.answer-tile strong {
  color: #8a93a3;
  line-height: 1;
}

.answer-tile.answered {
  background: #e8fff3;
  border-color: #9ee8bf;
}

.answer-tile.answered strong {
  color: #08713e;
}

.answer-tile.current {
  box-shadow: 0 0 0 3px rgba(246, 166, 35, .28);
  border-color: #f6a623;
}

.assessment-question-step {
  display: none;
}

.assessment-question-step.active {
  display: block;
}

.question-step-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #5b6475;
}

.question-step-head em {
  color: #0b3a75;
  font-style: normal;
}

.assessment-submit-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.assessment-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(11, 36, 71, .82);
  color: #fff;
  text-align: center;
  padding: 24px;
}

.assessment-lock-overlay[hidden] {
  display: none;
}

.assessment-lock-overlay > div {
  max-width: 460px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
}

.assessment-lock-overlay i {
  font-size: 3rem;
  color: #ffcf70;
}

.assessment-submit-overlay {
  background: rgba(11, 36, 71, .74);
  backdrop-filter: blur(10px);
}

.assessment-submit-overlay > div {
  background: linear-gradient(135deg, rgba(255, 255, 255, .20), rgba(255, 247, 232, .14));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .24);
}

.assessment-submit-overlay i {
  color: #ffd18a;
  animation: assessmentPulse 1.2s ease-in-out infinite;
}

.assessment-paper.is-submitting {
  pointer-events: none;
}

@keyframes assessmentPulse {
  0%, 100% { transform: scale(1); opacity: .78; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-menu {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .assessment-exam-layout { grid-template-columns: 1fr; }
  .assessment-answer-panel { position: static; max-height: none; }
}

@media (max-width: 560px) {
  .content-wrap { padding: 18px 10px; }
  .panel-pad { padding: 16px; }
  .admin-menu { grid-template-columns: 1fr; }
  .nav-logo { width: min(170px, 52vw); }
  .notification-row { grid-template-columns: 42px 1fr; }
  .notification-row time { grid-column: 2; }
  .answer-palette {
    grid-template-columns: repeat(4, minmax(48px, 1fr));
    overflow-x: auto;
  }
  .assessment-submit-bar { display: grid; grid-template-columns: 1fr; }
  .assessment-submit-bar .btn { width: 100%; }
}
