/* Streamlined learner UI — LMS Student role only */

html.lms-streamlined-student .lms-student-hide {
	display: none !important;
}

html.lms-streamlined-student a[href*="frappe.io/learning"] {
	display: none !important;
}

/* Hide left app sidebar + mobile bottom nav */
html.lms-streamlined-student .flex.h-screen.w-screen > div:first-child {
	display: none !important;
}

html.lms-streamlined-student .flex.h-screen.w-screen > .flex-1 {
	width: 100% !important;
	max-width: 100% !important;
	flex: 1 1 100% !important;
}

html.lms-streamlined-student .fixed.bottom-0.start-0.w-full.flex.items-center.justify-around {
	display: none !important;
}

html.lms-streamlined-student #scrollContainer {
	padding-bottom: 1rem !important;
}

html.lms-streamlined-student .lms-student-hide-purchase {
	display: none !important;
}

/* While redirecting home/courses → lesson, hide broken list UI */
html.lms-streamlined-student.lms-student-redirecting .flex.h-screen.w-screen > .flex-1 > * {
	visibility: hidden !important;
}

#lms-student-redirect-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
}

.lms-student-redirect-card {
	text-align: center;
	padding: 32px 40px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgb(15 23 42 / 0.08);
	border: 1px solid #e2e8f0;
}

.lms-student-redirect-card p {
	margin: 16px 0 0;
	font-size: 1rem;
	font-weight: 600;
	color: #10375c;
	font-family: system-ui, -apple-system, sans-serif;
}

.lms-student-redirect-spinner {
	width: 36px;
	height: 36px;
	margin: 0 auto;
	border: 3px solid #e2e8f0;
	border-top-color: #10375c;
	border-radius: 50%;
	animation: lms-student-spin 0.75s linear infinite;
}

@keyframes lms-student-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Hide Zen Mode button */
header button:has(svg.stroke-2),
header .gap-x-2 > :has(svg.stroke-2),
header button:has(svg path[d*="M5 3a2 2"]) {
	display: none !important;
}
