/**
 * Jodhpur Student Results - Frontend Styles
 * Matches JNU result page design
 */

/* Reset within plugin scope */
.jsr-search-wrap,
.jsr-result-wrap {
	box-sizing: border-box;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #000;
	line-height: 1.4;
}

.jsr-search-wrap *,
.jsr-result-wrap * {
	box-sizing: border-box;
}

/* ===== SEARCH PAGE ===== */
.jsr-search-wrap {
	background: #f0f0f0;
	padding: 30px 15px;
}

.jsr-search-box {
	max-width: 700px;
	margin: 0 auto;
	background: #fff;
	border: 3px solid #C5A028;
	padding: 25px 30px;
}

.jsr-search-header {
	display: flex;
	align-items: center;
	gap: 15px;
	padding-bottom: 15px;
	border-bottom: 2px solid #C5A028;
	margin-bottom: 20px;
}

.jsr-search-logo {
	width: 70px;
	height: 70px;
	object-fit: contain;
}

.jsr-search-title .jsr-hi {
	font-size: 18px;
	color: #1a3a6b;
	font-weight: bold;
	margin: 0 0 2px;
	font-family: "Mangal", "Noto Sans Devanagari", serif;
}

.jsr-search-title .jsr-en {
	font-size: 16px;
	color: #1a3a6b;
	font-weight: bold;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
}

.jsr-search-title .jsr-city {
	font-size: 12px;
	color: #555;
	margin: 4px 0 0;
}

.jsr-search-heading {
	text-align: center;
	font-size: 15px;
	color: #333;
	margin: 0 0 20px;
	font-weight: normal;
}

.jsr-search-form .jsr-form-row {
	margin-bottom: 15px;
}

.jsr-search-form label {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
	font-size: 13px;
}

.jsr-search-form input[type="text"] {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ccc;
	font-size: 14px;
}

.jsr-btn-search {
	background: #C5A028;
	color: #000;
	border: none;
	padding: 10px 30px;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
	display: block;
	margin: 0 auto;
}

.jsr-btn-search:hover {
	background: #b08f20;
}

.jsr-alert {
	padding: 10px 15px;
	margin-bottom: 15px;
	text-align: center;
}

.jsr-alert-error {
	background: #ffe0e0;
	border: 1px solid #cc0000;
	color: #cc0000;
}

.jsr-error {
	color: #cc0000;
	text-align: center;
	padding: 20px;
}

/* ===== RESULT PAGE ===== */
.jsr-result-wrap {
	background: #f5f5f0;
	padding: 20px 15px;
}

.jsr-result-page {
	max-width: 820px;
	margin: 0 auto;
	background: #fff;
	border: 3px solid #C5A028;
	position: relative;
}

/* Gold bars */
.jsr-gold-bar {
	background: #C5A028;
	height: 8px;
	width: 100%;
}

/* Header */
.jsr-header {
	display: flex;
	align-items: center;
	padding: 12px 20px;
	gap: 15px;
	border-bottom: 1px solid #ddd;
	position: relative;
}

.jsr-logo img {
	width: 75px;
	height: 75px;
	object-fit: contain;
}

.jsr-university-name {
	flex: 1;
	text-align: center;
}

.jsr-name-hi {
	font-size: 20px;
	color: #1a3a6b;
	font-weight: bold;
	font-family: "Mangal", "Noto Sans Devanagari", serif;
	line-height: 1.3;
}

.jsr-name-en {
	font-size: 18px;
	color: #1a3a6b;
	font-weight: bold;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.3;
}

.jsr-city-name {
	font-size: 11px;
	color: #555;
	margin-top: 2px;
}

.jsr-student-photo {
	position: absolute;
	right: 20px;
	top: 12px;
}

.jsr-student-photo img {
	width: 70px;
	height: 85px;
	object-fit: cover;
	border: 1px solid #ccc;
}

/* Course line */
.jsr-course-line {
	padding: 8px 20px;
	border-bottom: 1px solid #ddd;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
}

.jsr-print-link {
	font-size: 12px;
	font-weight: normal;
	color: #0066cc;
	text-decoration: none;
	text-transform: none;
}

.jsr-print-link:hover {
	text-decoration: underline;
}

/* Sections */
.jsr-section {
	margin: 15px 20px;
	border: 1px solid #bbb;
	position: relative;
	padding-top: 12px;
}

.jsr-section-title {
	position: absolute;
	top: -9px;
	left: 15px;
	background: #fff;
	padding: 0 8px;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 0.5px;
}

/* Student details table */
.jsr-detail-table {
	width: 100%;
	border-collapse: collapse;
}

.jsr-detail-table td {
	padding: 6px 12px;
	border-bottom: 1px solid #ddd;
	font-size: 13px;
}

.jsr-detail-table tr:last-child td {
	border-bottom: none;
}

.jsr-detail-table .jsr-label {
	width: 40%;
	font-weight: bold;
}

.jsr-detail-table .jsr-value {
	text-transform: uppercase;
}

/* Marks table */
.jsr-marks-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.jsr-marks-table th {
	padding: 6px 8px;
	border-bottom: 2px solid #999;
	text-align: center;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 0.3px;
}

.jsr-marks-table td {
	padding: 5px 8px;
	border-bottom: 1px solid #ddd;
	text-align: center;
}

.jsr-marks-table .jsr-subject {
	text-align: left;
	font-weight: bold;
}

.jsr-marks-table .jsr-total-row td {
	border-top: 2px solid #999;
	border-bottom: none;
	font-weight: bold;
}

.jsr-no-marks {
	text-align: center;
	padding: 15px;
	color: #666;
}

/* Grand total */
.jsr-grand-total {
	padding: 10px 12px;
	font-size: 14px;
	font-weight: bold;
	color: #C5A028;
}

.jsr-grand-value {
	color: #000;
	font-size: 16px;
	margin-left: 5px;
}

/* Result box */
.jsr-result-box {
	margin: 10px 12px 15px;
	padding: 10px 15px;
	background: #FFF5CC;
	border: 1px solid #C5A028;
	font-size: 13px;
	text-transform: uppercase;
}

/* Contact note */
.jsr-contact-note {
	text-align: center;
	font-size: 11px;
	font-style: italic;
	color: #333;
	margin: 0 12px 15px;
	padding: 0;
}

/* Footer */
.jsr-footer {
	background: #C5A028;
	text-align: center;
	padding: 8px 15px;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: 0.5px;
	color: #000;
}

/* Print styles */
@media print {
	.jsr-search-wrap,
	.jsr-result-wrap {
		background: #fff;
		padding: 0;
	}

	.jsr-result-page {
		border: 2px solid #C5A028;
		max-width: 100%;
	}

	.jsr-print-link {
		display: none;
	}

	.jsr-gold-bar {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.jsr-footer,
	.jsr-result-box {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}

@media (max-width: 600px) {
	.jsr-header {
		flex-direction: column;
		text-align: center;
		padding-top: 15px;
	}

	.jsr-student-photo {
		position: static;
		margin-top: 10px;
	}

	.jsr-course-line {
		flex-direction: column;
		gap: 5px;
		text-align: center;
	}

	.jsr-marks-table {
		font-size: 10px;
	}

	.jsr-marks-table th,
	.jsr-marks-table td {
		padding: 4px 3px;
	}
}
