/* ===== HOMEPAGE UNIFIED STYLES ===== */

/* Typography System */
:root {
	/* Font Sizes - Reduced */
	--fs-hero-title: 1.75rem;
	--fs-hero-subtitle: 1rem;
	--fs-section-title: 1.25rem;
	--fs-body: 0.9375rem;
	--fs-small: 0.8125rem;

	/* Font Weights */
	--fw-light: 300;
	--fw-normal: 400;
	--fw-medium: 500;
	--fw-semibold: 600;
	--fw-bold: 700;
}

/* ===== HOME BOARD - MODERN LAYOUT ===== */
.home-board {
	background: rgba(255, 255, 255, 0.98);
	border-radius: 20px;
	padding: 1.75rem;
	box-shadow: 0 12px 40px rgba(16, 31, 60, 0.1);
	border: 1px solid rgba(30, 60, 114, 0.06);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2rem;
	max-width: 945px;
	margin-left: auto;
	margin-right: auto;
}

/* Hero Header */
.hero-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(30, 60, 114, 0.08);
}

.hero-branding {
	flex: 1;
}

.hero-branding .logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.hero-branding .logo i {
	font-size: 1.75rem;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-branding h1 {
	font-size: 1.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin: 0;
}

.hero-subtitle {
	font-size: 0.9rem;
	color: var(--text-light);
	margin: 0.35rem 0 0 0;
	line-height: 1.4;
}

.hero-badges {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin-bottom: 0.85rem;
}

.hero-pill.public-link {
	text-decoration: none;
	background: rgba(20, 184, 166, 0.08);
	border: 1px solid rgba(20, 184, 166, 0.2);
	color: #0f766e;
	box-shadow: 0 4px 12px rgba(20, 184, 166, 0.04);
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-pill.public-link:hover {
	background: rgba(20, 184, 166, 0.14);
	border-color: rgba(20, 184, 166, 0.4);
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(20, 184, 166, 0.1);
}

.hero-stats {
	display: flex;
	align-items: stretch;
	gap: 0.75rem;
}

.stat-card {
	--stat-color: var(--primary);
	--stat-bg: rgba(30, 60, 114, 0.08);
	--stat-border: rgba(30, 60, 114, 0.16);
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.72));
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	padding: 0.9rem 1rem;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: none;
	min-width: 132px;
	min-height: 76px;
	position: relative;
	overflow: hidden;
	text-align: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--stat-color);
	opacity: 0.8;
}

.stat-card:hover {
	transform: translateY(-2px);
	border-color: var(--stat-border);
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.stat-icon-wrapper {
	display: none;
}

/* Theme variants for stat icon wrappers (Light Mode) */
.active-exams-card {
	--stat-color: #3b82f6;
	--stat-bg: rgba(59, 130, 246, 0.09);
	--stat-border: rgba(59, 130, 246, 0.22);
}

.questions-card {
	--stat-color: #0891b2;
	--stat-bg: rgba(8, 145, 178, 0.1);
	--stat-border: rgba(8, 145, 178, 0.24);
}

.support-card {
	--stat-color: #0f766e;
	--stat-bg: rgba(15, 118, 110, 0.1);
	--stat-border: rgba(15, 118, 110, 0.24);
}

.stat-card:hover .stat-icon-wrapper {
	display: none;
}

.stat-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	min-width: 0;
}

.stat-value {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1;
}

.stat-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-light);
	font-weight: 600;
}

.stat-label-icon {
	font-size: 0.72rem;
	color: var(--stat-color);
	opacity: 0.85;
}

/* Image Support Status Chip */
.status-pulse-chip {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 0.4rem;
	background: transparent;
	padding: 0;
	border: 0;
	transition: all 0.3s ease;
	width: fit-content;
}

.status-pulse-chip .stat-value {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1;
	white-space: nowrap;
}

.pulse-dot {
	width: 6px;
	height: 6px;
	background-color: var(--accent); /* blue/cyan during detection */
	border-radius: 50%;
	flex: 0 0 6px;
	box-shadow: 0 0 0 0 rgba(0, 188, 242, 0.7);
	animation: pulse-blue 1.6s infinite;
	transition: all 0.3s ease;
}

/* Green state when images are detected */
.status-pulse-chip:has(.has-images) {
	background: transparent;
	border-color: transparent;
}

.status-pulse-chip:has(.has-images) .stat-value {
	color: #10b981;
}

.status-pulse-chip:has(.has-images) .pulse-dot {
	background-color: #10b981;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: pulse-green 1.6s infinite;
}

/* Fallback for browsers that don't support :has() */
#image-support-flag.has-images {
	color: #10b981;
}
#image-support-flag.has-images + .pulse-dot {
	background-color: #10b981;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: pulse-green 1.6s infinite;
}

@keyframes pulse-blue {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(0, 188, 242, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 5px rgba(0, 188, 242, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(0, 188, 242, 0);
	}
}

@keyframes pulse-green {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

/* Quick Actions Bar */
.quick-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.15rem;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.25s ease;
	border: none;
	white-space: nowrap;
}

.action-btn.primary {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	box-shadow: 0 8px 20px rgba(30, 60, 114, 0.25);
}

.action-btn.primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(30, 60, 114, 0.35);
}

.action-btn.secondary,
.action-btn.public,
.action-btn.ghost {
	background: rgba(255, 255, 255, 0.95);
	color: var(--primary);
	border: 1.5px solid rgba(30, 60, 114, 0.2);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.action-btn.secondary:hover,
.action-btn.public:hover,
.action-btn.ghost:hover {
	background: rgba(248, 249, 250, 1);
	border-color: rgba(30, 60, 114, 0.35);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.action-btn i {
	font-size: 1.1rem;
}

/* Content Grid - Single Column Layout */
.content-grid {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.main-content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	width: 100%;
}

/* Upload Zone Card */
.upload-zone-card {
	background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(0, 188, 242, 0.08));
	border: 2px dashed rgba(30, 60, 114, 0.3);
	border-radius: 14px;
	padding: 1.25rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	cursor: pointer;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.upload-zone-card:hover {
	background: linear-gradient(135deg, rgba(30, 60, 114, 0.08), rgba(0, 188, 242, 0.12));
	border-color: rgba(30, 60, 114, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(30, 60, 114, 0.12);
}

/* Drag & Drop Active State */
.upload-zone-card.drag-over {
	background: linear-gradient(135deg, rgba(30, 60, 114, 0.15), rgba(0, 188, 242, 0.2));
	border-color: var(--primary);
	border-width: 3px;
	transform: scale(1.02);
	box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.1),
	            0 12px 40px rgba(30, 60, 114, 0.25),
	            inset 0 0 60px rgba(0, 188, 242, 0.15);
	animation: dragPulse 1.5s ease-in-out infinite;
}

.upload-zone-card.drag-over::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(0, 188, 242, 0.4) 0%, transparent 70%);
	animation: dragRotate 3s linear infinite;
	pointer-events: none;
}

.upload-zone-card.drag-over .upload-icon {
	transform: scale(1.2);
	box-shadow: 0 8px 30px rgba(30, 60, 114, 0.3);
	animation: iconBounce 0.6s ease-in-out infinite alternate;
}

.upload-zone-card.drag-over .upload-text h3 {
	color: var(--primary);
	font-weight: 700;
}

@keyframes dragPulse {
	0%, 100% {
		box-shadow: 0 0 0 8px rgba(0, 188, 242, 0.6),
		            0 0 0 16px rgba(0, 188, 242, 0.4),
		            0 0 60px 25px rgba(0, 188, 242, 0.8),
		            0 0 120px 50px rgba(0, 188, 242, 0.6),
		            0 20px 80px rgba(0, 0, 0, 0.3);
	}
	50% {
		box-shadow: 0 0 0 12px rgba(0, 188, 242, 0.7),
		            0 0 0 24px rgba(0, 188, 242, 0.5),
		            0 0 80px 35px rgba(0, 188, 242, 1),
		            0 0 150px 60px rgba(0, 188, 242, 0.8),
		            0 25px 90px rgba(0, 0, 0, 0.4);
	}
}

@keyframes dragRotate {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes iconBounce {
	0% {
		transform: scale(1.2) translateY(0);
	}
	100% {
		transform: scale(1.2) translateY(-8px);
	}
}

.upload-icon {
	font-size: 2rem;
	color: var(--primary);
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.upload-text h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 0.25rem 0;
}

.upload-text p {
	font-size: 0.85rem;
	color: #4a5568;
	font-weight: 500;
	margin: 0;
}

.upload-btn {
	background: rgba(255, 255, 255, 0.95);
	border: none;
	border-radius: 10px;
	padding: 0.65rem 1.25rem;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--primary);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: all 0.25s ease;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.upload-btn:hover {
	background: #fff;
	transform: scale(1.03);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
	gap: 2rem;
	align-items: stretch;
}

.hero-visual {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* Sidebar */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	position: sticky;
	top: 2rem;
}

/* Preview Card */
.preview-card {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
	border-radius: 20px;
	padding: 1.75rem;
	border: 1px solid rgba(30, 60, 114, 0.1);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.preview-header {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1rem;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	background: rgba(30, 60, 114, 0.1);
	color: var(--primary);
}

.status-badge.success {
	background: rgba(46, 213, 115, 0.15);
	color: #1a7f4c;
}

.status-badge.warning {
	background: rgba(255, 193, 7, 0.15);
	color: #7f5f00;
}

.preview-card h3 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 0.5rem 0;
	line-height: 1.2;
}

.preview-subtitle {
	font-size: 0.9rem;
	color: var(--text-light);
	margin: 0 0 1.5rem 0;
}

.preview-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding: 1.25rem 0;
	border-top: 1px solid rgba(30, 60, 114, 0.1);
	border-bottom: 1px solid rgba(30, 60, 114, 0.1);
}

.preview-stat {
	text-align: center;
}

.preview-stat .stat-label {
	display: block;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-light);
	margin-bottom: 0.4rem;
	font-weight: 600;
}

.preview-stat .stat-number {
	display: block;
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--primary);
	line-height: 1;
	margin-bottom: 0.25rem;
}

.preview-stat small {
	display: block;
	font-size: 0.75rem;
	color: var(--text-light);
}

.preview-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.preview-tags .tag {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.8rem;
	background: rgba(30, 60, 114, 0.08);
	color: var(--text);
	font-weight: 500;
}

.preview-action-btn {
	width: 100%;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 0.95rem 1.5rem;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: all 0.25s ease;
	box-shadow: 0 8px 20px rgba(30, 60, 114, 0.25);
}

.preview-action-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(30, 60, 114, 0.35);
}

.preview-action-btn i {
	font-size: 1rem;
}

/* Exam Info Card */
.exam-info-card {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 16px;
	padding: 1.5rem;
	border: 1px solid rgba(30, 60, 114, 0.08);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
	.content-grid {
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: static;
	}
}

@media (max-width: 1024px) {
	.home-board {
		padding: 2rem;
		gap: 1.75rem;
	}

	.hero-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 2rem;
	}

	.hero-stats {
		width: 100%;
		flex-wrap: wrap;
	}

	.stat-card {
		flex: 1;
		min-width: 130px;
	}

	.quick-actions {
		justify-content: flex-start;
	}

	.exam-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	}
}

@media (max-width: 768px) {
	.home-board {
		padding: 1.5rem;
		gap: 1.5rem;
	}

	.hero-branding h1 {
		font-size: 1.75rem;
	}

	.hero-subtitle {
		font-size: 0.95rem;
	}

	.hero-stats {
		flex-direction: column;
	}

	.stat-card {
		width: 100%;
	}

	.quick-actions {
		flex-direction: column;
	}

	.action-btn {
		width: 100%;
		justify-content: center;
	}

	.upload-zone-card {
		flex-direction: column;
		text-align: center;
	}

	.upload-btn {
		width: 100%;
		justify-content: center;
	}

	.exam-grid {
		grid-template-columns: 1fr;
	}

	.preview-stats {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

.hero-content {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	text-align: left;
	align-items: flex-start;
}

.hero .logo {
	justify-content: flex-start;
}

.hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: var(--fw-semibold);
	color: var(--primary);
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0 10px 30px rgba(30, 60, 114, 0.15);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hero-actions button,
.hero-actions a {
	border: none;
	border-radius: 14px;
	padding: 0.85rem 1.4rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: var(--fw-semibold);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	text-decoration: none;
}

.hero-primary {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	box-shadow: 0 12px 30px rgba(30, 60, 114, 0.25);
}

.hero-secondary {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(30, 60, 114, 0.15);
	color: var(--primary);
}

.hero-ghost {
	background: transparent;
	border: 1.5px dashed rgba(30, 60, 114, 0.35);
	color: var(--primary);
	box-shadow: inset 0 0 0 1px rgba(30, 60, 114, 0.08);
}

.hero-actions button:hover,
.hero-actions a:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(30, 60, 114, 0.25);
}

.hero-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 1rem;
}

.hero-metric {
	background: rgba(255, 255, 255, 0.9);
	border-radius: 18px;
	padding: 1rem;
	border: 1px solid rgba(30, 60, 114, 0.1);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.metric-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-light);
	margin-bottom: 0.35rem;
}

.metric-value {
	font-size: 1.75rem;
	font-weight: var(--fw-bold);
	color: var(--primary);
}

.metric-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	font-weight: var(--fw-medium);
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(30, 60, 114, 0.08);
	color: var(--text);
}

.metric-chip.has-images {
	background: rgba(46, 213, 115, 0.15);
	color: #1a7f4c;
}

/* ===== Hero Visual Cards ===== */
.hero-visual {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.hero-card {
	background: rgba(255, 255, 255, 0.92);
	border-radius: 24px;
	padding: 1.5rem;
	border: 1px solid rgba(30, 60, 114, 0.12);
	box-shadow: 0 20px 45px rgba(15, 30, 70, 0.12);
	position: relative;
	overflow: hidden;
}

.preview-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.875rem;
	color: var(--text-light);
	margin-bottom: 1rem;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(30, 60, 114, 0.12);
	color: var(--primary);
	font-weight: var(--fw-semibold);
}

.status-pill.success {
	background: rgba(46, 213, 115, 0.15);
	color: #1a7f4c;
}

.status-pill.warning {
	background: rgba(255, 193, 7, 0.15);
	color: #7f5f00;
}

.preview-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1.25rem;
	margin-bottom: 1rem;
}

.preview-metric {
	background: rgba(248, 249, 250, 0.9);
	border-radius: 16px;
	padding: 1rem;
	border: 1px solid rgba(30, 60, 114, 0.08);
}

.preview-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-light);
}

.preview-value {
	display: block;
	font-size: 2rem;
	font-weight: var(--fw-bold);
	color: var(--primary);
}

.preview-metric small {
	display: block;
	margin-top: 0.25rem;
	color: var(--text-light);
}

.preview-flags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.flag-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(30, 60, 114, 0.08);
	font-size: 0.85rem;
	color: var(--text);
}

.preview-actions {
	display: flex;
	justify-content: flex-start;
}

.preview-cta {
	border: none;
	border-radius: 999px;
	padding: 0.75rem 1.4rem;
	font-weight: var(--fw-semibold);
	font-size: 0.95rem;
	background: linear-gradient(135deg, rgba(30, 60, 114, 0.9), rgba(0, 188, 242, 0.8));
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(30, 60, 114, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.preview-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 36px rgba(30, 60, 114, 0.4);
}

/* ===== Exam Info Card (Current Exam Section) ===== */
.sidebar > div {
	background: rgba(255, 255, 255, 0.65);
	border-radius: 16px;
	padding: 1.75rem;
	border: 1px solid rgba(30, 60, 114, 0.08);
	margin-bottom: 1.25rem;
	transition: box-shadow 0.3s ease;
}

.sidebar > div h3 {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: var(--fw-semibold);
	color: var(--text);
	margin-bottom: 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.current-exam-indicator {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(30, 60, 114, 0.1), rgba(0, 188, 242, 0.15));
	font-size: 0.75rem;
	font-weight: var(--fw-semibold);
	color: var(--primary);
	margin-left: 0.5rem;
}

.info-card-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.65rem;
}

.info-card {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(30, 60, 114, 0.08);
	border-radius: 10px;
	padding: 0.85rem;
	text-align: center;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
}

.info-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(30, 60, 114, 0.1);
	border-color: rgba(30, 60, 114, 0.15);
}

.info-card i {
	font-size: 1.25rem;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.info-card > span {
	font-family: var(--font-heading);
	font-size: 0.95rem;
	font-weight: var(--fw-bold);
	color: var(--text);
	display: block;
}

.info-card small {
	font-family: var(--font-body);
	font-size: 0.7rem;
	color: var(--text-light);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: var(--fw-medium);
}

/* ===== Start Exam CTA ===== */
.start-exam-cta {
	text-align: center;
	padding: 0.35rem 0 0 0;
}

.btn-start-exam {
	width: 100%;
	border: none;
	border-radius: 10px;
	padding: 0.85rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: var(--fw-semibold);
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: white;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-shadow: 0 4px 14px rgba(30, 60, 114, 0.25);
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	text-transform: none;
	letter-spacing: 0.01em;
}

.btn-start-exam:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(30, 60, 114, 0.4);
}

.btn-start-exam i {
	font-size: 1.1rem;
}

/* ===== Modules & Resources Section ===== */
.modules-and-resources {
	margin-top: 0.5rem;
}

.modules-and-resources h3 {
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: var(--fw-semibold);
	color: var(--text);
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.modules-and-resources h3 i {
	font-size: 1.1rem;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.modules-resources-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	align-items: start;
}

.modules-section h4,
.resources-section h4 {
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: var(--fw-semibold);
	color: var(--text-light);
	margin-bottom: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.modules-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.modules-list li {
	font-family: var(--font-body);
	font-size: 0.9rem;
	color: var(--text);
	padding: 0.6rem 0.9rem;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(30, 60, 114, 0.08);
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.2s ease;
}

.modules-list li::before {
	content: '✓';
	font-weight: bold;
	color: var(--primary);
}

.modules-list li:hover {
	background: rgba(30, 60, 114, 0.05);
	border-color: rgba(30, 60, 114, 0.15);
}

.resources-compact {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.resources-compact a {
	font-family: var(--font-body);
	font-size: 0.9rem;
	color: var(--primary);
	text-decoration: none;
	padding: 0.6rem 0.9rem;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(30, 60, 114, 0.08);
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.2s ease;
}

.resources-compact a i {
	font-size: 1rem;
	color: var(--accent);
}

.resources-compact a:hover {
	background: rgba(30, 60, 114, 0.08);
	border-color: var(--primary);
	transform: translateX(4px);
}

.upload-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: center;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.upload-card-icon {
	width: 56px;
	height: 56px;
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(30, 60, 114, 0.12), rgba(0, 188, 242, 0.2));
	color: var(--primary);
	font-size: 1.5rem;
}

.upload-card-action {
	margin-top: 0.5rem;
	background: rgba(30, 60, 114, 0.08);
	border: none;
	border-radius: 999px;
	padding: 0.5rem 1rem;
	font-weight: var(--fw-semibold);
	color: var(--primary);
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	cursor: pointer;
}

.upload-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 25px 50px rgba(15, 30, 70, 0.2);
}

/* ===== Exam Library Section ===== */
.exam-library-section {
	background: rgba(255, 255, 255, 0.6);
	border-radius: 16px;
	padding: 1.75rem;
	border: 1px solid rgba(30, 60, 114, 0.06);
}

.section-header {
	margin-bottom: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.section-header > div {
	flex: 1;
}

.section-header h2 {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 0.35rem 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.btn-add-exam {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: white;
	border: none;
	border-radius: 10px;
	padding: 0.65rem 1.15rem;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 14px rgba(30, 60, 114, 0.25);
	white-space: nowrap;
}

.btn-add-exam:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(30, 60, 114, 0.35);
}

/* Spotlight effect on Add Exam button during drag */
body.dragging-file .btn-add-exam {
	position: relative;
	z-index: 9999;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.95));
	color: var(--primary);
	border: 3px solid var(--accent);
	box-shadow: 0 0 0 4px rgba(0, 188, 242, 0.3),
	            0 0 40px 15px rgba(0, 188, 242, 0.5),
	            0 10px 40px rgba(0, 0, 0, 0.3);
	transform: scale(1.05);
	animation: dragPulse 1.5s ease-in-out infinite;
}

body.dragging-file .btn-add-exam i {
	color: var(--accent);
	filter: drop-shadow(0 2px 8px rgba(0, 188, 242, 0.5));
}

/* Intensify when hovering over the button during drag */
body.dragging-file .btn-add-exam.drag-over {
	transform: scale(1.15);
	box-shadow: 0 0 0 6px rgba(0, 188, 242, 0.5),
	            0 0 0 12px rgba(0, 188, 242, 0.3),
	            0 0 60px 25px rgba(0, 188, 242, 0.7),
	            0 0 100px 40px rgba(0, 188, 242, 0.6),
	            0 15px 50px rgba(0, 0, 0, 0.4);
}

body.dragging-file .btn-add-exam.drag-over i {
	transform: scale(1.2);
	animation: iconBounce 0.6s ease-in-out infinite alternate;
}

/* Spotlight effect on Import Card during drag */
body.dragging-file #compact-import-btn {
	position: relative;
	z-index: 9999;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 255, 245, 0.95)) !important;
	box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.4),
	            0 0 40px 15px rgba(40, 167, 69, 0.5),
	            0 10px 40px rgba(0, 0, 0, 0.3);
	transform: scale(1.02);
	animation: dragPulse 1.5s ease-in-out infinite;
}

body.dragging-file #compact-import-btn .exam-icon {
	color: #28a745;
	filter: drop-shadow(0 2px 8px rgba(40, 167, 69, 0.5));
}

/* Intensify when hovering over import card during drag */
body.dragging-file #compact-import-btn.drag-over {
	transform: scale(1.08);
	box-shadow: 0 0 0 6px rgba(40, 167, 69, 0.6),
	            0 0 0 12px rgba(40, 167, 69, 0.4),
	            0 0 60px 25px rgba(40, 167, 69, 0.7),
	            0 0 100px 40px rgba(40, 167, 69, 0.6),
	            0 15px 50px rgba(0, 0, 0, 0.4);
}

body.dragging-file #compact-import-btn.drag-over .exam-icon {
	transform: scale(1.25);
	animation: iconBounce 0.6s ease-in-out infinite alternate;
}

/* Ensure high contrast for text inside import card when highlighted during drag */
body.dragging-file #compact-import-btn .exam-title,
body.dragging-file #compact-import-btn .exam-subtitle,
body.dragging-file #compact-import-btn .exam-stat-label {
	color: #0f766e !important;
	text-shadow: none !important;
}

body.dragging-file #compact-import-btn .exam-badge {
	background: rgba(13, 148, 136, 0.1) !important;
	color: #0f766e !important;
	font-weight: 700 !important;
	border: 1px solid rgba(13, 148, 136, 0.25) !important;
}

.btn-add-exam i {
	font-size: 1rem;
}

.section-header h2 i {
	font-size: 1.1rem;
	color: var(--primary);
}

.section-subtitle {
	font-size: 0.85rem;
	color: var(--text-light);
	margin: 0;
}

.exam-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
}

.exam-card {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1.25rem;
	border-radius: 14px;
	text-align: left;
	color: var(--text);
	position: relative;
	min-height: 190px;
	cursor: pointer;
	transition: all 0.25s ease;
	border: 2px solid transparent;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	overflow: hidden; /* Clips the sliding start button */
}

.exam-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
	border-color: rgba(30, 60, 114, 0.15);
}

.exam-card.selected {
	border-color: var(--primary);
	box-shadow: 0 12px 32px rgba(30, 60, 114, 0.2);
	background: rgba(255, 255, 255, 1);
}

.exam-card .exam-delete {
	position: absolute;
	top: 10px;
	right: 10px;
	left: auto;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	border: none;
	background: rgba(255, 255, 255, 0.22);
	color: rgba(255, 255, 255, 0.95);
	opacity: 0;
	visibility: hidden;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 10;
}

.exam-card:hover .exam-delete {
	opacity: 1;
	visibility: visible;
}

.exam-card .exam-delete:hover {
	background: #ef4444;
	color: #ffffff;
	transform: scale(1.15);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.exam-card.custom { background: linear-gradient(135deg, rgba(32, 201, 151, 0.15), rgba(17, 153, 142, 0.08)); }

.exam-card .exam-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: var(--fw-semibold);
	background: rgba(255, 255, 255, 0.88);
	color: #1e293b;
	border: 1px solid rgba(0, 0, 0, 0.08);
	transition: opacity 0.2s ease, visibility 0.2s ease;
	opacity: 1;
	visibility: visible;
	z-index: 9;
}

.exam-card:hover .exam-badge {
	opacity: 0;
	visibility: hidden;
}

.exam-icon {
	font-size: 1.85rem;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
	margin-bottom: 0.4rem;
	transition: transform 0.22s ease;
}

.exam-card:hover .exam-icon,
.exam-card.selected .exam-icon {
	transform: translateY(-2px);
}

.exam-title {
	font-size: 1.15rem;
	font-weight: var(--fw-bold);
	color: #ffffff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5);
	transition: transform 0.22s ease;
}

.exam-card:hover .exam-title,
.exam-card.selected .exam-title {
	transform: translateY(-2px);
}

.exam-subtitle {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: 0.75rem;
	font-weight: 500;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
	transition: transform 0.22s ease;
}

.exam-card:hover .exam-subtitle,
.exam-card.selected .exam-subtitle {
	transform: translateY(-2px);
}

.exam-stats {
	display: flex;
	justify-content: space-between;
	gap: 0.4rem;
	margin-top: auto;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	padding-top: 0.5rem;
	transition: opacity 0.22s ease, transform 0.22s ease;
	opacity: 1;
}

.exam-card:hover .exam-stats,
.exam-card.selected .exam-stats {
	opacity: 0.12;
	transform: translateY(-4px);
}

.exam-stat {
	text-align: center;
}

.exam-stat-number {
	font-size: 0.95rem;
	font-weight: var(--fw-bold);
	color: #ffffff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.exam-stat-label {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.88);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.exam-total-info,
.exam-feature {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.35);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.exam-card:hover .exam-total-info,
.exam-card.selected .exam-total-info,
.exam-card:hover .exam-feature,
.exam-card.selected .exam-feature {
	opacity: 0.12;
	transform: translateY(-4px);
}

.exam-study-info {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 650;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.35);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.exam-card:hover .exam-study-info,
.exam-card.selected .exam-study-info {
	opacity: 0.12;
	transform: translateY(-4px);
}

.exam-card-actions {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	transform: translateY(100%);
	transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
	z-index: 5;
	overflow: hidden;
	border-radius: 0 0 14px 14px;
}

.exam-card-start,
.exam-card-study {
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.96);
	color: #0f172a;
	font-size: 0.85rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	transition: background 0.18s ease, color 0.18s ease;
	cursor: pointer;
}

.exam-card-study {
	border-left: 1px solid rgba(15, 23, 42, 0.08);
	background: rgba(248, 250, 252, 0.98);
}

.exam-card:hover .exam-card-actions,
.exam-card.selected .exam-card-actions {
	transform: translateY(0);
}

.exam-card-start:hover,
.exam-card-study:hover {
	background: #ffffff !important;
	color: var(--primary) !important;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

#compact-import-btn {
	border: 1.5px dashed rgba(32, 201, 151, 0.6);
	background: linear-gradient(135deg, rgba(32, 201, 151, 0.2), rgba(17, 153, 142, 0.12));
	text-align: center;
	align-items: center;
	justify-content: center;
}

/* ===== Exam Details Placeholder ===== */
.exam-details-placeholder {
	display: none;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
	border-radius: 16px;
	padding: 1.75rem;
	border: 2px solid var(--primary);
	box-shadow: 0 8px 24px rgba(30, 60, 114, 0.12);
	margin-top: 1.25rem;
	animation: slideDown 0.4s ease;
	scroll-margin-top: 100px;
}

.exam-details-placeholder.visible {
	display: block;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-15px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.exam-details-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1.5rem;
	padding-bottom: 1.15rem;
	border-bottom: 1px solid rgba(30, 60, 114, 0.1);
}

.exam-details-title-area h2 {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 0.35rem 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.exam-details-title-area .current-exam-indicator {
	font-size: 0.7rem;
	padding: 0.3rem 0.75rem;
}

.exam-details-title-area p {
	font-size: 0.9rem;
	color: var(--text-light);
	margin: 0;
}

.exam-details-actions {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.btn-close-details {
	background: rgba(220, 53, 69, 0.1);
	color: #dc3545;
	border: 2px solid rgba(220, 53, 69, 0.2);
	border-radius: 10px;
	padding: 0.55rem 0.9rem;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: all 0.3s ease;
}

.btn-close-details:hover {
	background: rgba(220, 53, 69, 0.15);
	border-color: #dc3545;
	transform: translateY(-2px);
}

.exam-details-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.exam-details-section {
	background: rgba(255, 255, 255, 0.7);
	border-radius: 12px;
	padding: 1.25rem;
	border: 1px solid rgba(30, 60, 114, 0.08);
}

.exam-details-section h3 {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 1rem 0;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.exam-details-section h3 i {
	font-size: 1.1rem;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Full width section for start button */
.exam-details-section.full-width {
	grid-column: 1 / -1;
	text-align: center;
}

/* ===== No Exams / Empty State ===== */
.no-exams-section {
	text-align: center;
	padding: 4rem 2rem;
	background: rgba(248, 249, 250, 0.5);
	border-radius: 20px;
	border: 1px dashed rgba(30, 60, 114, 0.15);
}

.empty-state {
	max-width: 500px;
	margin: 0 auto;
}

.empty-icon {
	font-size: 4rem;
	color: rgba(30, 60, 114, 0.3);
	margin-bottom: 1rem;
}

.empty-state h3 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.5rem 0;
}

.empty-state p {
	font-size: 1rem;
	color: #4a5568;
	font-weight: 500;
	margin: 0 0 2rem 0;
}

.drop-zone-simple {
	background: rgba(255, 255, 255, 0.8);
	border: 2px dashed rgba(30, 60, 114, 0.25);
	border-radius: 16px;
	padding: 2rem;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.drop-zone-simple:hover {
	border-color: var(--primary);
	background: rgba(255, 255, 255, 1);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Global Drag Overlay - Darkens everything except drop zone */
body.dragging-file::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.85);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	z-index: 9998;
	pointer-events: none;
	animation: overlayFadeIn 0.3s ease;
}

body.importing-exam::before,
body.dragging-file.importing-exam::before {
	content: none !important;
	display: none !important;
}

/* Hide drag overlay when import modal is active */
body.dragging-file:has(#import-progress-modal.active)::before {
	display: none;
}

@keyframes overlayFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Spotlight effect - elevate drop zone above overlay */
body.dragging-file .drop-zone-simple {
	position: relative;
	z-index: 9999;
	background: rgba(255, 255, 255, 0.95);
}

/* Elevate import progress modal above drag overlay */
body.dragging-file #import-progress-modal {
	z-index: 9999 !important;
}

body.dragging-file #import-progress-modal .import-progress-content {
	z-index: 10000 !important;
	box-shadow: 0 0 0 4px rgba(0, 188, 242, 0.3),
	            0 0 40px 15px rgba(0, 188, 242, 0.4),
	            0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Drag & Drop Active State for Empty State */
body.dragging-file .drop-zone-simple.drag-over,
.drop-zone-simple.drag-over {
	background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(240, 248, 255, 1));
	border-color: var(--accent);
	border-width: 4px;
	border-style: solid;
	transform: scale(1.08);
	box-shadow: 0 0 0 8px rgba(0, 188, 242, 0.6),
	            0 0 0 16px rgba(0, 188, 242, 0.4),
	            0 0 60px 25px rgba(0, 188, 242, 0.8),
	            0 0 120px 50px rgba(0, 188, 242, 0.6),
	            0 20px 80px rgba(0, 0, 0, 0.3),
	            inset 0 0 100px rgba(0, 188, 242, 0.2);
	animation: dragPulse 1.5s ease-in-out infinite;
}

.drop-zone-simple.drag-over::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(0, 188, 242, 0.4) 0%, transparent 70%);
	animation: dragRotate 3s linear infinite;
	pointer-events: none;
	z-index: 0;
}

.drop-zone-simple.drag-over i {
	transform: scale(1.25);
	animation: iconBounce 0.6s ease-in-out infinite alternate;
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 4px 12px rgba(0, 188, 242, 0.6));
}

.drop-zone-simple.drag-over p {
	color: var(--primary);
	font-weight: 700;
	font-size: 1.1rem;
	position: relative;
	z-index: 1;
	text-shadow: 0 2px 8px rgba(0, 188, 242, 0.3);
}

.drop-zone-simple.drag-over .btn-import {
	transform: scale(1.08);
	box-shadow: 0 12px 32px rgba(30, 60, 114, 0.4);
	position: relative;
	z-index: 1;
}

.drop-zone-simple i {
	font-size: 2.5rem;
	color: var(--primary);
	display: block;
	margin-bottom: 1rem;
}

.drop-zone-simple p {
	font-size: 0.95rem;
	color: var(--text-light);
	margin: 0 0 1.5rem 0;
}

.btn-import {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 0.85rem 2rem;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.25s ease;
	box-shadow: 0 8px 20px rgba(30, 60, 114, 0.25);
}

.btn-import:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(30, 60, 114, 0.35);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] .home-board,
.dark-mode .home-board {
	background: rgba(28, 36, 52, 0.98);
	border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hero-header,
.dark-mode .hero-header {
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .stat-card,
.dark-mode .stat-card {
	background: linear-gradient(180deg, rgba(30, 41, 59, 0.66), rgba(15, 23, 42, 0.42));
	border-color: rgba(148, 163, 184, 0.16);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .stat-card:hover,
.dark-mode .stat-card:hover {
	background: linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.54));
	border-color: var(--stat-border);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Theme variants for stat icon wrappers (Dark Mode) */
[data-theme="dark"] .active-exams-card .stat-icon-wrapper,
.dark-mode .active-exams-card .stat-icon-wrapper {
	background: transparent;
	color: #93c5fd;
}
[data-theme="dark"] .active-exams-card:hover .stat-icon-wrapper,
.dark-mode .active-exams-card:hover .stat-icon-wrapper {
	background: #3b82f6;
	color: #ffffff;
}

[data-theme="dark"] .questions-card .stat-icon-wrapper,
.dark-mode .questions-card .stat-icon-wrapper {
	background: transparent;
	color: #38bdf8;
}
[data-theme="dark"] .questions-card:hover .stat-icon-wrapper,
.dark-mode .questions-card:hover .stat-icon-wrapper {
	background: #00bcf2;
	color: #ffffff;
	border-color: transparent;
}

[data-theme="dark"] .support-card .stat-icon-wrapper,
.dark-mode .support-card .stat-icon-wrapper {
	background: transparent;
	color: #34d399;
}
[data-theme="dark"] .support-card:hover .stat-icon-wrapper,
.dark-mode .support-card:hover .stat-icon-wrapper {
	background: #10b981;
	color: #ffffff;
	border-color: transparent;
}

[data-theme="dark"] .stat-value,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
.dark-mode .stat-value,
.dark-mode h1,
.dark-mode h2,
.dark-mode h3 {
	color: #e8eaed;
}

[data-theme="dark"] .action-btn.secondary,
.dark-mode .action-btn.secondary,
[data-theme="dark"] .action-btn.public,
.dark-mode .action-btn.public,
[data-theme="dark"] .action-btn.ghost,
.dark-mode .action-btn.ghost {
	background: rgba(30, 41, 59, 0.45);
	border: 1.5px solid rgba(255, 255, 255, 0.12);
	color: #e2e8f0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .action-btn.secondary:hover,
.dark-mode .action-btn.secondary:hover,
[data-theme="dark"] .action-btn.public:hover,
.dark-mode .action-btn.public:hover,
[data-theme="dark"] .action-btn.ghost:hover,
.dark-mode .action-btn.ghost:hover {
	background: rgba(30, 41, 59, 0.75);
	border-color: rgba(0, 188, 242, 0.35);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Dark mode for public link pill badge */
[data-theme="dark"] .hero-pill.public-link,
.dark-mode .hero-pill.public-link {
	background: rgba(20, 184, 166, 0.15);
	border: 1px solid rgba(94, 234, 212, 0.28);
	color: #2dd4bf;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .hero-pill.public-link:hover,
.dark-mode .hero-pill.public-link:hover {
	background: rgba(20, 184, 166, 0.25);
	border-color: rgba(94, 234, 212, 0.48);
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .upload-zone-card,
.dark-mode .upload-zone-card {
	background: linear-gradient(135deg, rgba(44, 55, 72, 0.5), rgba(55, 68, 88, 0.5));
	border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .upload-icon,
[data-theme="dark"] .upload-btn,
.dark-mode .upload-icon,
.dark-mode .upload-btn {
	background: rgba(44, 55, 72, 0.95);
	color: #e8eaed;
}

[data-theme="dark"] .exam-library-section,
.dark-mode .exam-library-section {
	background: rgba(32, 40, 58, 0.6);
	border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .exam-card,
.dark-mode .exam-card {
	background: rgba(44, 55, 72, 0.95);
	border-color: rgba(255, 255, 255, 0.06);
	color: #e8eaed;
}

[data-theme="dark"] .exam-card:hover,
.dark-mode .exam-card:hover {
	border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .exam-card.selected,
.dark-mode .exam-card.selected {
	border-color: var(--accent);
	background: rgba(55, 68, 88, 1);
}

[data-theme="dark"] .preview-card,
[data-theme="dark"] .exam-info-card,
.dark-mode .preview-card,
.dark-mode .exam-info-card {
	background: rgba(44, 55, 72, 0.98);
	border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .preview-stats,
.dark-mode .preview-stats {
	border-top-color: rgba(255, 255, 255, 0.1);
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .preview-tags .tag,
.dark-mode .preview-tags .tag {
	background: rgba(255, 255, 255, 0.08);
	color: #e8eaed;
}

[data-theme="dark"] .hero-primary,
.dark-mode .hero-primary {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .preview-metric,
.dark-mode .preview-metric {
	background: rgba(44, 55, 72, 0.95);
	border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .flag-chip,
.dark-mode .flag-chip {
	background: rgba(255, 255, 255, 0.08);
	color: #e0e0e0;
}

[data-theme="dark"] .preview-cta,
.dark-mode .preview-cta {
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .hero-ghost,
.dark-mode .hero-ghost {
	border-color: rgba(255, 255, 255, 0.45);
	color: #f5f5f5;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .hero-metric,
.dark-mode .hero-metric {
	background: rgba(44, 55, 72, 0.95);
	border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .metric-label,
[data-theme="dark"] .muted,
.dark-mode .metric-label,
.dark-mode .muted {
	color: #9fa3b8;
}

[data-theme="dark"] .exam-card,
.dark-mode .exam-card {
	color: #e0e0e0;
}

[data-theme="dark"] .drop-zone,
.dark-mode .drop-zone {
	background: rgba(32, 40, 58, 0.8);
	border-color: rgba(255, 255, 255, 0.15);
}

/* ===== Dark Mode: Empty State & Drop Zone ===== */
[data-theme="dark"] .no-exams-section,
.dark-mode .no-exams-section {
	background: rgba(20, 27, 45, 0.6);
	border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .empty-icon,
.dark-mode .empty-icon {
	color: rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .empty-state h3,
.dark-mode .empty-state h3 {
	color: #e2e8f0;
}

[data-theme="dark"] .empty-state p,
.dark-mode .empty-state p {
	color: #94a3b8;
}

[data-theme="dark"] .drop-zone-simple,
.dark-mode .drop-zone-simple {
	background: rgba(30, 41, 59, 0.8);
	border-color: rgba(99, 102, 241, 0.25);
}

[data-theme="dark"] .drop-zone-simple:hover,
.dark-mode .drop-zone-simple:hover {
	background: rgba(30, 41, 59, 1);
	border-color: var(--primary);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .drop-zone-simple p,
.dark-mode .drop-zone-simple p {
	color: #94a3b8;
}

[data-theme="dark"] .drop-icon,
.dark-mode .drop-icon {
	color: rgba(99, 102, 241, 0.5);
}

@media (max-width: 768px) {
	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero,
	.exam-library {
		padding: 1.5rem;
	}

	.exam-selection {
		grid-template-columns: 1fr;
	}
}

/* Remove emoji from titles, use icons instead */
.interactive-features h3,
.progress-section h3 {
	font-family: var(--font-heading);
	font-size: var(--fs-section-title);
	font-weight: var(--fw-semibold);
	color: var(--text);
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	letter-spacing: -0.02em;
}

.interactive-features h3 i,
.progress-section h3 i {
	font-size: 1.75rem;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Remove emoji from h3 text */
.interactive-features h3::before,
.progress-section h3::before {
	content: '';
}

/* Feature Items - Compact Badge Style */
.features-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 1.5rem;
}

.feature-item {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.75rem 1.25rem;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
	-webkit-backdrop-filter: blur(15px);
	backdrop-filter: blur(15px);
	border-radius: 50px;
	border: 1.5px solid rgba(30, 60, 114, 0.12);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: var(--fw-medium);
	color: var(--text);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	white-space: nowrap;
	position: relative;
	overflow: hidden;
}

/* Subtle gradient shine effect */
.feature-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg,
		transparent,
		rgba(255, 255, 255, 0.4),
		transparent);
	transition: left 0.6s ease;
}

.feature-item:hover::before {
	left: 100%;
}

.feature-item:hover {
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 6px 20px rgba(30, 60, 114, 0.18);
	border-color: rgba(30, 60, 114, 0.25);
	background: linear-gradient(135deg,
		rgba(30, 60, 114, 0.08),
		rgba(0, 188, 242, 0.08));
}

/* Compact icon */
.feature-item i {
	font-size: 1.125rem;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: white;
	border-radius: 50%;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
	transition: all 0.3s ease;
}

.feature-item:hover i {
	transform: scale(1.15);
	box-shadow: 0 4px 12px rgba(30, 60, 114, 0.4);
}

/* Text styling */
.feature-item span {
	font-size: 0.9375rem;
	font-weight: var(--fw-medium);
	color: var(--text);
	line-height: 1.2;
	position: relative;
	z-index: 1;
}

/* Progress Section - Unified Typography */
.progress-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.progress-item {
	background: rgba(255, 255, 255, 0.95);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	padding: 0.9rem;
	border-radius: 10px;
	text-align: center;
	border: 1px solid rgba(30, 60, 114, 0.1);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	transition: all 0.3s ease;
}

.progress-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(30, 60, 114, 0.1);
}

.progress-label {
	font-family: var(--font-body);
	font-size: 0.7rem;
	font-weight: var(--fw-semibold);
	color: var(--text-light);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.4rem;
	display: block;
}

.progress-value {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: var(--fw-bold);
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	display: block;
}

/* Progress Action Buttons - Consistent Style */
.progress-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn-progress {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: var(--fw-semibold);
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: white;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	box-shadow: 0 4px 12px rgba(30, 60, 114, 0.25);
	letter-spacing: 0.01em;
	text-transform: none;
}

.btn-progress:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(30, 60, 114, 0.35);
}

.btn-progress i {
	font-size: 1rem;
}

/* Bottom Management Buttons - Simplified */
.exam-management-buttons {
	text-align: center;
	margin-top: 2rem;
	display: flex;
	gap: 1rem;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.btn-outline-sm {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: var(--fw-medium);
	padding: 0.625rem 1.25rem;
	border: 2px solid rgba(30, 60, 114, 0.2);
	background: rgba(255, 255, 255, 0.95);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--text);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-outline-sm:hover {
	border-color: var(--primary);
	background: var(--primary);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(30, 60, 114, 0.2);
}

.btn-outline-sm i {
	font-size: 1rem;
}

/* Hero Section Typography */
.hero .logo h1 {
	font-family: var(--font-heading);
	font-size: var(--fs-hero-title);
	font-weight: var(--fw-bold);
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: -0.02em;
	margin: 0;
}

.hero h2 {
	font-family: var(--font-heading);
	font-size: var(--fs-hero-subtitle);
	font-weight: var(--fw-normal);
	color: var(--text);
	margin-bottom: 0.5rem;
	letter-spacing: -0.01em;
}

.hero > p {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: var(--fw-normal);
	color: var(--text-light);
	margin-bottom: 2rem;
	line-height: 1.6;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .feature-item,
.dark-mode .feature-item {
	background: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(55, 65, 81, 0.85)) !important;
	border-color: rgba(255, 255, 255, 0.12) !important;
	color: #e0e0e0 !important;
}

[data-theme="dark"] .feature-item:hover,
.dark-mode .feature-item:hover {
	border-color: rgba(255, 255, 255, 0.25);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	background: linear-gradient(135deg,
		rgba(30, 60, 114, 0.25),
		rgba(0, 188, 242, 0.25));
}

[data-theme="dark"] .feature-item span,
.dark-mode .feature-item span {
	color: #e0e0e0 !important;
}

[data-theme="dark"] .progress-item,
.dark-mode .progress-item {
	background: rgba(30, 41, 59, 0.6) !important;
	border-color: rgba(255, 255, 255, 0.08) !important;
	color: #e2e8f0 !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

[data-theme="dark"] .progress-item:hover,
.dark-mode .progress-item:hover {
	background: rgba(30, 41, 59, 0.85) !important;
	border-color: rgba(0, 188, 242, 0.35) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
	transform: translateY(-2px);
}

[data-theme="dark"] .progress-label,
.dark-mode .progress-label {
	color: #94a3b8;
}

[data-theme="dark"] .btn-outline-sm,
.dark-mode .btn-outline-sm {
	background: rgba(45, 55, 72, 0.95);
	border-color: rgba(255, 255, 255, 0.2);
	color: #e0e0e0;
}

[data-theme="dark"] .btn-outline-sm:hover,
.dark-mode .btn-outline-sm:hover {
	background: var(--primary);
	border-color: var(--primary);
	color: white;
}

[data-theme="dark"] .hero h2,
[data-theme="dark"] .interactive-features h3,
[data-theme="dark"] .progress-section h3,
.dark-mode .hero h2,
.dark-mode .interactive-features h3,
.dark-mode .progress-section h3 {
	color: #e0e0e0;
}

[data-theme="dark"] .hero > p,
.dark-mode .hero > p {
	color: #a0a0a0;
}

/* Dark mode - Sidebar sections */
[data-theme="dark"] .sidebar > div,
.dark-mode .sidebar > div {
	background: rgba(45, 55, 72, 0.9);
	border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .sidebar > div h3,
[data-theme="dark"] .modules-and-resources h3,
.dark-mode .sidebar > div h3,
.dark-mode .modules-and-resources h3 {
	color: #e0e0e0;
}

[data-theme="dark"] .current-exam-indicator,
.dark-mode .current-exam-indicator {
	background: linear-gradient(135deg, rgba(30, 60, 114, 0.3), rgba(0, 188, 242, 0.25));
	color: var(--accent);
}

[data-theme="dark"] .info-card,
.dark-mode .info-card {
	background: rgba(30, 41, 59, 0.6);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .info-card:hover,
.dark-mode .info-card:hover {
	background: rgba(30, 41, 59, 0.85);
	border-color: rgba(0, 188, 242, 0.35);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	transform: translateY(-2px);
}

[data-theme="dark"] .info-card > span,
.dark-mode .info-card > span {
	color: #f8fafc;
}

[data-theme="dark"] .info-card small,
.dark-mode .info-card small {
	color: #94a3b8;
}

[data-theme="dark"] .info-card i,
.dark-mode .info-card i {
	text-shadow: 0 0 12px rgba(0, 188, 242, 0.35);
}

[data-theme="dark"] .modules-section h4,
[data-theme="dark"] .resources-section h4,
.dark-mode .modules-section h4,
.dark-mode .resources-section h4 {
	color: #94a3b8;
}

[data-theme="dark"] .modules-list li,
.dark-mode .modules-list li {
	background: rgba(30, 41, 59, 0.55);
	border-color: rgba(255, 255, 255, 0.06);
	color: #f1f5f9;
	transition: all 0.2s ease;
}

[data-theme="dark"] .modules-list li:hover,
.dark-mode .modules-list li:hover {
	background: rgba(30, 41, 59, 0.8);
	border-color: rgba(0, 188, 242, 0.25);
	transform: translateX(4px);
}

[data-theme="dark"] .modules-list li::before,
.dark-mode .modules-list li::before {
	color: var(--accent) !important;
	text-shadow: 0 0 8px rgba(0, 188, 242, 0.4);
}

[data-theme="dark"] .resources-compact a,
.dark-mode .resources-compact a {
	background: rgba(30, 41, 59, 0.55);
	border-color: rgba(255, 255, 255, 0.06);
	color: #38bdf8;
	transition: all 0.2s ease;
}

[data-theme="dark"] .resources-compact a:hover,
.dark-mode .resources-compact a:hover {
	background: rgba(30, 41, 59, 0.8);
	border-color: rgba(0, 188, 242, 0.35);
	color: var(--accent);
}

[data-theme="dark"] .resources-compact a i,
.dark-mode .resources-compact a i {
	text-shadow: 0 0 8px rgba(0, 188, 242, 0.4);
}

/* Dark mode - Exam Details Placeholder */
[data-theme="dark"] .exam-details-placeholder,
.dark-mode .exam-details-placeholder {
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
	border-color: rgba(0, 188, 242, 0.25);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .exam-details-header,
.dark-mode .exam-details-header {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .exam-details-title-area h2,
.dark-mode .exam-details-title-area h2 {
	color: #f8fafc;
}

[data-theme="dark"] .exam-details-title-area p,
.dark-mode .exam-details-title-area p {
	color: #94a3b8;
}

[data-theme="dark"] .exam-details-section,
.dark-mode .exam-details-section {
	background: rgba(30, 41, 59, 0.45);
	border-color: rgba(255, 255, 255, 0.06);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .exam-details-section h3,
.dark-mode .exam-details-section h3 {
	color: #f1f5f9;
}

/* Responsive Typography */
@media (max-width: 768px) {
	:root {
		--fs-hero-title: 2rem;
		--fs-hero-subtitle: 1.125rem;
		--fs-section-title: 1.25rem;
		--fs-body: 0.9375rem;
	}

	.features-grid {
		gap: 0.625rem;
	}

	.feature-item {
		padding: 0.625rem 1rem;
		font-size: 0.875rem;
	}

	.feature-item i {
		width: 28px;
		height: 28px;
		font-size: 1rem;
	}

	.feature-item span {
		font-size: 0.875rem;
	}

	.progress-summary {
		grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	}

	.btn-progress,
	.btn-outline-sm {
		font-size: 0.875rem;
		padding: 0.625rem 1rem;
	}

	.exam-details-content {
		grid-template-columns: 1fr;
	}

	.exam-details-placeholder {
		padding: 1.5rem;
	}

	.exam-details-title-area h2 {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	:root {
		--fs-hero-title: 1.75rem;
		--fs-hero-subtitle: 1rem;
		--fs-section-title: 1.125rem;
	}

	.features-grid {
		justify-content: center;
	}

	.feature-item {
		padding: 0.5rem 0.875rem;
		font-size: 0.8125rem;
	}

	.feature-item i {
		width: 26px;
		height: 26px;
		font-size: 0.9375rem;
	}

	.feature-item span {
		font-size: 0.8125rem;
	}

	.progress-value {
		font-size: 1.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Visual Refresh: Landing Flow ===== */
.home-board {
	max-width: 1120px;
	border-radius: 14px;
	padding: 1.25rem;
	gap: 1rem;
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.hero-header {
	align-items: flex-start;
	padding-bottom: 0.9rem;
	gap: 1.5rem;
}

.hero-branding .logo {
	margin-bottom: 0.35rem;
}

.hero-branding h1 {
	font-size: 1.35rem;
}

.hero-subtitle {
	max-width: 56ch;
}

.hero-public-link {
	border-radius: 8px;
	padding: 0.45rem 0.7rem;
}

.hero-stats {
	align-items: stretch;
}

.quick-actions {
	gap: 0.55rem;
}

.action-btn,
.btn-add-exam {
	border-radius: 8px;
	box-shadow: none;
}

.main-content {
	gap: 1rem;
}

.exam-library-section {
	padding: 1.1rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.72);
}

.section-header {
	margin-bottom: 1rem;
	align-items: center;
}

.exam-grid {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0.9rem;
}

.exam-card {
	min-height: 140px;
	border-radius: 10px;
	padding: 0.85rem;
	box-shadow: none;
	border-color: rgba(15, 23, 42, 0.08);
	gap: 0.5rem;
}

.exam-card:hover,
.exam-card.selected {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.exam-card .exam-icon {
	font-size: 1.35rem;
	margin-bottom: 0.15rem;
}

.exam-card .exam-title {
	font-size: 1.05rem;
}

.exam-card .exam-subtitle {
	font-size: 0.8rem;
	margin-bottom: 0.4rem;
}

.exam-card .exam-stats {
	margin-top: auto;
}

.exam-card .exam-card-actions {
	border-radius: 0 0 10px 10px;
}

.exam-card .exam-card-start,
.exam-card .exam-card-study {
	height: 34px;
	border-radius: 0;
	font-size: 0.8rem;
	padding: 0;
}

#compact-import-btn {
	min-height: 140px;
	background: rgba(20, 184, 166, 0.08) !important;
	border: 1.5px dashed rgba(20, 184, 166, 0.5);
	color: var(--text);
}

#compact-import-btn .exam-icon,
#compact-import-btn .exam-title,
#compact-import-btn .exam-subtitle,
#compact-import-btn .exam-stat-label {
	color: #0f766e;
	text-shadow: none;
}

#compact-import-btn .exam-stats {
	border-top: 1px solid rgba(15, 118, 110, 0.18);
}

#compact-import-btn .exam-badge {
	background: rgba(13, 148, 136, 0.1);
	color: #0f766e;
	font-weight: 700;
	border: 1px solid rgba(13, 148, 136, 0.25);
}

#compact-import-btn .exam-card-start {
	display: none;
}

.exam-details-placeholder {
	margin-top: 0;
	padding: 1rem;
	border-radius: 12px;
	border-width: 1px;
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
	scroll-margin-top: 24px;
}

.exam-grid > .exam-details-placeholder {
	grid-column: 1 / -1;
}

.exam-details-header {
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.85rem;
}

.exam-details-title-area h2 {
	font-size: 1.15rem;
	line-height: 1.2;
}

.exam-details-title-area p {
	font-size: 0.84rem;
}

.exam-details-actions {
	flex-shrink: 0;
	gap: 0.5rem;
}

#details-start-exam.btn-start-exam,
#details-start-study.btn-start-exam,
.btn-start-exam-inline {
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0.62rem 1rem !important;
	border-radius: 8px !important;
	font-size: 0.88rem !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	flex-direction: row !important;
	box-shadow: 0 8px 18px rgba(30, 60, 114, 0.18) !important;
}

#details-start-exam.btn-start-exam i,
#details-start-study.btn-start-exam i,
.btn-start-exam-inline i {
	font-size: 0.9rem !important;
}

.btn-study-inline {
	background: linear-gradient(135deg, #0f766e, #0ea5e9) !important;
}

.btn-review-inline {
	background: linear-gradient(135deg, #334155, #64748b) !important;
}

.btn-start-exam-inline.is-disabled,
.btn-start-exam-inline:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
}

.btn-close-details {
	border-radius: 8px;
	padding: 0.58rem 0.78rem;
	border-width: 1px;
}

.exam-details-content {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 0.85rem;
}

#details-modules-section {
	grid-column: 1 / -1;
}

.exam-details-section {
	padding: 0.85rem;
	border-radius: 10px;
}

.exam-details-section h3 {
	font-size: 0.9rem;
	margin-bottom: 0.7rem;
}

.exam-details-section .info-card-container {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
}

.exam-details-section .info-card {
	padding: 0.62rem;
	border-radius: 8px;
	box-shadow: none;
}

.exam-details-section .info-card i {
	font-size: 1rem;
}

.exam-details-section .info-card > span {
	font-size: 0.88rem;
}

.exam-details-section .info-card small {
	font-size: 0.62rem;
}

.progress-summary {
	gap: 0.55rem;
	margin-bottom: 0;
}

.progress-item {
	padding: 0.7rem;
	border-radius: 8px;
	box-shadow: none;
}

.progress-item .progress-value {
	font-size: 0.82rem;
	line-height: 1.25;
	word-break: normal;
	overflow-wrap: anywhere;
}

.attempt-history-content,
.attempt-review-content {
	max-width: 920px;
}

.attempt-history-subtitle {
	margin: -0.6rem 0 1rem;
	color: var(--text-light);
	font-size: 0.9rem;
}

.attempt-history-list,
.attempt-review-list {
	display: grid;
	gap: 0.75rem;
}

.attempt-history-card,
.attempt-review-item {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-left: 4px solid var(--primary);
	border-radius: 8px;
	padding: 0.85rem;
}

.attempt-history-card.passed,
.attempt-review-item.correct {
	border-left-color: #16a34a;
}

.attempt-history-card.failed,
.attempt-review-item.incorrect {
	border-left-color: #dc2626;
}

.attempt-review-item.skipped {
	border-left-color: #f59e0b;
}

.attempt-history-summary,
.attempt-review-item-header {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	align-items: flex-start;
}

.attempt-history-title,
.attempt-review-number {
	font-weight: 800;
	color: var(--text);
}

.attempt-history-date {
	color: var(--text-light);
	font-size: 0.82rem;
}

.attempt-history-metrics,
.attempt-review-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 0.5rem;
	margin: 0.75rem 0;
}

.attempt-small-metric {
	background: rgba(15, 23, 42, 0.04);
	border-radius: 7px;
	padding: 0.55rem;
	text-align: center;
}

.attempt-small-label,
.attempt-review-label {
	display: block;
	font-size: 0.68rem;
	font-weight: 750;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--text-light);
	margin-bottom: 0.18rem;
}

.attempt-small-value {
	font-size: 0.95rem;
	color: var(--text);
}

.attempt-history-actions,
.attempt-review-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.attempt-action-btn {
	border: 0;
	border-radius: 7px;
	padding: 0.55rem 0.8rem;
	font-weight: 750;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.attempt-action-btn.primary {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
}

.attempt-action-btn.secondary {
	background: rgba(15, 118, 110, 0.1);
	color: #0f766e;
}

.attempt-action-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.attempt-review-status {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-weight: 800;
	font-size: 0.8rem;
}

.attempt-review-status.correct { color: #15803d; }
.attempt-review-status.incorrect { color: #b91c1c; }
.attempt-review-status.skipped { color: #b45309; }

.attempt-review-question {
	margin: 0.75rem 0;
	font-weight: 650;
	line-height: 1.45;
}

.attempt-review-answers {
	display: grid;
	gap: 0.45rem;
}

.attempt-answer-row {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 0.6rem;
	align-items: baseline;
}

.attempt-answer-value.correct {
	color: #15803d;
}

.attempt-review-explanation {
	margin-top: 0.7rem;
	padding: 0.7rem;
	border-radius: 7px;
	background: rgba(15, 23, 42, 0.04);
}

.attempt-review-explanation p {
	margin: 0;
	line-height: 1.45;
	color: var(--text);
}

[data-theme="dark"] .attempt-history-card,
[data-theme="dark"] .attempt-review-item,
.dark-mode .attempt-history-card,
.dark-mode .attempt-review-item {
	background: rgba(15, 23, 42, 0.92);
	border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .attempt-small-metric,
[data-theme="dark"] .attempt-review-explanation,
.dark-mode .attempt-small-metric,
.dark-mode .attempt-review-explanation {
	background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
	.attempt-answer-row {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}
}

.modules-resources-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	align-items: start;
}

.modules-list,
.resources-compact {
	gap: 0.42rem;
}

.modules-list li,
.resources-compact a {
	padding: 0.48rem 0.65rem;
	border-radius: 7px;
	font-size: 0.82rem;
}

[data-theme="dark"] #compact-import-btn,
.dark-mode #compact-import-btn {
	background: rgba(20, 184, 166, 0.12) !important;
	border-color: rgba(94, 234, 212, 0.38);
}

[data-theme="dark"] #compact-import-btn .exam-icon,
[data-theme="dark"] #compact-import-btn .exam-title,
[data-theme="dark"] #compact-import-btn .exam-subtitle,
[data-theme="dark"] #compact-import-btn .exam-stat-label,
.dark-mode #compact-import-btn .exam-icon,
.dark-mode #compact-import-btn .exam-title,
.dark-mode #compact-import-btn .exam-subtitle,
.dark-mode #compact-import-btn .exam-stat-label {
	color: #99f6e4;
}

[data-theme="dark"] #compact-import-btn .exam-badge,
.dark-mode #compact-import-btn .exam-badge {
	background: rgba(45, 212, 191, 0.15);
	color: #2dd4bf;
	border: 1px solid rgba(45, 212, 191, 0.3);
}

[data-theme="dark"] #compact-import-btn .exam-stats,
.dark-mode #compact-import-btn .exam-stats {
	border-top-color: rgba(153, 246, 228, 0.2);
}

[data-theme="dark"] .exam-card .exam-card-start,
[data-theme="dark"] .exam-card .exam-card-study,
.dark-mode .exam-card .exam-card-start,
.dark-mode .exam-card .exam-card-study {
	background: rgba(30, 41, 59, 0.96) !important;
	color: #f3f4f6 !important;
	border: none !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .exam-card .exam-card-start:hover,
[data-theme="dark"] .exam-card .exam-card-study:hover,
.dark-mode .exam-card .exam-card-start:hover,
.dark-mode .exam-card .exam-card-study:hover {
	background: rgba(30, 41, 59, 1) !important;
	color: var(--accent) !important;
}

@media (max-width: 900px) {
	.exam-details-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.exam-details-actions {
		width: 100%;
	}

	#details-start-exam.btn-start-exam,
	#details-start-study.btn-start-exam,
	.btn-start-exam-inline {
		flex: 1;
		justify-content: center;
	}

	.exam-details-content {
		grid-template-columns: 1fr;
	}

	.exam-details-section .info-card-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.home-board {
		padding: 0.85rem;
	}

	.hero-public-link {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.2rem;
	}

	.exam-details-actions {
		flex-direction: column;
	}

	#details-start-exam.btn-start-exam,
	#details-start-study.btn-start-exam,
	.btn-start-exam-inline,
	.btn-close-details {
		width: 100% !important;
		justify-content: center;
	}
}

@media (max-width: 768px) {
	.modules-resources-grid {
		grid-template-columns: 1fr !important;
		gap: 1rem !important;
	}
}
