/* ===== School Management Suite - Frontend Style ===== */

.smp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.smp-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
	text-align: center;
	transition: transform .15s ease, box-shadow .15s ease;
}
.smp-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.smp-photo {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}
.smp-photo-placeholder {
	width: 100%;
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2f2f2;
	color: #bbb;
	font-size: 60px;
}

.smp-card-body {
	padding: 14px 16px 18px;
}

.smp-name {
	margin: 8px 0 2px;
	font-size: 18px;
	font-weight: 700;
}

.smp-designation {
	margin: 0 0 10px;
	color: var(--smp-primary, #2271b1);
	font-weight: 600;
	font-size: 14px;
}

.smp-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
	font-size: 13.5px;
	line-height: 1.7;
	color: #444;
}
.smp-info-list li strong {
	color: #111;
}

.smp-mobile a,
.smp-info-list a {
	color: var(--smp-primary, #2271b1);
	text-decoration: none;
}
.smp-mobile a:hover,
.smp-info-list a:hover {
	text-decoration: underline;
}

.smp-empty {
	padding: 16px;
	background: #f8f8f8;
	border-radius: 6px;
	color: #666;
	text-align: center;
}

/* ===== ছাত্র ছাত্রীর ফিল্টার ফর্ম ===== */
.smp-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	padding: 14px;
	background: #f7f8fa;
	border-radius: 8px;
	border: 1px solid #e5e5e5;
}
.smp-filter-form input[type="text"],
.smp-filter-form select {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	min-width: 150px;
}
.smp-filter-btn {
	padding: 8px 20px;
	background: var(--smp-primary, #2271b1);
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
}
.smp-filter-btn:hover {
	background: var(--smp-primary-dark, #135e96);
}

/* ===== ছাত্র ছাত্রীর তালিকার টেবিল ===== */
.smp-table-wrap {
	overflow-x: auto;
}
.smp-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: 14px;
}
.smp-table th,
.smp-table td {
	border: 1px solid #e5e5e5;
	padding: 8px 10px;
	text-align: left;
	white-space: nowrap;
}
.smp-table thead th {
	background: #f2f4f6;
	font-weight: 700;
}
.smp-table tbody tr:nth-child(even) {
	background: #fafafa;
}
.smp-table .smp-photo,
.smp-table .smp-photo-placeholder {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	font-size: 20px;
}

.smp-pagination {
	margin: 16px 0;
	text-align: center;
}
.smp-pagination a {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 3px;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #333;
	text-decoration: none;
}
.smp-pagination a.smp-active {
	background: var(--smp-primary, #2271b1);
	color: #fff;
	border-color: var(--smp-primary, #2271b1);
}

/* ===== প্রিন্ট বাটন ===== */
.smp-print-btn {
	padding: 8px 18px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	margin-bottom: 14px;
}
.smp-print-btn:hover {
	background: #111;
}

/* ===== গোপনীয় তথ্য (লগইন ছাড়া দেখা যাবে না) ===== */
.smp-locked {
	display: inline-block;
	background: #fdf0e0;
	color: #8a5a00;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12.5px;
	white-space: nowrap;
}

/* ===== সম্পূর্ণ তালিকা লগইন-সুরক্ষিত হলে দেখানো বার্তা ===== */
.smp-login-wall {
	padding: 30px 20px;
	background: #f7f8fa;
	border: 1px dashed #ccc;
	border-radius: 10px;
	text-align: center;
	max-width: 460px;
	margin: 20px auto;
}
.smp-login-wall p {
	font-size: 16px;
	margin-bottom: 14px;
}
.smp-login-wall .smp-filter-btn {
	display: inline-block;
	text-decoration: none;
}

/* ===== প্রিন্ট করার সময় (Print / Save as PDF) ===== */
@media print {
	.smp-print-hide,
	.smp-filter-form,
	.smp-pagination {
		display: none !important;
	}
	.smp-card {
		box-shadow: none;
		border: 1px solid #ccc;
		break-inside: avoid;
	}
	.smp-table th {
		background: #eee !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
	body {
		background: #fff !important;
	}
}

/* ===== শিক্ষক কার্ডের রঙিন লেবেল (টাইটেলগুলো বোল্ড থাকবে) ===== */
.smp-info-list strong {
	font-weight: 700;
}
.smp-label-blue   { color: #1d6fa5; }
.smp-label-green  { color: #1e8a4c; }
.smp-label-purple { color: #7d3c98; }
.smp-label-teal   { color: #0f766e; }
.smp-label-red    { color: #b3261e; }

/* শিক্ষকের পদবীর নিচে "বিষয়" ব্যাজ */
.smp-subject-badge {
	display: inline-block;
	margin: 0 0 10px;
	padding: 2px 10px;
	background: #f3e8ff;
	color: #7d3c98;
	font-weight: 600;
	font-size: 12.5px;
	border-radius: 12px;
}

/* ===== শিক্ষকের ছবি সবসময় ৩০০x৩০০ পিক্সেল স্কয়ার আকারে দেখানো ===== */
.smp-teacher-grid .smp-photo,
.smp-teacher-grid .smp-photo-placeholder {
	width: 100%;
	max-width: 300px;
	height: 300px;
	margin: 0 auto;
	display: block;
	border-radius: 8px 8px 0 0;
}

/* ===== AJAX দিয়ে তালিকা লোড হওয়ার সময় সামান্য স্বচ্ছতা কমিয়ে ইঙ্গিত দেওয়া ===== */
.smp-student-results {
	transition: opacity .15s ease;
}
.smp-student-results.smp-loading {
	opacity: 0.4;
	pointer-events: none;
}
