/* Path: Frontend/src/components/assignment/shared/assignment-page.module.scss */

.page {
	min-height: 100dvh;
	padding: 1.25rem;
	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));
}

.shell {
	width: min(100%, 92rem);
	margin: 0 auto;
	display: grid;
	gap: 1.25rem;
}

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

	@include respond(workspace) {
		grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.75fr);
		align-items: start;
	}
}

.tabs {
	display: flex;
	justify-content: flex-start;
}

.tabList {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem;
	border-radius: var(--radius-full);
	background: var(--surface-panel);
	border: 1px solid var(--border-soft);
	box-shadow: var(--shadow-soft);
	overflow-x: auto;
	max-width: 100%;
	scrollbar-width: none;

	&::-webkit-scrollbar {
		display: none;
	}
}

.tabLink {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.72rem 1rem;
	border-radius: var(--radius-full);
	text-decoration: none;
	color: var(--text-muted);
	font-weight: 500;
	white-space: nowrap;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;

	&:hover {
		color: var(--text);
		background: var(--surface-soft);
	}
}

.tabLinkActive {
	background: linear-gradient(135deg, var(--action-primary-start), var(--action-primary-end));
	color: var(--action-primary-text);
	box-shadow: var(--action-primary-shadow);
}

.mainColumn,
.sideColumn {
	min-width: 0;
}

.sideColumn {
	@include respond(workspace) {
		position: sticky;
		top: 1.25rem;
	}
}

.emptyState {
	display: grid;
	gap: 0.8rem;
	padding: 2rem;
	border-radius: var(--radius-3xl);
	background: var(--surface-panel);
	border: 1px solid var(--border-soft);
	box-shadow: var(--shadow-soft);

	h1 {
		font-size: clamp(2rem, 1.7rem + 1vw, 2.8rem);
		line-height: 1;
		letter-spacing: -0.04em;
	}

	p {
		color: var(--text-muted);
	}
}

.emptyEyebrow {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.78rem;
	color: var(--text-muted) !important;
}

.backButton {
	width: fit-content;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1rem;
	border-radius: var(--radius-full);
	background: linear-gradient(135deg, var(--action-primary-start), var(--action-primary-end));
	color: var(--action-primary-text);
	text-decoration: none;
	font-weight: 600;
	box-shadow: var(--action-primary-shadow);
}
