
#libmns-lms-page-loader {
	position: fixed;
	top: 40px;
	right: 20px;
	z-index: 100500;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s ease-out, visibility 0.35s ease-out, transform 0.35s ease-out;
	transform: translateY(-6px);
}

/* Appear instantly — no fade-in flicker during navigation */
body.libmns-lms-pl-screen:not(.libmns-lms-pl-ready) #libmns-lms-page-loader,
body.libmns-lms-pl-navigating #libmns-lms-page-loader {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: none;
}

.libmns-lms-page-loader-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(29, 32, 101, 0.1);
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.libmns-lms-page-loader-spinner {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border: 3px solid rgba(29, 32, 101, 0.12);
	border-top-color: #1d2065;
	border-radius: 50%;
	will-change: transform;
	transform: translateZ(0);
	backface-visibility: hidden;
	animation: libmns-lms-page-loader-spin 0.9s linear infinite;
}

@keyframes libmns-lms-page-loader-spin {
	from {
		transform: translateZ(0) rotate(0deg);
	}
	to {
		transform: translateZ(0) rotate(360deg);
	}
}

.libmns-lms-page-loader-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.libmns-lms-page-loader-title {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.3;
	white-space: nowrap;
}

.libmns-lms-page-loader-msg {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.35;
	color: #64748b;
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	#libmns-lms-page-loader {
		transition: none;
		transform: none;
	}

	.libmns-lms-page-loader-spinner {
		animation: none;
		border-top-color: #1d2065;
		opacity: 0.85;
	}
}
