/* Lesson extras: live class and resources. Colours match the AI Academy page. */

.slms-lesson-extras {
	display: grid;
	gap: 16px;
	margin-bottom: 28px;
}

.slms-live,
.slms-resources {
	border: 1px solid #d3e3e0;
	border-left: 4px solid #00A896;
	border-radius: 12px;
	padding: 18px 20px;
	background: #F2F7F6;
	color: #071B4D;
}

.slms-lesson-extras h3 {
	margin: 0 0 8px;
	font-family: "Poppins", system-ui, sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: #071B4D;
}

.slms-live__time {
	margin: 0 0 12px;
	color: #5a6478;
}

/* Google Meet's own button colour, so students recognise the join action. */
.slms-join {
	display: inline-block;
	background: #1a73e8;
	color: #fff !important;
	padding: 10px 18px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}

.slms-join:hover {
	background: #1557b0;
}

.slms-resources ul {
	margin: 0;
	padding-left: 18px;
}

.slms-resources li {
	margin: 4px 0;
}

.slms-resources a {
	color: #00A896;
	font-weight: 500;
}

/* Cohort label and session resources. */
.slms-cohort {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #E0F4F1;
	color: #00695F;
	font-family: "Poppins", system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	vertical-align: middle;
}

.slms-resources--inline {
	margin-top: 14px;
	padding: 0;
	border: 0;
	background: none;
}

.slms-resources--inline h4 {
	margin: 0 0 6px;
	font-size: 0.95rem;
}

/* [slms_my_sessions] */
.slms-sessions {
	border: 1px solid #d3e3e0;
	border-radius: 12px;
	padding: 18px 20px;
	background: #F2F7F6;
	color: #071B4D;
	margin-bottom: 28px;
}

.slms-sessions h3 {
	margin: 0 0 12px;
	font-family: "Poppins", system-ui, sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
}

.slms-sessions ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.slms-session {
	display: grid;
	grid-template-columns: minmax(150px, 220px) 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: #fff;
	border-radius: 10px;
}

.slms-session__when {
	font-weight: 600;
	font-size: 0.9rem;
}

.slms-session__what a {
	color: #071B4D;
	font-weight: 600;
	text-decoration: none;
}

@media (max-width: 640px) {
	.slms-session {
		grid-template-columns: 1fr;
	}
}

/* ---------- Lesson resources (files and links) ---------- */
.slms-files {
	border: 1px solid #E3ECEA;
	border-radius: 14px;
	padding: 18px 20px;
	background: #FFFFFF;
	color: #071B4D;
	font-family: "Poppins", system-ui, sans-serif;
}

.slms-files h3 {
	margin: 0 0 12px;
	font-family: "Poppins", system-ui, sans-serif !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	text-transform: none !important;
	color: #071B4D;
}

.slms-files__list {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	gap: 8px;
}

.slms-file {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin: 0 !important;
	padding: 10px 12px;
	border: 1px solid #E3ECEA;
	border-radius: 12px;
	background: #F6F9F8;
}

.slms-file__badge {
	display: grid;
	place-items: center;
	height: 40px;
	border-radius: 10px;
	color: #FFFFFF;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.slms-file__badge.is-orange { background: #E8673C; }
.slms-file__badge.is-blue { background: #2F74D0; }
.slms-file__badge.is-red { background: #D64545; }
.slms-file__badge.is-green { background: #1BAF7A; }
.slms-file__badge.is-navy { background: #071B4D; }
.slms-file__badge.is-teal { background: #00A896; }
.slms-file__badge.is-grey { background: #7A8599; }

.slms-file__name {
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.slms-file__name small {
	display: block;
	margin-top: 2px;
	font-size: 0.75rem;
	font-weight: 500;
	color: #5A6478;
}

.slms-file__btn {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 16px;
	border-radius: 999px;
	background: #00A896;
	color: #FFFFFF !important;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none !important;
}

.slms-file__btn:hover {
	background: #008C7C;
}

@media (max-width: 560px) {
	.slms-file {
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.slms-file__btn {
		grid-column: 1 / -1;
		justify-content: center;
	}
}

/* ---------- Locked lesson ---------- */
.slms-locked {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 22px 24px;
	border: 1px solid #C9D9F2;
	border-radius: 16px;
	background: #EAF1FB;
	color: #071B4D;
	font-family: "Poppins", system-ui, sans-serif;
}

.slms-locked__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #2F74D0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.slms-locked h3 {
	margin: 0 0 4px !important;
	font-family: "Poppins", system-ui, sans-serif !important;
	font-size: 1.1rem !important;
	font-weight: 700 !important;
	text-transform: none !important;
}

.slms-locked p {
	margin: 0 !important;
	color: #1F5BAA;
	font-size: 0.95rem !important;
	line-height: 1.5 !important;
}

/* ---------- Join button states and live badge ---------- */
.slms-join {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-family: "Poppins", system-ui, sans-serif;
}

.slms-join--sm {
	min-height: 36px;
	padding: 0 16px !important;
	font-size: 0.85rem;
	border-radius: 999px !important;
}

.slms-join.is-waiting,
.slms-join.is-ended {
	background: #EEF4F3 !important;
	color: #5A6478 !important;
	cursor: not-allowed;
	box-shadow: none !important;
}

.slms-join.is-ended {
	background: #F3F4F6 !important;
	color: #8A93A5 !important;
}

.slms-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #FDECEC;
	color: #C0362C;
	font-family: "Poppins", system-ui, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	vertical-align: middle;
}

.slms-live-badge::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #E5484D;
	animation: slms-pulse 1.4s ease-in-out infinite;
}

@keyframes slms-pulse {
	50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
	.slms-live-badge::before { animation: none; }
}

.slms-live__note {
	margin: 10px 0 0 !important;
	font-size: 0.85rem !important;
	color: #5A6478;
}

.slms-live.is-ended {
	border-left-color: #C9D6D3;
}

/* Grouped session lists */
.slms-group {
	margin: 18px 0 8px !important;
	font-family: "Poppins", system-ui, sans-serif !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em;
	text-transform: uppercase !important;
	color: #00A896;
}

.slms-group:first-of-type {
	margin-top: 0 !important;
}

.slms-list__item.is-ended {
	opacity: 0.6;
}

.slms-list__item.is-live {
	border-color: #00A896 !important;
	background: #F2FBF9;
}
