/* ==========================================================================
   VidhaiX Technology — LMS-specific adjustments
   Colours, buttons and surfaces come from vidhaix-app-theme.css (frappe-ui tokens,
   shared with the CRM). This file only holds what is specific to the LMS.
   www/_lms.html pins data-theme="light" for every visitor.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* Page and course titles in the brand display face */
#app :is(h1, h2, h3),
.font-heading {
	font-family: 'Plus Jakarta Sans', InterVar, Inter, ui-sans-serif, system-ui, sans-serif;
	letter-spacing: -0.015em;
}

/* Active sidebar link in the brand blue (LMS sidebar links are router links) */
#app nav a.router-link-active,
#app nav a.router-link-active svg {
	color: var(--surface-blue-7);
}

/* Course and batch cards: a soft border and shadow, no movement on hover */
.bg-surface-elevation-1 {
	border-radius: 14px;
}
a > .bg-surface-elevation-1,
.cursor-pointer.bg-surface-elevation-1 {
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a > .bg-surface-elevation-1:hover,
.cursor-pointer.bg-surface-elevation-1:hover {
	box-shadow: 0 10px 28px -14px rgba(15, 23, 42, 0.28);
}

/* ==========================================================================
   Hide internal statistics and generic Frappe branding
   ========================================================================== */
a[href="/lms/statistics"],
a[href="/statistics"],
nav a:has(.lucide-trending-up),
nav button:has(.lucide-trending-up) {
	display: none !important;
}

/* Administrator avatar cluster on course cards */
.avatar-group {
	display: none !important;
}

/* "Powered by Frappe" and Frappe Cloud entries */
span[title*="Powered by Frappe"],
div:has(> [title*="Powered by Frappe"]),
[role="menuitem"]:has(svg.lucide-cloud),
a[href*="frappecloud.com"] {
	display: none !important;
}

/* ==========================================================================
   Lesson reading experience
   ========================================================================== */
.lesson-content {
	font-size: 1.05rem;
	line-height: 1.8;
}
.lesson-content pre {
	font-family: 'JetBrains Mono', ui-monospace, monospace !important;
	border-radius: 12px !important;
	background-color: #0b1220 !important;
	color: #f1f5f9 !important;
}

/* ==========================================================================
   PWA install prompt: show VidhaiX instead of the default app name
   ========================================================================== */
div:has(> .lucide-download) h2 {
	visibility: hidden;
	position: relative;
}
div:has(> .lucide-download) h2::after {
	content: "Install VidhaiX Learning";
	visibility: visible;
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
	font-size: 1.125rem;
}
