/* "My Tests" modal on /learn (templ myTestsModal + learn_mytests_modal.js).
   Header/body chrome comes from learn_classbar.css (classes-modal-*); these
   are the test rows themselves, in the style of the old /screening page. */
.mytests-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: 18px;
	padding: 1.1rem 1.25rem;
	margin-bottom: 0.75rem;
	box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.08);
}
.mytests-row:last-child { margin-bottom: 0; }
.mytests-icon {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 14px;
	background: #eef2ff;
	color: #4f46e5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}
.mytests-row {
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mytests-row:hover {
	transform: translateY(-2px);
	border-color: rgba(99, 102, 241, 0.35);
	box-shadow: 0 16px 30px -14px rgba(91, 59, 179, 0.25);
}
.mytests-info { flex: 1; min-width: 0; }
.mytests-info .fw-bold {
	color: #0f172a;
	font-size: 1rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.mytests-info .text-muted {
	color: #64748b !important;
	margin-top: 2px;
}
.mytests-result-chip {
	background: #ecfdf5;
	color: #047857;
	font-weight: 600;
	border-radius: 999px;
	padding: 0.45rem 1rem;
	font-size: 0.9rem;
	white-space: nowrap;
}
.mytests-start {
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.88rem;
	line-height: 1.2;
	padding: 0.55rem 1.1rem;
	white-space: nowrap;
	flex-shrink: 0;
}

@media (max-width: 575.98px) {
	.mytests-row {
		flex-wrap: wrap;
		padding: 1rem;
		gap: 0.75rem;
	}
	.mytests-info { flex-basis: calc(100% - 48px - 0.75rem); }
	.mytests-start,
	.mytests-result-chip {
		width: 100%;
		text-align: center;
	}
}

html[data-theme="dark"] .mytests-info .fw-bold { color: var(--tt-ink, #e6ebf5); }
html[data-theme="dark"] .mytests-info .text-muted { color: var(--tt-ink-soft, #94a3b8) !important; }
html[data-theme="dark"] .mytests-row:hover { border-color: rgba(0, 140, 255, 0.45); }

/* Dark theme (theme.css stamps html[data-theme="dark"]) */
html[data-theme="dark"] .mytests-row {
	background: var(--tt-surface, #111a2e);
	border-color: var(--tt-line, #263450);
	box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .mytests-icon {
	background: rgba(99, 102, 241, 0.18);
	color: #a5b4fc;
}
html[data-theme="dark"] .mytests-result-chip {
	background: rgba(16, 185, 129, 0.14);
	color: #34d399;
}

/* Deadline hint on tests still to sit. */
.mytests-due { white-space: nowrap; }
.mytests-due-soon { color: #f59e0b; font-weight: 600; }
