/*
==================================================
MYEXAMPATH
STUDENT SUBJECTIVE EVALUATION
==================================================
*/


/*
==================================================
MAIN VIEWER
==================================================
*/

.em-student-subjective-evaluation {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px;
}


/*
==================================================
HEADER
==================================================
*/

.em-student-evaluation-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;

	margin-bottom: 24px;
	padding: 22px 24px;

	background: #ffffff;

	border: 1px solid #dce5ef;
	border-radius: 12px;

	box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);

	box-sizing: border-box;
}


/*
==================================================
HEADER CONTENT
==================================================
*/

.em-student-evaluation-header-content {
	flex: 1;
	min-width: 0;
}

.em-student-evaluation-eyebrow {
	display: block;

	margin-bottom: 7px;

	color: #0878ee;

	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;

	letter-spacing: 0.7px;
}

.em-student-evaluation-header h2 {
	margin: 0 0 6px;

	color: #172033;

	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;

	overflow-wrap: anywhere;
}

.em-student-evaluation-header p {
	margin: 0;

	color: #64748b;

	font-size: 14px;
	line-height: 1.5;
}


/*
==================================================
BACK TO SUBJECTIVE RESULTS
==================================================
*/

.em-student-evaluation-header-action {
	flex: 0 0 auto;
}

.em-student-evaluation-header-action a {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;
	padding: 9px 15px;

	background: #f8fafc;
	color: #193451;

	border: 1px solid #cbd5e1;
	border-radius: 8px;

	text-decoration: none;

	font-size: 13px;
	font-weight: 700;
	line-height: 1;

	white-space: nowrap;

	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		transform 0.18s ease;
}

.em-student-evaluation-header-action a:hover {
	background: #edf6ff;
	color: #075ea8;

	border-color: #0878ee;

	text-decoration: none;

	transform: translateY(-1px);
}


/*
==================================================
QUESTION CARD
==================================================
*/

.em-student-evaluation-question {
	margin-bottom: 32px;

	background: #ffffff;

	border: 1px solid #dce5ef;
	border-radius: 12px;

	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);

	overflow: hidden;
}


/*
==================================================
QUESTION HEADER
==================================================
*/

.em-student-evaluation-question-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

	padding: 18px 20px;

	background: #f8fbff;

	border-bottom: 1px solid #e2e8f0;
}

.em-student-evaluation-question-header h3 {
	margin: 0;

	color: #172033;

	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}


/*
==================================================
MARKS
==================================================
*/
.em-student-evaluation-marks {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;

	flex: 0 0 auto;

	min-height: 38px;
	padding: 7px 12px;

	background: #eaf4ff;
	color: #075ea8;

	border: 1px solid #c9e2fb;
	border-radius: 8px;

	font-size: 13px;
	font-weight: 600;
	line-height: 1;

	white-space: nowrap;
}

.em-student-evaluation-marks strong {
	margin: 0;

	color: #075ea8;

	font-size: 18px;
	font-weight: 800;
	line-height: 1;
}


/*
==================================================
QUESTION TEXT
==================================================
*/

.em-student-evaluation-question-text {
	margin: 0;
	padding: 18px 20px;

	color: #172033;

	border-bottom: 1px solid #edf1f5;

	font-size: 15px;
	font-weight: 500;
	line-height: 1.65;

	overflow-wrap: anywhere;
}

.em-student-evaluation-question-text p {
	margin-top: 0;
	margin-bottom: 10px;
}

.em-student-evaluation-question-text p:last-child {
	margin-bottom: 0;
}


/*
==================================================
TEACHER FEEDBACK
==================================================
*/

.em-student-evaluation-feedback {
	margin: 18px 20px;
	padding: 15px 16px;

	background: #f0fbf5;

	border: 1px solid #ccebd9;
	border-left: 4px solid #20b26b;
	border-radius: 8px;
}

.em-student-evaluation-feedback strong {
	display: block;

	margin-bottom: 7px;

	color: #12824b;

	font-size: 12px;
	font-weight: 800;
	line-height: 1.3;

	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.em-student-evaluation-feedback p {
	margin: 0;

	color: #334155;

	font-size: 14px;
	line-height: 1.65;
}


/*
==================================================
ANSWER PAGES
==================================================
*/

.em-student-evaluation-answer-pages {
	padding: 20px;

	background: #f8fafc;

	border-top: 1px solid #edf1f5;
}

.em-student-evaluation-answer-pages h4 {
	margin: 0 0 16px;

	color: #172033;

	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}


/*
==================================================
ANSWER PAGE
==================================================
*/

.em-student-evaluation-answer-page {
	margin-bottom: 24px;
	padding: 14px;

	background: #ffffff;

	border: 1px solid #dce5ef;
	border-radius: 10px;

	box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);

	box-sizing: border-box;
}

.em-student-evaluation-answer-page:last-child {
	margin-bottom: 0;
}


/*
==================================================
PAGE LABEL
==================================================
*/

.em-student-evaluation-page-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 30px;

	margin-bottom: 12px;
	padding: 5px 10px;

	background: #edf6ff;
	color: #075ea8;

	border: 1px solid #c9e2fb;
	border-radius: 6px;

	font-size: 12px;
	font-weight: 700;
	line-height: 1;

	white-space: nowrap;
}


/*
==================================================
IMAGE + ANNOTATION STAGE
==================================================
*/

.em-student-evaluation-image-stage {
	position: relative;

	display: block;
	width: fit-content;
	max-width: 100%;

	margin: 0 auto;

	background: #ffffff;

	border: 1px solid #d7dee8;
	border-radius: 8px;

	box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);

	line-height: 0;

	overflow: hidden;
}


/*
==================================================
ORIGINAL ANSWER IMAGE
==================================================
*/

.em-student-evaluation-answer-image {
	display: block;

	width: auto;
	max-width: 100%;
	height: auto;

	margin: 0;

	object-fit: contain;
}


/*
==================================================
TEACHER ANNOTATION OVERLAY
==================================================
*/

.em-student-evaluation-annotation-image {
	position: absolute;
	top: 0;
	left: 0;

	width: 100%;
	height: 100%;

	object-fit: fill;

	pointer-events: none;
	user-select: none;
}


/*
==================================================
MOBILE
==================================================
*/

@media (max-width: 768px) {

	.em-student-subjective-evaluation {
		padding: 14px;
	}
	
	.em-student-evaluation-header {
	flex-direction: column;
	align-items: stretch;
	gap: 18px;

	padding: 18px;
}

.em-student-evaluation-header h2 {
	font-size: 21px;
}

.em-student-evaluation-header-action {
	width: 100%;
}

.em-student-evaluation-header-action a {
	width: 100%;
	box-sizing: border-box;
}


.em-student-evaluation-question-header {
	align-items: flex-start;
	flex-direction: column;

	gap: 12px;
	padding: 15px;
}

.em-student-evaluation-question-text {
	padding: 15px;
}

.em-student-evaluation-feedback {
	margin: 14px 15px;
}

.em-student-evaluation-answer-pages {
	padding: 15px;
}

.em-student-evaluation-answer-page {
	padding: 10px;
}

	.em-student-evaluation-image-stage {
		display: block;
		width: 100%;
	}

	.em-student-evaluation-answer-image {
		width: 100%;
	}
}