.ielts-dashboard {
	max-width: 900px;
	margin: 20px auto;
	font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ielts-dashboard h2 {
	color: #1f3864;
}
.ielts-note {
	background: #fff2cc;
	border-left: 4px solid #bf8f00;
	padding: 8px 12px;
	color: #594100;
	font-size: 14px;
}
.ielts-lesson-list {
	list-style: decimal;
	padding-left: 22px;
}
.ielts-lesson-list li {
	padding: 8px 0;
	border-bottom: 1px solid #e5e5e5;
}
.ielts-task-badges {
	margin-left: 10px;
}
.ielts-badge {
	display: inline-block;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
	margin-right: 4px;
	background: #dce6f1;
	color: #1f3864;
}
.ielts-badge-listening { background: #d9ead3; color: #274e13; }
.ielts-badge-reading   { background: #d9ead3; color: #274e13; }
.ielts-badge-writing   { background: #fce5cd; color: #7f4a00; }
.ielts-badge-speaking  { background: #fce5cd; color: #7f4a00; }

.ielts-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 12px;
}
.ielts-table th, .ielts-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #e5e5e5;
}
.ielts-table th {
	background: #1f3864;
	color: #fff;
}

.ielts-button {
	display: inline-block;
	background: #2e75b6;
	color: #fff !important;
	padding: 8px 14px;
	border-radius: 4px;
	text-decoration: none;
	margin-right: 8px;
	border: none;
	cursor: pointer;
	font-size: 14px;
}

/* Progress bars */
.ielts-overall-progress {
	margin: 16px 0 24px;
}
.ielts-progress-label {
	font-size: 14px;
	color: #333;
	margin-bottom: 6px;
}
.ielts-progress-bar-track {
	background: #e5e5e5;
	border-radius: 8px;
	height: 14px;
	width: 100%;
	overflow: hidden;
}
.ielts-progress-bar-track.ielts-progress-bar-small {
	height: 8px;
	max-width: 220px;
	display: inline-block;
	vertical-align: middle;
}
.ielts-progress-bar-fill {
	background: linear-gradient(90deg, #2e75b6, #66a3d9);
	height: 100%;
	border-radius: 8px;
	transition: width 0.3s ease;
}
.ielts-progress-row {
	margin-top: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ielts-progress-text {
	font-size: 12px;
	color: #595959;
}

.ielts-lesson-link {
	text-decoration: none;
	color: #1f3864;
}
.ielts-lesson-link:hover {
	text-decoration: underline;
}

.ielts-badge-done {
	background: #d9ead3 !important;
	color: #274e13 !important;
}

/* Lesson detail / task cards */
.ielts-task-cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 16px;
}
.ielts-task-card {
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 16px;
	background: #fff;
}
.ielts-task-card h3 {
	margin-top: 0;
}
.ielts-status-done {
	color: #274e13;
	font-weight: bold;
}
.ielts-resource-list-front {
	list-style: none;
	padding: 0;
}
.ielts-resource-list-front li {
	padding: 4px 0;
}

/* Stage 3: scored task cards */
.ielts-score-pill {
	display: inline-block;
	background: #1f3864;
	color: #fff;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 10px;
	margin-left: 8px;
	vertical-align: middle;
}

.ielts-task-body {
	display: block;
}
.ielts-task-body-reading {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}
.ielts-reading-passage,
.ielts-task-body-reading .ielts-questions-panel {
	flex: 1 1 50%;
	max-height: 480px;
	overflow-y: auto;
	padding: 12px;
	border: 1px solid #eee;
	border-radius: 6px;
}
.ielts-reading-passage {
	background: #fafafa;
	line-height: 1.6;
}
@media (max-width: 700px) {
	.ielts-task-body-reading {
		flex-direction: column;
	}
	.ielts-reading-passage,
	.ielts-task-body-reading .ielts-questions-panel {
		max-height: none;
	}
}

.ielts-q {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
}
.ielts-q-text {
	font-weight: 600;
	margin-bottom: 6px;
}
.ielts-q-option {
	display: block;
	font-weight: normal;
	margin: 4px 0;
}
.ielts-correct-mark {
	color: #274e13;
	font-size: 12px;
	margin-left: 6px;
}
.ielts-q-was-correct {
	border-left: 3px solid #38761d;
	padding-left: 10px;
}
.ielts-q-was-wrong {
	border-left: 3px solid #cc0000;
	padding-left: 10px;
}
.ielts-q-result-icon {
	font-weight: bold;
	margin-left: 6px;
}
.ielts-q-was-correct .ielts-q-result-icon {
	color: #38761d;
}
.ielts-q-was-wrong .ielts-q-result-icon {
	color: #cc0000;
}
