.dashboardPage {
	min-height: 100dvh;
	padding: 0.85rem;
	background:
		radial-gradient(circle at top left, var(--page-glow-primary), transparent 30%),
		radial-gradient(circle at bottom right, var(--page-glow-secondary), transparent 28%),
		linear-gradient(135deg, var(--page-gradient-start), var(--page-gradient-end));

	@media (min-width: 640px) {
		padding: 1rem;
	}

	@media (min-width: 960px) {
		padding: 1.25rem;
	}
}

.dashboardLayout {
	width: min(100%, 100rem);
	margin: 0 auto;
	display: grid;
	gap: 1rem;
	--dashboard-sidebar-width: 0rem;
	will-change: grid-template-columns;
	transition:
		grid-template-columns 0.46s cubic-bezier(0.22, 1, 0.36, 1),
		gap 0.26s var(--transition-ease);

	@media (min-width: 960px) {
		gap: 1.25rem;
	}

	@media (min-width: 1024px) {
		--dashboard-sidebar-width: 15.5rem;
		grid-template-columns: minmax(0, var(--dashboard-sidebar-width)) minmax(0, 1fr);
		grid-template-areas: "sidebar main";
		align-items: start;
	}
}

.dashboardLayoutSidebarCollapsed {
	@media (min-width: 1024px) {
		--dashboard-sidebar-width: 0rem;
	}
}

.sidebarRail {
	position: fixed;
	inset: 0;
	z-index: 40;
	pointer-events: none;

	@media (min-width: 1024px) {
		position: static;
		inset: auto;
		z-index: auto;
		pointer-events: auto;
		overflow: hidden;
		min-width: 0;
	}
}

.sidebarBackdrop {
	position: absolute;
	inset: 0;
	border: none;
	padding: 0;
	background: hsl(0 0% 0% / 0.48);
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.34s var(--transition-ease),
		backdrop-filter 0.34s var(--transition-ease);
		backdrop-filter: blur(0px);

	@media (min-width: 1024px) {
		display: none;
	}
}

.sidebarBackdropVisible {
	opacity: 1;
	pointer-events: auto;
	backdrop-filter: blur(2px);
}

.sidebarPanel {
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	bottom: 0.85rem;
	width: min(18rem, calc(100vw - 3.2rem));
	max-width: 100%;
	overflow-y: auto;
	transform: translateX(calc(-100% - 1rem));
	opacity: 0;
	transition:
		transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.3s var(--transition-ease);
	pointer-events: auto;

	@media (min-width: 640px) {
		top: 1rem;
		left: 1rem;
		bottom: 1rem;
	}

	@media (min-width: 1024px) {
		position: static;
		width: auto;
		transform: none;
		opacity: 1;
		transition:
			opacity 0.3s var(--transition-ease),
			transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
			visibility 0.3s var(--transition-ease),
			max-width 0.46s cubic-bezier(0.22, 1, 0.36, 1);
		max-width: 15.5rem;
	}
}

.sidebarPanelOpen {
	transform: translateX(0);
	opacity: 1;
}

.sidebarPanelDesktopCollapsed {
	@media (min-width: 1024px) {
		max-width: 0;
		opacity: 0;
		visibility: hidden;
		transform: translateX(-1.25rem) scale(0.985);
		pointer-events: none;
	}
}

.sidebarPanelInner {
	transition:
		opacity 0.32s var(--transition-ease),
		transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.42s var(--transition-ease);
	transform-origin: top left;
}

.sidebarPanelDesktopCollapsed .sidebarPanelInner {
	@media (min-width: 1024px) {
		opacity: 0;
		transform: translateX(-0.9rem) scale(0.98);
		filter: blur(4px);
	}
}

.dashboardMain {
	display: grid;
	gap: 1rem;
	min-width: 0;
	will-change: transform, opacity;
	transition:
		transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.28s var(--transition-ease);

	@media (min-width: 960px) {
		gap: 1.25rem;
	}
}

.dashboardLayoutSidebarCollapsed .dashboardMain {
	@media (min-width: 1024px) {
		transform: translateX(-0.18rem);
	}
}

.contentGrid {
	display: grid;
	gap: 1rem;

	@media (min-width: 960px) {
		gap: 1.25rem;
	}

	@media (min-width: 1120px) {
		grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.92fr);
		grid-template-areas:
			"activity courses"
			"activity instructors";
		align-items: start;

		> :nth-child(1) {
			grid-area: courses;
		}

		> :nth-child(2) {
			grid-area: activity;
		}

		> :nth-child(3) {
			grid-area: instructors;
		}
	}
}
