/**
 * LMS Structure CSS
 * Basic layout and hierarchy for readability
 */

html {
	--ink: #333;
	--ink-light: #666;

	--n100: rgb(0 0 0 / 0.1);
	--n200: rgb(0 0 0 / 0.2);
	--n300: rgb(0 0 0 / 0.3);
	--n400: rgb(0 0 0 / 0.4);
	--n500: rgb(0 0 0 / 0.5);
	--n600: rgb(0 0 0 / 0.6);
	--n700: rgb(0 0 0 / 0.7);
	--n800: rgb(0 0 0 / 0.8);
	--n900: rgb(0 0 0 / 0.9);

	--pe-blue-100: hsl(200 100% 90%);
	--pe-blue-200: hsl(200 100% 80%);
	--pe-blue-300: hsl(200 100% 70%);
	--pe-blue-400: hsl(200 100% 60%);
	--pe-blue-500: hsl(200 100% 50%);
	--pe-blue-600: hsl(200 100% 40%);
	--pe-blue-700: hsl(200 100% 30%);
	--pe-blue-800: hsl(200 100% 20%);
	--pe-blue-900: hsl(200 100% 10%);
}

html {
	--display-font: "Neue Montreal", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif;
	--body-font: "Georgia", serif;
	--mono-font: "monospace";
}

iframe {
	background-color: var(--ink);
}

/*
	VARIABLE           ^
	weight 0-900
	italic 0-900
	font-variation-settings: "wght" var(--wght), "ital" var(--ital);
*/

.micro-voice {
	font-size: 0.73rem;
	line-height: 1.3;
}

.calm-voice, p {
	font-family: var(--body-font);
	line-height: 1.5;
	max-width: 85ch;
	strong {
		font-weight: 700;
	}
}

.attention-voice {
	font-size: 1.3rem;
	font-variation-settings: "wght" 680;
}

p + p {
	margin-top: 1em;
}








/* Dashboard */
.student-dashboard {
	max-width: 1200px;
	margin: 0 auto;
}

.enrolled-programs,
.payment-history {
	border: 2px solid black;
	padding: 20px;
	margin-bottom: 40px;
}

.program-list {
	display: grid;
	gap: 20px;
	margin-top: 20px;
}

.program-card {
	border: 1px solid black;
	padding: 20px;
}

.program-card.enrolled {
	border-width: 2px;
}

/* Progress Bars */
.progress-bar {
	border: 1px solid black;
	height: 30px;
	position: relative;
	margin: 20px 0;
}

.progress-fill {
	background: black;
	height: 100%;
}

.progress-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-weight: bold;
	color: white;
	mix-blend-mode: difference;
}

.program-progress {
	border: 2px solid black;
	padding: 20px;
	margin: 20px 0;
}

/* Payment History */
.payment-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.payment-table th,
.payment-table td {
	border: 1px solid black;
	padding: 10px;
	text-align: left;
}

.payment-table th {
	background: black;
	color: white;
}

/* Program Detail - Dashboard Layout */
.program-dashboard-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin: 40px 0;
}

.current-module-panel {
	border: 2px solid black;
	padding: 30px;
}

.current-module-panel h2 {
	margin-top: 0;
}

.module-status {
	font-weight: bold;
	margin-bottom: 20px;
}

.module-status.complete {
	color: black;
}

.program-overview-panel {
	border: 2px solid black;
	padding: 30px;
}

.program-overview-panel h2 {
	margin-top: 0;
}

.module-overview-list {
	list-style: none;
	padding: 0;
	margin-top: 20px;
}

.module-overview-item {
	padding: 10px;
	margin-bottom: 5px;
	border-left: 3px solid transparent;
}

.module-overview-item .module-switch-btn {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	text-align: left;
	width: 100%;
	color: black;
}

.module-overview-item .module-switch-btn:hover {
	text-decoration: underline;
}

.module-overview-item .module-name {
	display: block;
	color: #666;
}

.module-overview-item.current {
	background: #e8f5e9;
	border-left-color: black;
	font-weight: bold;
}

.module-overview-item.complete {
	opacity: 0.6;
}

.module-overview-item.locked {
	opacity: 0.4;
	cursor: not-allowed;
}

.module-status.locked {
	color: #666;
	font-weight: bold;
}

/* Old module card styles (for non-enrolled view if needed) */
.enrollment-status {
	border: 2px solid black;
	padding: 10px 20px;
	display: inline-block;
	font-weight: bold;
	margin: 20px 0;
}

.module-list {
	display: grid;
	gap: 20px;
	margin-top: 20px;
}

.module-card {
	border: 1px solid black;
	padding: 20px;
	position: relative;
}

.module-card.complete {
	border-width: 2px;
}

.module-card.locked {
	opacity: 0.6;
	background: #f5f5f5;
}

.module-card.locked h3 {
	color: #666;
}

.module-lock {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 24px;
}

.completion-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: black;
	color: white;
	padding: 5px 10px;
	font-size: 14px;
}

/* Module Detail */
.module-detail {
	max-width: 1200px;
	margin: 0 auto;
}

.module-completion {
	border: 2px solid black;
	padding: 20px;
	margin: 20px 0;
}

.module-workshops {
	border: 2px solid black;
	padding: 20px;
	margin: 40px 0;
}

.workshop-list {
	list-style: none;
	padding: 0;
	margin-top: 20px;
}

.workshop-item {
	border: 1px solid black;
	padding: 20px;
	margin-bottom: 10px;
	position: relative;
}

.workshop-item.status-locked {
	opacity: 0.5;
	background: #f5f5f5;
}

.workshop-item.status-completed,
.workshop-item.status-approved {
	border-width: 2px;
}

.workshop-item.status-awaiting_approval {
	border: 2px dashed black;
}

.workshop-lock {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 24px;
}

.checkpoint-badge {
	background: black;
	color: white;
	padding: 5px 10px;
	font-size: 12px;
	display: inline-block;
	margin-bottom: 10px;
}

.status-badge {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid black;
	margin-top: 10px;
}

.status-badge.complete,
.status-badge.approved {
	background: black;
	color: white;
}

.status-badge.awaiting {
	border: 2px dashed black;
	font-weight: bold;
}

.status-badge.locked {
	opacity: 0.5;
}

/* Enrollment Flow */
.program-enroll {
	max-width: 800px;
	margin: 0 auto;
}

.enrollment-commitment,
.enrollment-signup,
.enrollment-login {
	border: 2px solid black;
	padding: 40px;
	margin: 20px 0;
}

.enrollment-commitment ul {
	border: 1px solid black;
	padding: 20px 40px;
	margin: 20px 0;
}

/* Buttons */
.button {
	border: 2px solid black;
	padding: 10px 20px;
	background: white;
	cursor: pointer;
	display: inline-block;
	text-decoration: none;
	color: black;
}

.button:hover {
	background: black;
	color: white;
}

.button.secondary {
	border: 1px solid black;
}

.button.small {
	padding: 5px 10px;
	font-size: 14px;
}

/* Forms */
.field {
	border: 1px solid black;
	padding: 10px;
	margin-bottom: 10px;
}

.field .label {
	font-weight: bold;
	margin-bottom: 5px;
}

.field input {
	width: 100%;
	border: 1px solid black;
	padding: 8px;
}

/* Pending Approvals */
.approvals-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.approvals-table th,
.approvals-table td {
	border: 1px solid black;
	padding: 10px;
	text-align: left;
}

.approvals-table th {
	background: black;
	color: white;
}

/* Receipt */
.receipt-display,
.enrollment-receipt {
	border: 2px solid black;
	padding: 40px;
	margin: 40px 0;
}

.receipt-details p {
	margin: 10px 0;
	padding: 5px 0;
	border-bottom: 1px solid black;
}

/* Type Hierarchy */
h1 {
	font-size: 32px;
	margin: 20px 0;
}

h2 {
	font-size: 24px;
	margin: 20px 0;
}

h3 {
	font-size: 20px;
	margin: 15px 0;
}

/* Checkout Success */
.checkout-success {
	border: 2px solid black;
	padding: 40px;
	text-align: center;
	max-width: 600px;
	margin: 40px auto;
}

.success-actions {
	margin-top: 30px;
}

.success-actions .button {
	margin: 0 10px;
}

/* Interactive Progress Bar */
.program-progress-bar-wrapper {
	margin: 40px 0;
	border: 2px solid black;
	padding: 20px;
}

.program-progress-bar {
	display: flex;
	height: 60px;
	border: 2px solid black;
	overflow: hidden;
}

.progress-module {
	display: flex;
	flex: 1; /* should be based on the amount of workshops in the module */
}

.progress-segment {
	height: 100%;
	border-right: 1px solid rgba(0, 0, 0, 0.2);
	position: relative;
	transition: opacity 0.2s, transform 0.1s;
	cursor: default;
	flex: 1;
}

.progress-segment:last-child {
	border-right: none;
}

.progress-segment a.progress-segment,
a.progress-segment {
	display: block;
	height: 100%;
	text-decoration: none;
	cursor: pointer;
}

a.progress-segment:hover {
	opacity: 1 !important;
	transform: scaleY(1.05);
}

.progress-segment .current-marker {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 12px solid red;
	z-index: 10;
}

.progress-segment.locked {
	opacity: 0.3;
	cursor: not-allowed;
}

.progress-segment.awaiting {
	opacity: 0.6;
	background-image: repeating-linear-gradient(
		45deg,
		transparent,
		transparent 10px,
		rgba(0, 0, 0, 0.1) 10px,
		rgba(0, 0, 0, 0.1) 20px
	);
}

.progress-legend {
	margin-top: 15px;
	text-align: center;
}

.progress-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.progress-stats .progress-text {
	position: static;
	transform: none;
	color: inherit;
	mix-blend-mode: normal;
	font-weight: bold;
}

.progress-divider {
	color: #666;
	padding: 0 5px;
}

.progress-date,
.progress-elapsed {
	color: #666;
	font-size: 14px;
}

/* Module Progress Bar */
.module-progress-bar-wrapper {
	margin: 40px 0;
	border: 2px solid black;
	padding: 20px;
	background: #f5f5f5;
}

.module-progress-bar {
	display: flex;
	height: 50px;
	border: 2px solid black;
	overflow: hidden;
	background: white;
}

/* Dashboard View */
.current-workshop-cta {
	margin: 40px 0;
	padding: 30px;
	border: 3px solid black;
	background: white;
}

.current-workshop-cta h2 {
	margin-top: 0;
}

.current-workshop-cta h3 {
	margin: 10px 0;
}

.current-workshop-cta .button {
	margin-top: 20px;
}

.module-timeline-section,
.program-timeline-section {
	margin: 40px 0;
}

.module-timeline-section h3,
.program-timeline-section h3 {
	margin-bottom: 20px;
	font-size: 1.2rem;
}

.program-modules-details {
	margin-top: 60px;
	border-top: 2px solid black;
	padding-top: 40px;
}

.program-modules-details summary {
	cursor: pointer;
	list-style: none;
}

.program-modules-details summary::-webkit-details-marker {
	display: none;
}

.program-modules-details summary h2:hover {
	text-decoration: underline;
}

/* Programs List */
.program-meta {
	margin: 10px 0;
}

.access-type {
	padding: 5px 10px;
	border: 1px solid black;
	display: inline-block;
	font-size: 14px;
}

.access-type.free {
	background: white;
}

.program-teaser {
	margin: 10px 0;
	padding: 10px 0;
}

/* Workshop Completion Banner */
.workshop-status-banner {
	border-top: 2px solid black;
	border-bottom: 2px solid black;
	padding: 20px 0;
}

.completion-banner {
	padding: 15px 20px;
	border: 2px solid black;
	text-align: center;
}

.completion-banner.complete {
	background: black;
	color: white;
}

.completion-banner.awaiting {
	border-style: dashed;
}

/* Workshop Completion Section */
.workshop-completion {
	border: 2px solid black;
	padding: 30px;
	margin: 40px 0;
}

.completion-status {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 15px;
}

.completion-status.complete {
	color: black;
}

.completion-status.awaiting {
	color: black;
}

/* Topic List Component */


/* Program Navigation */
.program-navigation {
	display: flex;
	flex-direction: row;
	gap: 20px;
	flex-wrap: wrap;
}

.program-navigation a {
	display: block;
	padding-block: 1em;
}

.program-navigation a.active {
	text-decoration: underline;
}








