/*
==================================================
MYEXAMPATH
TEACHER SUBJECTIVE EVALUATION
==================================================

Teacher-side Subjective Evaluation interface.

Handles:

- Subjective exam/session list
- Evaluation progress
- Submitted student list
- Student evaluation status
- View Students / View Evaluation actions

The actual answer marking workspace is styled
separately in subjective-evaluation-workspace.css.
==================================================
*/


/*
==================================================
MAIN SUBJECTIVE EVALUATION PAGE
==================================================
*/

.em-subjective-evaluation {
	width: 100%;
	max-width: 1400px;

	margin: 0 auto;
	padding: 24px 28px 40px;

	box-sizing: border-box;
}


/*
==================================================
PAGE HEADER
==================================================
*/

.em-subjective-evaluation-header {
	display: flex;
	align-items: flex-start;
	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);
}


/*
--------------------------------------------------
HEADER CONTENT
--------------------------------------------------
*/

.em-subjective-evaluation-header > div:first-child {
	min-width: 0;
	flex: 1;
}

.em-subjective-evaluation-header h2 {
	margin: 0 0 7px;

	color: #172033;

	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.em-subjective-evaluation-header p {
	max-width: 720px;

	margin: 0;

	color: #64748b;

	font-size: 14px;
	line-height: 1.6;
}


/*
==================================================
BACK TO EXAM MANAGEMENT
==================================================
*/

.em-subjective-evaluation-back {
	flex: 0 0 auto;
}

.em-subjective-evaluation-back a {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 40px;
	padding: 8px 14px;

	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-subjective-evaluation-back a:hover {
	background: #edf6ff;
	color: #075ea8;

	border-color: #0878ee;

	text-decoration: none;

	transform: translateY(-1px);
}


/*
==================================================
EMPTY / INFORMATION MESSAGE
==================================================
*/

.em-subjective-evaluation .em-results-message {
	margin: 20px 0 0;
	padding: 18px 20px;

	background: #ffffff;
	color: #64748b;

	border: 1px solid #dce5ef;
	border-radius: 10px;

	text-align: center;

	font-size: 14px;
	line-height: 1.6;
}

/*
==================================================
SUBJECTIVE EXAM LIST
==================================================
*/

.em-subjective-evaluation-list {
	display: grid;
	grid-template-columns: repeat(
		auto-fit,
		minmax(320px, 1fr)
	);

	gap: 18px;

	width: 100%;
}


/*
==================================================
SUBJECTIVE EXAM CARD
==================================================
*/

.em-subjective-exam-card {
	display: flex;
	flex-direction: column;

	min-width: 0;

	padding: 20px;

	background: #ffffff;

	border: 1px solid #dce5ef;
	border-radius: 12px;

	box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);

	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.em-subjective-exam-card:hover {
	border-color: #c5d5e6;

	box-shadow: 0 7px 20px rgba(15, 23, 42, 0.08);

	transform: translateY(-2px);
}


/*
==================================================
EXAM CARD HEADER
==================================================
*/

.em-subjective-exam-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;

	margin-bottom: 18px;
	padding-bottom: 16px;

	border-bottom: 1px solid #e8edf3;
}

.em-subjective-exam-card-header > div:first-child {
	min-width: 0;
	flex: 1;
}


/*
--------------------------------------------------
EXAM NAME
--------------------------------------------------
*/

.em-subjective-exam-card h3 {
	margin: 0 0 6px;

	color: #172033;

	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;

	overflow-wrap: anywhere;
}


/*
--------------------------------------------------
SESSION INFORMATION
--------------------------------------------------
*/

.em-subjective-exam-session {
	display: block;

	color: #64748b;

	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
}


/*
==================================================
EVALUATION STATUS BADGE
==================================================
*/

.em-subjective-evaluation-status-badge,
.em-subjective-evaluation-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 auto;

	min-height: 30px;
	padding: 5px 10px;

	background: #fff7df;
	color: #8a6200;

	border: 1px solid #f0dda2;
	border-radius: 999px;

	font-size: 11px;
	font-weight: 700;
	line-height: 1;

	white-space: nowrap;
}


/*
--------------------------------------------------
COMPLETED STATUS
--------------------------------------------------
*/

/*
--------------------------------------------------
EXAM STATUS - COMPLETED
--------------------------------------------------
*/

.em-subjective-evaluation-status.em-status-completed {
	background: #ecfdf3;
	color: #147a42;

	border-color: #b9e8cb;
}


/*
--------------------------------------------------
EXAM STATUS - IN PROGRESS
--------------------------------------------------
*/

.em-subjective-evaluation-status.em-status-in_progress {
	background: #eff6ff;
	color: #1d5fa7;

	border-color: #bfdbfe;
}


/*
--------------------------------------------------
EXAM STATUS - NOT STARTED
--------------------------------------------------
*/

.em-subjective-evaluation-status.em-status-not_started {
	background: #f8fafc;
	color: #64748b;

	border-color: #dce5ef;
}


/*
==================================================
EVALUATION STATISTICS
==================================================
*/

.em-subjective-exam-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);

	gap: 10px;

	margin-bottom: 18px;
}


/*
--------------------------------------------------
STAT CARD
--------------------------------------------------
*/

.em-subjective-exam-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	min-width: 0;
	min-height: 72px;

	padding: 10px 8px;

	background: #f8fafc;

	border: 1px solid #e2e8f0;
	border-radius: 8px;

	text-align: center;
}

.em-subjective-exam-stat span {
	display: block;

	margin-bottom: 5px;

	color: #64748b;

	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.em-subjective-exam-stat strong {
	display: block;

	color: #172033;

	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}


/*
--------------------------------------------------
EVALUATED STAT
--------------------------------------------------
*/

.em-subjective-exam-stat.is-evaluated strong {
	color: #16804a;
}


/*
--------------------------------------------------
PENDING STAT
--------------------------------------------------
*/

.em-subjective-exam-stat.is-pending strong {
	color: #b77900;
}


/*
==================================================
EXAM CARD ACTIONS
==================================================
*/

.em-subjective-exam-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;

	margin-top: auto;
	padding-top: 2px;
}


/*
==================================================
VIEW STUDENTS BUTTON
==================================================
*/

.em-view-subjective-students {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;
	padding: 9px 16px;

	background: #0878ee;
	color: #ffffff;

	border: 1px solid #0878ee;
	border-radius: 8px;

	text-decoration: none;

	font-size: 13px;
	font-weight: 700;
	line-height: 1;

	cursor: pointer;

	box-shadow: 0 3px 8px rgba(8, 120, 238, 0.16);

	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.em-view-subjective-students:hover {
	background: #066bd7;
	color: #ffffff;

	border-color: #066bd7;

	text-decoration: none;

	box-shadow: 0 4px 10px rgba(8, 120, 238, 0.22);

	transform: translateY(-1px);
}

/*
==================================================
SUBMITTED STUDENTS VIEW
==================================================
*/

.em-subjective-students-view {
	width: 100%;
	max-width: 1400px;

	margin: 0 auto;
	padding: 24px 28px 40px;

	box-sizing: border-box;
}


/*
==================================================
SUBMITTED STUDENTS HEADER
==================================================
*/

.em-subjective-students-header {
	display: flex;
	align-items: flex-start;
	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);
}

.em-subjective-students-header > div:first-child {
	min-width: 0;
	flex: 1;
}

.em-subjective-students-header h2 {
	margin: 0 0 7px;

	color: #172033;

	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.em-subjective-students-header p {
	margin: 0;

	color: #64748b;

	font-size: 14px;
	line-height: 1.6;
}


/*
==================================================
BACK TO EXAMS
==================================================
*/

.em-subjective-students-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 auto;

	min-height: 40px;
	padding: 8px 14px;

	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-subjective-students-back:hover {
	background: #edf6ff;
	color: #075ea8;

	border-color: #0878ee;

	text-decoration: none;

	transform: translateY(-1px);
}


/*
==================================================
SUBMITTED STUDENT LIST
==================================================
*/

.em-subjective-student-list {
	display: grid;
	grid-template-columns: repeat(
		auto-fit,
		minmax(340px, 1fr)
	);

	gap: 18px;

	width: 100%;
}


/*
==================================================
SUBMITTED STUDENT CARD
==================================================
*/

.em-subjective-student-card {
	display: flex;
	flex-direction: column;

	min-width: 0;

	padding: 20px;

	background: #ffffff;

	border: 1px solid #dce5ef;
	border-radius: 12px;

	box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);

	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.em-subjective-student-card:hover {
	border-color: #c5d5e6;

	box-shadow: 0 7px 20px rgba(15, 23, 42, 0.08);

	transform: translateY(-2px);
}


/*
==================================================
STUDENT CARD HEADER
==================================================
*/

.em-subjective-student-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;

	margin-bottom: 16px;
	padding-bottom: 15px;

	border-bottom: 1px solid #e8edf3;
}

.em-subjective-student-card-header > div:first-child {
	min-width: 0;
	flex: 1;
}

.em-subjective-student-card h3 {
	margin: 0 0 5px;

	color: #172033;

	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;

	overflow-wrap: anywhere;
}


/*
==================================================
STUDENT ID
==================================================
*/

.em-subjective-student-id {
	display: block;

	color: #64748b;

	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

/*
==================================================
STUDENT EVALUATION STATUS
==================================================
*/

.em-subjective-student-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 auto;

	min-height: 30px;
	padding: 5px 10px;

	background: #fff7df;
	color: #8a6200;

	border: 1px solid #f0dda2;
	border-radius: 999px;

	font-size: 11px;
	font-weight: 700;
	line-height: 1;

	white-space: nowrap;
}

/*
--------------------------------------------------
STUDENT STATUS - EVALUATED
--------------------------------------------------
*/

.em-subjective-student-status.em-status-evaluated {
	background: #ecfdf3;
	color: #147a42;

	border-color: #b9e8cb;
}


/*
--------------------------------------------------
STUDENT STATUS - IN PROGRESS
--------------------------------------------------
*/

.em-subjective-student-status.em-status-in_progress {
	background: #eff6ff;
	color: #1d5fa7;

	border-color: #bfdbfe;
}


/*
--------------------------------------------------
STUDENT STATUS - PENDING
--------------------------------------------------
*/

.em-subjective-student-status.em-status-pending {
	background: #fff7df;
	color: #8a6200;

	border-color: #f0dda2;
}


/*
==================================================
STUDENT SUBMISSION DETAILS
==================================================
*/

.em-subjective-student-details {
	display: grid;
	grid-template-columns: repeat(2, 1fr);

	gap: 10px;

	margin-bottom: 18px;
}

.em-subjective-student-detail {
	min-width: 0;

	padding: 11px 12px;

	background: #f8fafc;

	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.em-subjective-student-detail span {
	display: block;

	margin-bottom: 5px;

	color: #64748b;

	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.em-subjective-student-detail strong {
	display: block;

	color: #172033;

	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;

	overflow-wrap: anywhere;
}

/*
==================================================
STUDENT CARD ACTIONS
==================================================
*/

.em-subjective-student-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;

	margin-top: auto;
}


/*
==================================================
VIEW EVALUATION BUTTON
==================================================
*/

.em-view-subjective-evaluation {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;
	padding: 9px 16px;

	background: #0878ee;
	color: #ffffff;

	border: 1px solid #0878ee;
	border-radius: 8px;

	text-decoration: none;

	font-size: 13px;
	font-weight: 700;
	line-height: 1;

	box-shadow: 0 3px 8px rgba(8, 120, 238, 0.16);

	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.em-view-subjective-evaluation:hover {
	background: #066bd7;
	color: #ffffff;

	border-color: #066bd7;

	text-decoration: none;

	box-shadow: 0 4px 10px rgba(8, 120, 238, 0.22);

	transform: translateY(-1px);
}


/*
==================================================
TABLET
==================================================
*/

@media (max-width: 900px) {

	.em-subjective-evaluation {
		padding: 18px 18px 32px;
	}

	.em-subjective-evaluation-header {
		gap: 18px;
		padding: 18px;
	}

	.em-subjective-evaluation-header h2 {
		font-size: 21px;
	}

	.em-subjective-evaluation-list {
		grid-template-columns: repeat(
			auto-fit,
			minmax(280px, 1fr)
		);
	}


	/*
	----------------------------------------------
	SUBMITTED STUDENTS - TABLET
	----------------------------------------------
	*/

	.em-subjective-students-view {
		padding: 18px 18px 32px;
	}

	.em-subjective-students-header {
		gap: 18px;
		padding: 18px;
	}

	.em-subjective-students-header h2 {
		font-size: 21px;
	}

	.em-subjective-student-list {
		grid-template-columns: repeat(
			auto-fit,
			minmax(280px, 1fr)
		);
	}

}


/*
==================================================
MOBILE
==================================================
*/

@media (max-width: 640px) {

	.em-subjective-evaluation {
		padding: 12px 12px 28px;
	}

	.em-subjective-evaluation-header {
		flex-direction: column;
		align-items: stretch;

		gap: 16px;

		margin-bottom: 18px;
		padding: 16px;

		border-radius: 10px;
	}

	.em-subjective-evaluation-header h2 {
		font-size: 20px;
	}

	.em-subjective-evaluation-header p {
		font-size: 13px;
	}

	.em-subjective-evaluation-back {
		width: 100%;
	}

	.em-subjective-evaluation-back a {
		width: 100%;

		box-sizing: border-box;
	}
	
	.em-subjective-evaluation-list {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.em-subjective-exam-card {
		padding: 16px;
	}

	.em-subjective-exam-card-header {
		flex-direction: column;
		gap: 10px;
	}

	.em-subjective-exam-stats {
		gap: 7px;
	}

	.em-subjective-exam-stat {
		min-height: 66px;
		padding: 8px 5px;
	}

	.em-subjective-exam-stat strong {
		font-size: 18px;
	}

	.em-view-subjective-students {
		width: 100%;
		box-sizing: border-box;
	}
	
		/*
	----------------------------------------------
	SUBMITTED STUDENTS - MOBILE
	----------------------------------------------
	*/

	.em-subjective-students-view {
		padding: 12px 12px 28px;
	}

	.em-subjective-students-header {
		flex-direction: column;
		align-items: stretch;

		gap: 16px;

		margin-bottom: 18px;
		padding: 16px;

		border-radius: 10px;
	}

	.em-subjective-students-header h2 {
		font-size: 20px;
	}

	.em-subjective-students-header p {
		font-size: 13px;
	}

.em-subjective-students-back {
	width: 100%;
	box-sizing: border-box;
}

	.em-subjective-student-list {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.em-subjective-student-card {
		padding: 16px;
	}

	.em-subjective-student-card-header {
		flex-direction: column;
		gap: 10px;
	}

	.em-subjective-student-details {
		grid-template-columns: 1fr 1fr;
		gap: 7px;
	}

	.em-view-subjective-evaluation {
		width: 100%;
		box-sizing: border-box;
	}

}