@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/* Main Body Override */
.notes-player-body {
	font-family: 'Outfit', sans-serif !important;
	background-color: #FAFBFD !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Hide Default Masterstudy Header & Sidebar */
.masterstudy-course-player-header {
	display: none !important;
}

.masterstudy-course-player-curriculum:not(.notes-custom-player-sidebar) {
	display: none !important;
}

/* Custom Premium Top Bar Header */
.notes-custom-player-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
	background-color: #FFFFFF;
	border-bottom: 1px solid #E2E8F0;
	padding: 0 32px;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	font-family: 'Outfit', sans-serif;
}

.notes-player-header-left {
	display: flex;
	align-items: center;
	gap: 24px;
}

.notes-player-logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: #0F172A;
	text-decoration: none !important;
}

.notes-player-logo span {
	color: #5A32E8;
}

.notes-player-course-selector {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background-color: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	cursor: pointer;
}

.notes-player-course-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #334155;
	text-decoration: none !important;
}

.notes-selector-chevron {
	width: 16px;
	height: 16px;
	stroke: #64748B;
}

.notes-player-header-center {
	flex: 0 1 420px;
	position: relative;
}

.notes-player-search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	background-color: #F8FAFC;
	border: 1.5px solid #E2E8F0;
	border-radius: 12px;
	padding: 8px 14px;
	position: relative;
	transition: all 0.2s ease;
}

.notes-player-search-box:focus-within {
	background-color: #FFFFFF;
	border-color: #5A32E8;
	box-shadow: 0 0 0 3px rgba(90, 50, 232, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.notes-player-search-box .notes-search-icon {
	width: 18px;
	height: 18px;
	stroke: #94A3B8;
	flex-shrink: 0;
	transition: stroke 0.2s ease;
}

.notes-player-search-box:focus-within .notes-search-icon {
	stroke: #5A32E8;
}

.notes-player-search-box input {
	border: none;
	background: transparent;
	font-family: 'Outfit', sans-serif;
	font-size: 0.9rem;
	width: 100%;
	color: #0F172A;
	outline: none;
}

.notes-player-search-box input::placeholder {
	color: #94A3B8;
}

.notes-search-shortcut {
	font-size: 0.75rem;
	font-weight: 600;
	color: #94A3B8;
	background-color: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 6px;
	padding: 2px 6px;
	white-space: nowrap;
	flex-shrink: 0;
	user-select: none;
}

.notes-search-tools {
	display: flex;
	align-items: center;
	gap: 3px;
	flex-shrink: 0;
}

.notes-search-count {
	font-size: 0.75rem;
	font-weight: 600;
	color: #475569;
	background-color: #EEF2F6;
	border-radius: 6px;
	padding: 2px 8px;
	white-space: nowrap;
	user-select: none;
	transition: all 0.2s ease;
}

.notes-search-count.has-matches {
	background-color: #FEF3C7;
	color: #92400E;
}

.notes-search-count.no-matches {
	background-color: #FEE2E2;
	color: #DC2626;
}

.notes-search-nav-btn,
.notes-search-clear-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: none;
	background: transparent;
	border-radius: 5px;
	cursor: pointer;
	color: #64748B;
	padding: 0;
	transition: all 0.15s ease;
}

.notes-search-nav-btn svg,
.notes-search-clear-btn svg {
	width: 14px;
	height: 14px;
}

.notes-search-nav-btn:hover {
	background-color: #E2E8F0;
	color: #0F172A;
}

.notes-search-clear-btn:hover {
	background-color: #FEE2E2;
	color: #DC2626;
}

/* In-Page Text Highlight Styles */
mark.notes-search-highlight {
	background-color: #FEF08A !important;
	color: #1E293B !important;
	padding: 2px 4px !important;
	margin: 0 1px !important;
	border-radius: 4px !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(245, 158, 11, 0.4) !important;
	display: inline !important;
	transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

mark.notes-search-highlight.active {
	background-color: #F59E0B !important;
	color: #FFFFFF !important;
	font-weight: 600 !important;
	box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #D97706, 0 3px 8px rgba(217, 119, 6, 0.35) !important;
	border-radius: 4px !important;
	animation: notesHighlightPulse 0.4s ease-out !important;
}

@keyframes notesHighlightPulse {
	0% {
		transform: scale(1.12);
	}
	100% {
		transform: scale(1);
	}
}

.notes-player-header-right {
	display: flex;
	align-items: center;
	gap: 24px;
}

.notes-header-nav-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #475569;
	text-decoration: none !important;
	font-size: 0.9rem;
	font-weight: 500;
	transition: color 0.2s ease;
}

.notes-header-nav-item:hover {
	color: #5A32E8;
}

.notes-header-nav-item svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
}

.notes-player-user-menu {
	display: flex;
	align-items: center;
	cursor: pointer;
}

.notes-player-user-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid #E2E8F0;
	object-fit: cover;
}

.notes-player-user-initials {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: #5A32E8;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.85rem;
}

/* Custom Sidebar (Left curriculum menu) */
.notes-custom-player-sidebar {
	position: fixed !important;
	top: 70px;
	left: 0 !important;
	bottom: 0 !important;
	width: 320px !important;
	background-color: #FFFFFF !important;
	border-right: 1px solid #E2E8F0 !important;
	padding: 24px 20px 80px 20px !important;
	overflow-y: auto !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 24px !important;
	z-index: 999 !important;
	font-family: 'Outfit', sans-serif !important;
}

/* Progress card on sidebar */
.notes-sidebar-header-card {
	background: #EEF8F4;
	border-radius: 16px;
	padding: 16px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.notes-sidebar-tile-icon {
	background: #059669;
	color: #FFFFFF;
	border-radius: 8px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.notes-sidebar-tile-icon svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
}

.notes-sidebar-header-info {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.notes-sidebar-header-info h4 {
	font-size: 0.85rem !important;
	font-weight: 700;
	color: #0F172A;
	margin: 0 0 4px 0;
	line-height: 1.3;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.notes-sidebar-header-info p {
	font-size: 0.75rem;
	font-weight: 500;
	color: #64748B;
	margin: 0;
}

.notes-sidebar-progress-text {
	font-size: 0.85rem;
	font-weight: 700;
	color: #059669;
	margin-top: 8px;
}

.notes-sidebar-progress-track {
	height: 6px;
	background-color: #D1FAE5;
	border-radius: 3px;
	margin-top: 6px;
	overflow: hidden;
}

.notes-sidebar-progress-fill {
	height: 100%;
	background-color: #059669;
	border-radius: 3px;
}

/* Sidebar Menu Title */
.notes-sidebar-menu-title {
	font-size: 0.8rem;
	text-transform: uppercase;
	font-weight: 700;
	color: #94A3B8;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #F1F5F9;
}

.notes-sidebar-menu-title svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
}

/* Sidebar Curriculum Accordion Wrapper */
.notes-sidebar-curriculum-list {
	flex: 1;
}

.notes-custom-accordion {
	background: transparent !important;
	padding: 0 !important;
}

.notes-custom-accordion-section {
	border: none !important;
	margin-bottom: 16px !important;
}

.notes-custom-accordion-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	cursor: pointer !important;
	padding: 12px 16px !important;
	background-color: #F1F5F9 !important;
	transition: background-color 0.2s ease !important;
	border-radius: 8px !important;
}

.notes-custom-accordion-header:hover {
	background-color: #E2E8F0 !important;
}

.notes-accordion-title-block {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.notes-unit-title {
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	color: #0F172A !important;
	margin: 0 !important;
}

.notes-unit-meta {
	font-size: 0.75rem !important;
	color: #64748B !important;
	font-weight: 500 !important;
}

.notes-accordion-toggler svg {
	width: 16px;
	height: 16px;
	stroke: #64748B;
	transition: transform 0.2s ease;
}

.masterstudy-curriculum-accordion__wrapper_opened .notes-accordion-toggler svg {
	transform: rotate(180deg);
}
.notes-custom-accordion-list {
	flex-direction: column;
	gap: 6px;
	padding: 6px 0 0 12px !important;
	margin: 0 !important;
	list-style: none !important;
}

.notes-custom-accordion-item {
	border-radius: 8px !important;
	transition: background-color 0.2s ease !important;
}

.notes-custom-accordion-item:hover {
	background-color: #F8FAFC !important;
}

.notes-active-item {
	background-color: #F0FDF4 !important;
}

.notes-custom-accordion-link {
	display: flex !important;
	align-items: center !important;
	padding: 10px 12px !important;
	text-decoration: none !important;
}

.notes-accordion-item-title-pane {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
}

.notes-accordion-item-number {
	color: #475569 !important;
	font-weight: 600 !important;
	font-size: 0.85rem;
	flex-shrink: 0;
	margin-top: 1px;
}

.notes-active-item .notes-accordion-item-number {
	color: #16A34A !important;
}

.notes-accordion-item-title {
	color: #334155 !important;
	font-weight: 500 !important;
	font-size: 0.85rem;
	line-height: 1.4 !important;
	word-break: break-word;
}

.notes-active-item .notes-accordion-item-title {
	color: #15803D !important;
	font-weight: 600 !important;
}

.notes-accordion-item-status-pane {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	margin-top: 2px;
}

.notes-accordion-status-circle {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.notes-uncompleted-circle {
	border: 2px solid #CBD5E1;
}

.notes-completed-status {
	background-color: #22C55E !important;
	border: 1px solid #22C55E !important;
	color: #FFFFFF !important;
}

.notes-completed-status svg {
	width: 10px;
	height: 10px;
	stroke: currentColor;
}

.notes-active-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #22C55E !important;
	display: inline-block;
	border: 3px solid #DCFCE7 !important;
	box-shadow: 0 0 0 1px #22C55E;
	flex-shrink: 0;
}

.notes-sidebar-footer-promo {
	background-color: #F8FAFC;
	border: 1px dashed #CBD5E1;
	border-radius: 16px;
	padding: 16px;
	text-align: center;
	margin-top: auto;
	margin-bottom: 40px !important;
}

.notes-promo-icon-wrapper {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: #EEF2F6;
	color: #5A32E8;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 10px auto;
}

.notes-promo-icon-wrapper svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
}

.notes-sidebar-footer-promo h4 {
	font-size: 0.85rem;
	font-weight: 700;
	color: #0F172A;
	margin: 0 0 4px 0;
}

.notes-sidebar-footer-promo p {
	font-size: 0.75rem;
	color: #64748B;
	margin: 0 0 12px 0;
}

.notes-btn-find-tutor {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid #CBD5E1;
	background-color: #FFFFFF;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #334155;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.notes-btn-find-tutor:hover {
	border-color: #5A32E8;
	color: #5A32E8;
	background-color: #F5F3FF;
}

.notes-btn-find-tutor svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
}

/* Custom Content Wrapper Layout */
.notes-player-custom-layout {
	margin-top: 70px !important;
	padding: 0 !important;
	display: flex !important;
	min-height: calc(100vh - 70px) !important;
	font-family: 'Outfit', sans-serif !important;
}

.notes-player-custom-layout .masterstudy-course-player-content__wrapper {
	margin-left: 320px !important;
	padding: 48px 64px 120px 64px !important;
	flex: 1 !important;
	background-color: #FFFFFF !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 24px !important;
	max-width: calc(100% - 320px) !important;
}

/* Navigation breadcrumbs */
.notes-player-section-path {
	font-size: 0.8rem;
	color: #94A3B8;
	font-weight: 600;
	margin-bottom: 8px;
	display: block;
}

.notes-type-badge {
	display: inline-block !important;
	background-color: #F1F2FF !important;
	color: #5A32E8 !important;
	padding: 4px 10px !important;
	border-radius: 6px !important;
	font-weight: 700 !important;
	font-size: 0.7rem !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	border: none !important;
	margin-bottom: 8px !important;
}

.notes-player-custom-layout h1 {
	font-size: 2.25rem !important;
	font-weight: 700 !important;
	color: #0F172A !important;
	line-height: 1.2 !important;
	margin: 0 0 12px 0 !important;
}

/* Content Body Styles - Clean fonts & elements */
.notes-lesson-content-body {
	font-size: 1.05rem;
	line-height: 1.65;
	color: #334155;
}

.notes-lesson-content-body p {
	margin-bottom: 20px;
}

/* Math cards & notes (worked example card design) */
.notes-lesson-content-body blockquote,
.notes-lesson-content-body .wp-block-quote {
	border-left: 4px solid #5A32E8;
	padding: 12px 20px;
	background-color: #F5F3FF;
	border-radius: 0 12px 12px 0;
	margin: 20px 0;
}

/* Custom premium worked examples/key points card styles (matches mockup) */
.notes-lesson-content-body h2, 
.notes-lesson-content-body h3 {
	font-weight: 700;
	color: #0f172a;
	margin-top: 32px;
	margin-bottom: 12px;
}

.notes-player-custom-layout .masterstudy-course-player-navigation {
	position: fixed !important;
	bottom: 0 !important;
	left: 320px !important;
	right: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
	border-top: 1px solid #E2E8F0 !important;
	background-color: #FFFFFF !important;
	background: #FFFFFF !important;
	padding: 20px 64px !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-top: auto !important;
	z-index: 99 !important;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
}

.notes-player-custom-layout .masterstudy-course-player-navigation__wrapper {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 0 !important;
	max-width: 100% !important;
}

body.notes-player-body .masterstudy-course-player-navigation__prev,
body.notes-player-body .masterstudy-course-player-navigation__next,
.notes-player-custom-layout .masterstudy-course-player-navigation__prev,
.notes-player-custom-layout .masterstudy-course-player-navigation__next {
	position: static !important;
	display: flex !important;
	align-items: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	flex-shrink: 0 !important;
	overflow: visible !important;
}

body.notes-player-body .masterstudy-course-player-navigation a.masterstudy-nav-button,
body.notes-player-body .masterstudy-course-player-navigation .masterstudy-nav-button,
.notes-player-custom-layout .masterstudy-course-player-navigation a.masterstudy-nav-button,
.notes-player-custom-layout .masterstudy-course-player-navigation .masterstudy-nav-button {
	position: static !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	height: auto !important;
	border-radius: 10px !important;
	font-family: 'Outfit', sans-serif !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	padding: 12px 20px !important;
	text-decoration: none !important;
}

.notes-player-custom-layout .masterstudy-course-player-navigation a.masterstudy-nav-button_prev,
.notes-player-custom-layout .masterstudy-course-player-navigation .masterstudy-nav-button_prev {
	border: 1px solid #E2E8F0 !important;
	color: #475569 !important;
	background: #FFFFFF !important;
	background-color: #FFFFFF !important;
	overflow: visible !important;
	min-width: 100px !important;
	white-space: nowrap !important;
	width: auto !important;
	max-width: none !important;
}

.notes-player-custom-layout .masterstudy-course-player-navigation a.masterstudy-nav-button_next,
.notes-player-custom-layout .masterstudy-course-player-navigation .masterstudy-nav-button_next,
body.notes-player-body .masterstudy-course-player-navigation a.masterstudy-nav-button_next,
body.notes-player-body .masterstudy-course-player-navigation .masterstudy-nav-button_next {
	background: #5A32E8 !important;
	background-color: #5A32E8 !important;
	color: #FFFFFF !important;
	border: none !important;
	overflow: visible !important;
	min-width: 140px !important;
	white-space: nowrap !important;
	width: auto !important;
	max-width: none !important;
	clip: auto !important;
	clip-path: none !important;
}

.notes-player-custom-layout .masterstudy-course-player-navigation .masterstudy-nav-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Mobile hamburger toggle button */
.notes-mobile-menu-trigger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: #0F172A;
	padding: 8px;
	border-radius: 8px;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.notes-mobile-menu-trigger:hover {
	background-color: #F1F5F9;
}

.notes-mobile-menu-trigger svg {
	width: 22px;
	height: 22px;
	stroke: currentColor;
}

/* Sidebar Backdrop overlay */
.notes-sidebar-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(15, 23, 42, 0.4);
	backdrop-filter: blur(2px);
	z-index: 998;
	display: none;
}

/* Responsive adjustments for course player */
@media (max-width: 991px) {
	.notes-mobile-menu-trigger {
		display: flex;
	}

	.notes-custom-player-sidebar {
		transform: translateX(-100%) !important;
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05) !important;
		max-width: 290px !important;
	}

	.notes-custom-player-sidebar.active {
		transform: translateX(0) !important;
	}

	.notes-player-custom-layout .masterstudy-course-player-content__wrapper {
		margin-left: 0 !important;
		max-width: 100% !important;
		padding: 30px 16px 100px 16px !important;
	}

	.notes-player-custom-layout .masterstudy-course-player-navigation {
		position: fixed !important;
		bottom: 0 !important;
		left: 0 !important;
		right: 0 !important;
		height: auto !important;
		min-height: 0 !important;
		overflow: visible !important;
		padding: 16px 16px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-bottom: 0 !important;
		box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
	}

	.notes-player-header-center {
		display: none;
	}
}

@media (max-width: 600px) {
	.notes-custom-player-header {
		padding: 0 16px;
	}

	.notes-player-header-left {
		gap: 8px;
	}

	.notes-player-course-selector {
		max-width: 130px;
		padding: 6px 10px;
	}

	.notes-player-course-title {
		max-width: 85px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.notes-header-nav-item span {
		display: none;
	}

	.notes-header-nav-item {
		gap: 0;
		padding: 8px;
		background-color: #F8FAFC;
		border-radius: 8px;
		border: 1px solid #E2E8F0;
	}

	.notes-player-header-right {
		gap: 10px;
	}
}



/* Hide Astra scroll to top button inside custom player */
.notes-player-body .ast-scroll-to-top,
.notes-player-body #ast-scroll-top,
body:has(.notes-player-custom-layout) .ast-scroll-to-top,
body:has(.notes-player-custom-layout) #ast-scroll-top {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
