/* NMT Teacher Portal & Video Slider — front-end styles */

/* ---------- Video Carousel Slider ---------- */
.nmt-video-slider {
	position: relative;
	overflow: hidden;
	width: 100%;
	margin: 30px 0;
}
.nmt-slider-track {
	display: flex;
	transition: transform 0.5s ease;
	will-change: transform;
}
.nmt-slide {
	flex: 0 0 auto;
	box-sizing: border-box;
	padding: 0 10px;
}
.nmt-slide-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
}
.nmt-slide-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.nmt-slide-video {
	width: 100%;
	border-radius: 10px;
	display: block;
	background: #000;
}
.nmt-slide-title {
	margin-top: 10px;
	font-weight: 600;
	text-align: center;
	color: #1b2a4a;
}
.nmt-slider-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	background: rgba(27, 42, 74, 0.85);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 5;
	font-size: 16px;
}
.nmt-slider-arrow.nmt-prev { left: 8px; }
.nmt-slider-arrow.nmt-next { right: 8px; }
.nmt-slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}
.nmt-slider-dots span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	display: inline-block;
}
.nmt-slider-dots span.active {
	background: #b8892b;
}

@media (max-width: 782px) {
	.nmt-slider-arrow { width: 32px; height: 32px; font-size: 13px; }
}

/* ---------- Teacher header account menu ---------- */
.nmt-teacher-trigger,
.nmt-account-toggle {
	background: #1b2a4a;
	color: #fff;
	border: none;
	padding: 8px 18px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}
.nmt-account-menu {
	position: relative;
	display: inline-block;
}
.nmt-account-dropdown {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.12);
	list-style: none;
	margin: 6px 0 0;
	padding: 6px 0;
	min-width: 160px;
	z-index: 50;
}
.nmt-account-menu.open .nmt-account-dropdown {
	display: block;
}
.nmt-account-dropdown li a {
	display: block;
	padding: 8px 16px;
	color: #1b2a4a;
	text-decoration: none;
}
.nmt-account-dropdown li a:hover {
	background: #f5eedd;
}

/* ---------- Login / Register Popup ---------- */
.nmt-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.55);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.nmt-popup {
	background: #fff;
	border-radius: 10px;
	padding: 30px;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}
.nmt-popup-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #555;
}
.nmt-popup h2 {
	margin-top: 0;
	color: #1b2a4a;
}
.nmt-popup form label {
	display: block;
	margin-bottom: 12px;
	font-size: 14px;
	color: #333;
}
.nmt-popup form input[type="text"],
.nmt-popup form input[type="email"],
.nmt-popup form input[type="password"] {
	width: 100%;
	padding: 9px 10px;
	margin-top: 4px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}
.nmt-submit-btn {
	width: 100%;
	background: #b8892b;
	color: #fff;
	border: none;
	padding: 10px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 15px;
	margin-top: 6px;
}
.nmt-switch-tab {
	text-align: center;
	margin-top: 14px;
	font-size: 14px;
}
.nmt-form-msg {
	font-size: 13px;
	margin-top: 8px;
}
.nmt-form-msg.error { color: #b32d2e; }
.nmt-form-msg.success { color: #1a7f37; }

/* ---------- E-Book grid ---------- */
.nmt-ebook-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 22px;
	margin: 20px 0;
}
.nmt-ebook-card {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 16px;
	text-align: center;
	background: #fff;
}
.nmt-ebook-card img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 10px;
}
.nmt-ebook-card h3 {
	margin: 6px 0;
	color: #1b2a4a;
	font-size: 16px;
}
.nmt-ebook-open {
	display: inline-block;
	margin-top: 10px;
	background: #1b2a4a;
	color: #fff;
	border: none;
	padding: 8px 18px;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	font-size: 14px;
}

/* ---------- Teacher Dashboard page ---------- */
.nmt-teacher-dashboard {
	max-width: 500px;
	margin: 30px auto;
	text-align: center;
}
.nmt-dashboard-links {
	list-style: none;
	padding: 0;
}
.nmt-dashboard-links li a {
	display: block;
	padding: 10px;
	background: #f5eedd;
	margin-bottom: 8px;
	border-radius: 4px;
	color: #1b2a4a;
	text-decoration: none;
}

/* ---------- Admin panel ---------- */
.nmt-admin-wrap .nmt-stat-cards {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin: 20px 0;
}
.nmt-admin-wrap .nmt-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-left: 4px solid #b8892b;
	border-radius: 6px;
	padding: 16px 22px;
	min-width: 160px;
}
.nmt-admin-wrap .nmt-num {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: #1b2a4a;
}
.nmt-admin-wrap .nmt-label {
	color: #666;
	font-size: 13px;
}
.nmt-admin-wrap .nmt-quick-links {
	list-style: disc;
	margin-left: 20px;
}
.nmt-status {
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}
.nmt-status-active { background: #e6f4ea; color: #1a7f37; }
.nmt-status-inactive { background: #fbe7e7; color: #b32d2e; }
.nmt-support-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-left: 4px solid #1b2a4a;
	border-radius: 6px;
	padding: 20px;
	max-width: 420px;
}
