/* Exam Selection Corporate Dashboard Styles */
/* Professional dashboard with charts and data tables */

/* ===== RESET AND BASE STYLES ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
		Cantarell, sans-serif;
	line-height: 1.6;
	color: #1f2937;
	background: #f8fafc;
	min-height: 100vh;
	font-weight: 400;
}

/* ===== PAGE CONTAINER ===== */
.page-container {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ===== HEADER SECTION ===== */
.header {
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	padding: 1.5rem 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.logo-section {
	flex-shrink: 0;
}

.logo {
	height: 50px;
	width: auto;
}

.header-text {
	flex: 1;
}

.page-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.25rem;
	line-height: 1.2;
	text-align: left;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.available-badge {
	display: inline-block;
	background: linear-gradient(135deg, #10b981, #059669);
	color: white;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%,
	100% {
		box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
		transform: scale(1.02);
	}
}

.page-subtitle {
	font-size: 0.875rem;
	color: #6b7280;
	font-weight: 500;
	text-align: left;
}

.header-right {
	flex-shrink: 0;
}

.dashboard-meta {
	display: flex;
	gap: 2rem;
}

.meta-item {
	text-align: right;
}

.meta-label {
	display: block;
	font-size: 0.75rem;
	color: #6b7280;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.25rem;
}

.meta-value {
	display: block;
	font-size: 1rem;
	color: #1f2937;
	font-weight: 600;
}

/* ===== MAIN CONTENT ===== */
.main-content {
	flex: 1;
	padding: 2rem 0;
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
	padding-left: 2rem;
	padding-right: 2rem;
}

/* ===== LOADING SECTION ===== */
.loading-section {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 400px;
}

.loading-spinner {
	text-align: center;
}

.spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #e5e7eb;
	border-top: 4px solid #3b82f6;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 1rem;
}

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

.loading-text {
	color: #6b7280;
	font-size: 1rem;
	font-weight: 500;
}

/* ===== EXAM SELECTION SECTION ===== */
.exam-selection-section {
	opacity: 0;
	animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
	to {
		opacity: 1;
	}
}

/* ===== METRICS ROW ===== */
.metrics-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.metric-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	border: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	gap: 1rem;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.metric-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #3b82f6, #1d4ed8);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.metric-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	border-color: #e2e8f0;
}

.metric-card:hover::before {
	opacity: 1;
}

.metric-icon {
	font-size: 1.75rem;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	border-radius: 10px;
	flex-shrink: 0;
	border: 1px solid #e2e8f0;
	transition: all 0.3s ease;
}

.metric-card:hover .metric-icon {
	transform: scale(1.05);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.metric-content {
	flex: 1;
	min-width: 0;
}

.metric-value {
	font-size: 2rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 0.25rem;
	line-height: 1;
	letter-spacing: -0.02em;
}

.metric-label {
	font-size: 0.75rem;
	color: #64748b;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.2;
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.chart-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e7eb;
}

.chart-header {
	margin-bottom: 1.5rem;
}

.chart-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.5rem;
}

.chart-subtitle {
	color: #6b7280;
	font-size: 0.875rem;
	font-weight: 500;
}

.chart-content {
	min-height: 200px;
}

/* ===== STATUS CHART ===== */
.status-chart {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.status-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: #f9fafb;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.status-indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}

.status-indicator.ready {
	background: #10b981;
}

.status-indicator.coming-soon {
	background: #f59e0b;
}

.status-label {
	flex: 1;
	font-weight: 500;
	color: #374151;
}

.status-count {
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
}

/* ===== CATEGORY CHART ===== */
.category-chart {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.category-item {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1.25rem;
	background: #f9fafb;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	transition: all 0.3s ease;
}

.category-item:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
	transform: translateX(4px);
}

.category-info {
	flex: 1;
	min-width: 0;
}

.category-label {
	font-weight: 600;
	color: #1f2937;
	font-size: 1rem;
	margin-bottom: 0.25rem;
	line-height: 1.2;
}

.category-details {
	display: flex;
	gap: 1rem;
	font-size: 0.75rem;
	color: #6b7280;
	font-weight: 500;
}

.category-exams,
.category-questions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.category-bar {
	flex: 1;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	min-width: 120px;
	max-width: 200px;
}

.category-progress {
	height: 100%;
	background: linear-gradient(90deg, #3b82f6, #1d4ed8);
	border-radius: 4px;
	transition: width 0.3s ease;
}

.category-value {
	font-size: 0.875rem;
	font-weight: 700;
	color: #1f2937;
	min-width: 40px;
	text-align: right;
}

/* ===== TABLE SECTION ===== */
.table-section {
	background: #ffffff;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e7eb;
	margin-bottom: 3rem;
}

.table-header {
	margin-bottom: 1.5rem;
}

.table-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.5rem;
}

.table-subtitle {
	color: #6b7280;
	font-size: 0.875rem;
	font-weight: 500;
}

.table-container {
	overflow-x: auto;
	max-height: 400px; /* Fixed height for scrollable area */
	border-radius: 12px;
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.1),
		0 2px 4px -1px rgba(0, 0, 0, 0.06);
	background: white;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	background: white;
}

.data-table thead {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	position: sticky;
	top: 0;
	z-index: 10;
}

.data-table th {
	padding: 1rem 1.5rem;
	text-align: left;
	font-weight: 600;
	color: white;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.75rem;
	border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.data-table tbody {
	max-height: 350px; /* Leave space for header */
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 #f1f5f9;
	position: relative;
}

/* Add subtle fade effect to indicate scrollable content */
.data-table tbody::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 20px;
	background: linear-gradient(
		to bottom,
		transparent,
		rgba(255, 255, 255, 0.8)
	);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.data-table tbody:hover::after {
	opacity: 1;
}

.data-table tbody::-webkit-scrollbar {
	width: 6px;
}

.data-table tbody::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 3px;
}

.data-table tbody::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
	transition: background 0.3s ease;
}

.data-table tbody::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

.data-table td {
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #f3f4f6;
	color: #374151;
	vertical-align: middle;
}

.data-table tbody tr {
	transition: all 0.3s ease;
}

.data-table tbody tr:hover {
	background-color: #f8fafc;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.data-table tbody tr:hover .last-updated {
	color: #1f2937;
}

/* Highlight rows with NEW badges */
.data-table tbody tr:has(.new-badge) {
	background: linear-gradient(90deg, #fef3f2 0%, #ffffff 100%);
	border-left: 3px solid #ef4444;
}

.data-table tbody tr:has(.new-badge):hover {
	background: linear-gradient(90deg, #fee2e2 0%, #f8fafc 100%);
}

.status-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.status-badge.ready {
	background: #d1fae5;
	color: #065f46;
}

.status-badge.coming-soon {
	background: #fef3c7;
	color: #92400e;
}

.status-badge.completed {
	background: #d1fae5;
	color: #065f46;
}

/* ===== CATEGORY BADGES ===== */
.category-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.375rem 0.75rem;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: var(--category-color);
	color: white;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.category-badge:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.category-badge.category-pmp {
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.category-badge.category-telecom {
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.category-badge.category-datasci {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.category-badge.category-other {
	background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* ===== LAST UPDATED TIMESTAMPS ===== */
.last-updated {
	font-size: 0.875rem;
	color: #6b7280;
	font-weight: 400;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	transition: all 0.2s ease;
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	letter-spacing: 0.025em;
	animation: fadeInUp 0.3s ease-out;
}

.last-updated::before {
	content: "🕒";
	font-size: 0.875rem;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.last-updated:hover {
	color: #374151;
}

.last-updated:hover::before {
	opacity: 0.8;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ===== SORT INDICATOR ===== */
.sort-indicator {
	color: #6b7280;
	font-weight: 500;
	position: relative;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.sort-indicator::after {
	content: "↓";
	margin-left: 0.375rem;
	font-size: 0.75rem;
	color: #3b82f6;
	opacity: 0.6;
	transition: all 0.2s ease;
}

.sort-indicator:hover {
	color: #374151;
}

.sort-indicator:hover::after {
	opacity: 0.8;
}

/* ===== NEW BADGE ===== */
.new-badge {
	display: inline-flex;
	align-items: center;
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: white;
	font-size: 0.625rem;
	font-weight: 700;
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	margin-left: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	box-shadow: 0 2px 4px rgba(239, 68, 68, 0.25);
	animation: pulse 2s infinite;
	position: relative;
	overflow: hidden;
}

.new-badge::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.2),
		transparent
	);
	animation: shine 3s infinite;
}

@keyframes shine {
	0% {
		left: -100%;
	}
	50% {
		left: 100%;
	}
	100% {
		left: 100%;
	}
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.8;
		transform: scale(1.05);
	}
}

/* ===== CARDS SECTION ===== */
.cards-section {
	margin-top: 2rem;
}

.section-header {
	text-align: center;
	margin-bottom: 2rem;
}

.section-title {
	font-size: 1.75rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.5rem;
}

.section-description {
	font-size: 1rem;
	color: #6b7280;
	max-width: 600px;
	margin: 0 auto;
}

.exam-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.exam-cards-container {
	width: 100%;
}

/* ===== EXAM CARD ===== */
.exam-card-wrapper {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e7eb;
	transition: all 0.3s ease;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.exam-card-wrapper:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-color: #d1d5db;
}

.exam-card {
	padding: 1.5rem;
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.exam-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--exam-color, #3b82f6);
	border-radius: 12px 12px 0 0;
}

.exam-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.exam-subtitle {
	color: #6b7280;
	font-size: 0.875rem;
	margin-bottom: 1rem;
	line-height: 1.5;
}

.exam-details-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding: 0.75rem;
	background: #f9fafb;
	border-radius: 6px;
	border: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.exam-details-row span {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: #6b7280;
	font-weight: 500;
}

.exam-details-row i {
	color: #3b82f6;
	font-size: 0.875rem;
}

/* ===== START EXAM BUTTON ===== */
.start-exam-btn {
	width: 100%;
	background: #ffffff;
	color: #3b82f6;
	border: 2px solid #3b82f6;
	border-radius: 8px;
	padding: 0.875rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-decoration: none;
	margin-top: auto;
	flex-shrink: 0;
}

.start-exam-btn:hover:not(:disabled) {
	background: #3b82f6;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.start-exam-btn:disabled {
	background: #f3f4f6;
	color: #9ca3af;
	border-color: #d1d5db;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* ===== FOOTER ===== */
.footer {
	background: #ffffff;
	border-top: 1px solid #e5e7eb;
	padding: 1.5rem 0;
	margin-top: auto;
}

.footer-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem;
	text-align: center;
}

.footer-text {
	color: #6b7280;
	font-size: 0.875rem;
}

.date-display {
	background: #f3f4f6;
	padding: 0.75rem 1.25rem;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.current-date {
	font-size: 0.875rem;
	color: #6b7280;
	font-weight: 500;
}

/* ===== LEARNING MILESTONES ANIMATION ===== */
.learning-milestones {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 20px;
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
	overflow: hidden;
	position: relative;
}

.learning-milestones::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
	pointer-events: none;
}

.milestones-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	position: relative;
	z-index: 1;
}

.milestone-item {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 16px;
	padding: 1.5rem;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
	animation: slideInUp 0.6s ease-out;
}

.milestone-item:nth-child(1) {
	animation-delay: 0.1s;
}
.milestone-item:nth-child(2) {
	animation-delay: 0.2s;
}
.milestone-item:nth-child(3) {
	animation-delay: 0.3s;
}

.milestone-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.milestone-icon {
	font-size: 2rem;
	margin-bottom: 1rem;
	display: block;
}

.milestone-title {
	font-size: 1rem;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.milestone-content {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* Progress Bar Styles */
.progress-bar {
	width: 100%;
	height: 8px;
	background: #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #3b82f6, #1d4ed8);
	border-radius: 4px;
	width: 0%;
	transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
	animation: progressFill 2s ease-out forwards;
}

.progress-text {
	font-size: 0.875rem;
	font-weight: 600;
	color: #64748b;
	text-align: center;
}

/* Progress Circle Styles */
.progress-circle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.circle-svg {
	transform: rotate(-90deg);
}

.circle-bg {
	fill: none;
	stroke: #e2e8f0;
}

.circle-fill {
	fill: none;
	stroke: #3b82f6;
	stroke-linecap: round;
	stroke-dasharray: 0 157; /* 2 * π * 25 */
	transition: stroke-dasharray 1.5s cubic-bezier(0.4, 0, 0.2, 1);
	animation: circleFill 2s ease-out forwards;
}

.circle-text {
	position: absolute;
	font-size: 1rem;
	font-weight: 700;
	color: #1e293b;
}

/* Animations */
@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes progressFill {
	to {
		width: var(--progress-width);
	}
}

@keyframes circleFill {
	to {
		stroke-dasharray: var(--progress-dash) 157;
	}
}

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

	.metrics-row {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: 1.25rem;
	}
}

@media (max-width: 1024px) {
	.header-content {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.header-left {
		flex-direction: column;
		gap: 1rem;
	}

	.dashboard-meta {
		justify-content: center;
	}

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

	.exam-cards-container {
		width: 100%;
	}

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

	.subject-tab-content .exam-grid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	}
}

@media (max-width: 768px) {
	.header {
		padding: 1rem 0;
	}

	.header-content {
		padding: 0 1rem;
	}

	.main-content {
		padding: 1.5rem 1rem;
	}

	.page-title {
		font-size: 1.5rem;
		flex-direction: column;
		align-items: flex-start;
	}

	.available-badge {
		font-size: 0.65rem;
		padding: 0.2rem 0.6rem;
		margin-top: 0.25rem;
	}

	.page-subtitle {
		font-size: 0.875rem;
	}

	.section-title {
		font-size: 1.5rem;
	}

	.metrics-row {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.metric-card {
		padding: 1.5rem;
	}

	.metric-icon {
		width: 60px;
		height: 60px;
		font-size: 2rem;
	}

	.metric-value {
		font-size: 2rem;
	}

	.exam-cards-container {
		width: 100%;
	}

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

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

	.exam-card {
		padding: 1rem;
	}

	.exam-details-row {
		flex-direction: column;
		gap: 0.5rem;
	}

	.chart-card {
		padding: 1.5rem;
	}

	.table-section {
		padding: 1.5rem;
	}

	.table-container {
		max-height: 300px; /* Smaller height on mobile */
	}

	.data-table {
		font-size: 0.75rem;
	}

	.data-table th,
	.data-table td {
		padding: 0.75rem 0.5rem;
	}

	.data-table tbody {
		max-height: 250px; /* Smaller scrollable area on mobile */
	}

	.category-badge {
		padding: 0.25rem 0.5rem;
		font-size: 0.625rem;
	}

	.last-updated {
		font-size: 0.75rem;
		gap: 0.25rem;
	}

	.last-updated::before {
		font-size: 0.75rem;
	}

	.new-badge {
		font-size: 0.5rem;
		padding: 0.125rem 0.25rem;
	}

	.learning-milestones {
		padding: 1.5rem;
		margin-bottom: 1.5rem;
	}

	.milestones-container {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.milestone-item {
		padding: 1.25rem;
	}

	.milestone-icon {
		font-size: 1.75rem;
	}

	.milestone-title {
		font-size: 1rem;
	}

	.milestone-description {
		font-size: 0.8rem;
	}
}

@media (max-width: 480px) {
	.header-content {
		padding: 0 1rem;
	}

	.main-content {
		padding: 1rem;
	}

	.page-title {
		font-size: 1.25rem;
		flex-direction: column;
		align-items: flex-start;
	}

	.available-badge {
		font-size: 0.6rem;
		padding: 0.15rem 0.5rem;
		margin-top: 0.25rem;
	}

	.metric-card {
		padding: 1.25rem;
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.metric-icon {
		width: 50px;
		height: 50px;
		font-size: 1.75rem;
	}

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

	.exam-card {
		padding: 1rem;
	}

	.start-exam-btn {
		padding: 0.75rem 1rem;
		font-size: 0.875rem;
	}

	.chart-card {
		padding: 1rem;
	}

	.table-section {
		padding: 1rem;
	}

	.table-container {
		max-height: 250px; /* Even smaller height on very small screens */
	}

	.data-table tbody {
		max-height: 200px; /* Smaller scrollable area on very small screens */
	}

	.category-badge {
		padding: 0.25rem 0.375rem;
		font-size: 0.5rem;
	}

	.last-updated {
		font-size: 0.625rem;
		gap: 0.125rem;
	}

	.last-updated::before {
		font-size: 0.625rem;
	}

	.new-badge {
		font-size: 0.375rem;
		padding: 0.125rem 0.25rem;
	}
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

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

/* ===== FOCUS STATES ===== */
.start-exam-btn:focus {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
	.header,
	.footer,
	.start-exam-btn {
		display: none;
	}

	.main-content {
		padding: 0;
	}

	.exam-card-wrapper,
	.chart-card,
	.table-section {
		break-inside: avoid;
		box-shadow: none;
		border: 1px solid #000;
	}
}

/* ===== SUBJECT TABS STYLES ===== */
.subject-tabs-container {
	width: 100%;
	margin-top: 2rem;
}

.subject-tabs-header {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
	border-bottom: 2px solid #e5e7eb;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.subject-tabs-header::-webkit-scrollbar {
	display: none;
}

.subject-tab {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: #f9fafb;
	border: none;
	border-radius: 12px 12px 0 0;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	font-weight: 500;
	color: #6b7280;
	position: relative;
	min-width: 200px;
}

.subject-tab:hover {
	background: #f3f4f6;
	color: #374151;
	transform: translateY(-2px);
}

.subject-tab.active {
	background: var(--subject-color, #3b82f6);
	color: white;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.subject-tab.active::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--subject-color, #3b82f6);
}

.subject-tab i {
	font-size: 1.25rem;
	flex-shrink: 0;
}

.subject-tab span {
	font-size: 0.875rem;
}

.exam-count {
	background: rgba(255, 255, 255, 0.2);
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 600;
}

.subject-tab.active .exam-count {
	background: rgba(255, 255, 255, 0.3);
}

.subject-tabs-content {
	position: relative;
}

.subject-tab-content {
	display: none;
	animation: fadeIn 0.3s ease-in-out;
}

.subject-tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive design for subject tabs */
@media (max-width: 768px) {
	.subject-tabs-header {
		gap: 0.5rem;
		margin-bottom: 1.5rem;
	}

	.subject-tab {
		padding: 0.75rem 1rem;
		min-width: 160px;
		font-size: 0.875rem;
	}

	.subject-tab i {
		font-size: 1rem;
	}

	.exam-count {
		padding: 0.125rem 0.375rem;
		font-size: 0.625rem;
	}
}

@media (max-width: 480px) {
	.subject-tab {
		min-width: 140px;
		padding: 0.625rem 0.875rem;
		font-size: 0.75rem;
	}

	.subject-tab i {
		font-size: 0.875rem;
	}

	.exam-count {
		padding: 0.125rem 0.25rem;
		font-size: 0.5rem;
	}
}

/* Enhanced exam grid for subject tabs */
.subject-tab-content .exam-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 1.5rem;
	padding: 1rem 0;
	width: 100%;
}

@media (max-width: 768px) {
	.subject-tab-content .exam-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* Subject-specific styling */
.subject-tab[data-subject="Project Management"] {
	--subject-color: #3b82f6;
}

.subject-tab[data-subject="Telecommunication"] {
	--subject-color: #8b5cf6;
}

.subject-tab[data-subject="Data Science"] {
	--subject-color: #10b981;
}

/* Hover effects for subject tabs */
.subject-tab:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subject-tab.active:hover {
	transform: translateY(-1px);
}

/* Smooth transitions */
.subject-tab,
.subject-tab-content {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
