/* SI MedEd Exam Admin — module styles (extends ../css/style.css) */
.badge { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; border-radius: 999px; padding: 3px 11px; }
.badge-green { background: #e9f2ea; color: #1f4a28; border: 1px solid #c9ddcb; }
.badge-gray { background: #eef1f4; color: #5b6472; border: 1px solid #dfe3e8; }
.badge-amber { background: #fef3e2; color: #92580a; border: 1px solid #f3ddae; }
.badge-red { background: #fdecec; color: #a02a2a; border: 1px solid #f3c1c1; }
.badge-blue { background: #e6ecf5; color: #1c2b4a; border: 1px solid #c3cede; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-card .num { font-family: Georgia, serif; font-size: 30px; color: var(--navy); line-height: 1.1; }
.stat-card .lbl { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; }
.stat-card .sub { font-size: 13px; color: var(--muted); }

.dist-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin: 12px 0 4px; }
.dist-bars .bar { flex: 1; background: var(--green); border-radius: 3px 3px 0 0; min-height: 3px; position: relative; }
.dist-bars .bar:hover { background: var(--green-dark); }
.dist-labels { display: flex; gap: 4px; font-size: 11px; color: var(--muted); }
.dist-labels span { flex: 1; text-align: center; }

.flag { border-radius: 8px; padding: 10px 14px; margin: 8px 0; font-size: 14.5px; }
.flag-review { background: #fdecec; border: 1px solid #f3c1c1; color: #7c2424; }
.flag-warn { background: #fef6e7; border: 1px solid #f0dcae; color: #7a5410; }
.flag-info { background: #eef3fa; border: 1px solid #cfd9ea; color: #2c3d5e; }
.flag strong { display: block; margin-bottom: 2px; }

.item-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.item-card .qmeta { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.item-card .qstem { font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.opt-list { list-style: upper-alpha; margin: 0 0 6px; padding-left: 26px; }
.opt-list li { margin-bottom: 5px; padding: 6px 10px; border-radius: 6px; }
.opt-list li.key { background: #e9f2ea; font-weight: 600; }
.opt-list li.picked { outline: 2px solid var(--navy); }
.opt-list li.wrong-pick { outline: 2px solid #c0392b; background: #fdecec; }
.opt-pct { font-size: 12.5px; color: var(--muted); margin-left: 8px; }

.exam-timer { position: sticky; top: 0; z-index: 50; background: var(--navy-dark); color: #fff; padding: 10px 0; font-size: 17px; }
.exam-timer .wrap { display: flex; justify-content: space-between; align-items: center; }
.exam-timer .time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 20px; }
.exam-timer .time.low { color: #ffb4b4; }
.progress { height: 8px; background: rgba(255,255,255,0.15); border-radius: 99px; overflow: hidden; margin: 10px 0 20px; }
.progress > div { height: 100%; background: var(--green); width: 0%; transition: width 0.2s; }

.form-grid { display: grid; gap: 14px; max-width: 720px; }
.form-grid label { font-weight: 600; font-size: 15px; color: var(--navy); display: block; margin-bottom: 4px; }
.form-grid input[type="text"], .form-grid input[type="number"], .form-grid textarea, .form-grid select {
  width: 100%; padding: 10px 12px; font-size: 15.5px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit;
}
.form-grid textarea { min-height: 90px; }
.check-list { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; }
.check-list label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; color: var(--ink); cursor: pointer; padding: 6px; border-radius: 6px; }
.check-list label:hover { background: #f4f7f4; }
.check-list input { margin-top: 4px; flex: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; align-items: center; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-danger { background: #fff; color: #a02a2a; border: 1px solid #e3b6b6; }
.btn-danger:hover { background: #fdecec; }
.muted { color: var(--muted); font-size: 14px; }
.code-note { font-size: 13px; color: var(--muted); background: #f4f5f7; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.sortable th { cursor: pointer; user-select: none; }
.sortable th:hover { background: #16263f; }
