/* CELPIP Practice – student dashboard + results (inside the theme) */
.celp-dash { --c-blue: #1f5c99; --c-green: #2eb872; --c-amber: #f0b429; --c-red: #e03131; --c-purple: #9b59b6; --c-line: #e3e6e8; font-size: 15px; line-height: 1.5; }
.celp-dash *, .celp-dash *::before { box-sizing: border-box; }
.celp-muted { color: #6b7780; font-size: .9em; }

.celp-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--c-line); margin-bottom: 16px; flex-wrap: wrap; }
.celp-tabs a { padding: 8px 16px; text-decoration: none; color: #444; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.celp-tabs a.is-active { color: var(--c-blue); border-bottom-color: var(--c-blue); font-weight: 600; }

.celp-notice { padding: 10px 14px; margin: 0 0 14px; background: #fff8e6; border: 1px solid #f3d38a; border-radius: 6px; }
.celp-access { padding: 10px 14px; margin: 0 0 14px; background: #f1f7fc; border: 1px solid #cfe2f3; border-radius: 6px; }

.celp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.celp-pills a { padding: 3px 14px; border: 1px solid var(--c-green); border-radius: 20px; color: var(--c-green); text-decoration: none; font-size: 13px; text-transform: uppercase; }
.celp-pills a.is-active { background: var(--c-green); color: #fff; }

.celp-table-wrap { overflow-x: auto; }
.celp-table { width: 100%; border-collapse: collapse; }
.celp-table th { background: linear-gradient(90deg, #3ccf8e, #1f8f77); color: #fff; text-align: left; padding: 10px 12px; font-weight: 600; }
.celp-table td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.celp-inline-form { display: inline; margin: 0; }

.celp-button, .celp-dash button.celp-button {
	display: inline-block; padding: 5px 14px; border: 0; border-radius: 20px; cursor: pointer;
	background: var(--c-blue); color: #fff !important; text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.6;
}
.celp-take { background: #c2185b; }
.celp-resume { background: #1e9bd7; }
.celp-secondary { background: #fff; color: var(--c-blue) !important; border: 1px solid var(--c-blue); }
.celp-locked { background: #6b7780; }

.celp-status { padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; color: #fff; background: #888; }
.celp-status-checked { background: #d6336c; }
.celp-status-pending_review { background: var(--c-green); }
.celp-status-in_progress { background: #1e9bd7; }

.celp-perf-cards, .celp-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.celp-perf-card, .celp-level-card { display: flex; flex-direction: column; align-items: center; padding: 14px; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; }
.celp-perf-label, .celp-level-module { font-weight: 600; color: #444; }
.celp-perf-value, .celp-level-value { font-size: 34px; font-weight: 700; color: var(--c-blue); line-height: 1.2; }
.celp-chart { margin: 0 0 22px; padding: 12px; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; }
.celp-chart figcaption { font-weight: 600; margin-bottom: 6px; }
.celp-chart svg { width: 100%; height: auto; display: block; }
.celp-chart .celp-grid { stroke: #e6e9eb; }
.celp-chart .celp-axis { font-size: 11px; fill: #6b7780; }
.celp-chart .celp-line { fill: none; stroke: var(--c-blue); stroke-width: 2.5; }
.celp-chart .celp-dot { fill: #fff; stroke: var(--c-blue); stroke-width: 2.5; }

/* Results */
.celp-results-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.celp-results-head h2 { margin: 0; }
.celp-results-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.celp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.celp-stat { display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 600; }
.celp-stat b { font-size: 22px; }
.celp-stat-total { background: #1ea7fd; }
.celp-stat-unattempted { background: var(--c-amber); }
.celp-stat-correct { background: var(--c-green); }
.celp-stat-incorrect { background: var(--c-red); }

.celp-circles { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0 0 16px; padding: 6px 2px 10px; }
.celp-circle { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; color: #fff; font-weight: 700; cursor: pointer; background: #9aa5ae; }
.celp-circle.is-correct { background: var(--c-green); }
.celp-circle.is-incorrect { background: var(--c-red); }
.celp-circle.is-unattempted { background: var(--c-amber); }
.celp-circle.is-review { background: var(--c-purple); }
.celp-circle.is-reviewed { background: #1ea7fd; }
.celp-circle.is-current { outline: 3px solid #333; outline-offset: 2px; }

.celp-qpanel { display: grid; grid-template-columns: 1fr 240px; gap: 18px; }
.celp-qpanel[hidden] { display: none; }
.celp-qhead { margin: 0 0 8px; padding: 8px 12px; background: linear-gradient(90deg, #1f5c99, #dbe8f3); color: #fff; font-size: 16px; }
.celp-qcontext { margin-bottom: 12px; }
.celp-qcontext summary { cursor: pointer; color: var(--c-blue); }
.celp-review-left, .celp-review-block { margin: 10px 0; padding: 12px; background: #fafbfc; border: 1px solid var(--c-line); border-radius: 4px; line-height: 2; }
.celp-review-left img, .celp-review-block img, .celp-answer img { max-width: 100%; height: auto; }
.celp-review-media { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.celp-review-media audio, .celp-review-video { max-width: 100%; }
.celp-blank { padding: 0 6px; border-radius: 3px; font-weight: 600; }
.celp-blank.is-correct { background: #d3f9d8; color: #1b5e20; }
.celp-blank.is-wrong { background: #ffe3e3; color: #a51111; text-decoration: line-through; }
.celp-blank.is-empty { background: #fff3bf; }
.celp-blank.is-key { background: #d0ebff; color: #0b3f73; }
.celp-answer { padding: 8px 12px; border-radius: 4px; background: #f6f7f8; margin-bottom: 8px; }
.celp-answer.is-correct { background: #d3f9d8; }
.celp-answer.is-incorrect { background: #ffe3e3; }
.celp-answer.is-key { background: #d0ebff; }
.celp-explanation, .celp-feedback, .celp-answer-text { padding: 10px 12px; background: #fff; border-left: 4px solid var(--c-blue); margin: 8px 0; }
.celp-qscore { padding: 14px; background: #f1f6fa; border-radius: 6px; align-self: start; }
.celp-qscore h4 { margin: 0 0 6px; color: var(--c-blue); }
.celp-qscore-value { font-weight: 700; font-size: 18px; }
.celp-qnav { display: flex; gap: 6px; }

@media (max-width: 700px) {
	.celp-qpanel { grid-template-columns: 1fr; }
	.celp-table thead { display: none; }
	.celp-table, .celp-table tbody, .celp-table tr, .celp-table td { display: block; width: 100%; }
	.celp-table tr { border: 1px solid var(--c-line); border-radius: 6px; margin-bottom: 10px; }
	.celp-table td { border: 0; padding: 6px 12px; }
	.celp-table td::before { content: attr(data-label); display: block; font-size: 12px; color: #6b7780; }
}
