/* 
* File: css/quiz-theme.css
* Styles for the Drupal quiz theme (Bootstrap-based, same as HTML prototype)
*/

	body {
		background: #e5f4ff;
		font-family: "Segoe UI", sans-serif;
		color: #263b4a;
	}

	.dashboard-wrapper {
		max-width: 1200px;
		margin: 50px auto;
		background: #eef8ff;
		border-radius: 25px;
		overflow: hidden;
		box-shadow: 0 15px 40px rgba(0, 80, 120, .15);
	}

	/* Header */

	.dashboard-header {
		background: linear-gradient(135deg, #159ccc, #46b7db);
		padding: 25px 35px;
	}

	.logo {
		color: #fff;
		font-size: 32px;
		font-weight: 800;
	}

	.student-profile {
		background: #fff;
		border-radius: 30px;
		padding: 7px 18px 7px 8px;
		color: #587080;
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.student-avatar {
		width: 38px;
		height: 38px;
		background: #e1f2fa;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #36a6d2;
	}

	/* Navigation */

	.dashboard-nav {
		background: #eef8ff;
		border-bottom: 1px solid #d5e7ef;
	}

	.dashboard-nav .nav-link {
		color: #6b8493;
		padding: 20px 25px;
		position: relative;
	}

	.dashboard-nav .nav-link i {
		margin-right: 8px;
	}

	.dashboard-nav .nav-link.active {
		color: #159ccc;
	}

	.dashboard-nav .nav-link.active::after {
		content: "";
		position: absolute;
		bottom: 0;
		left: 15px;
		right: 15px;
		height: 4px;
		background: #159ccc;
		border-radius: 5px 5px 0 0;
	}

	/* Content */

	.dashboard-content {
		padding: 35px;
	}

	.section-title {
		font-size: 20px;
		font-weight: 800;
		margin-bottom: 20px;
	}

	/* Focus cards */

	.focus-card {
		min-height: 110px;
		border-radius: 16px;
		color: #fff;
		padding: 20px;
		display: flex;
		align-items: center;
		gap: 18px;
		margin-bottom: 20px;
	}

	.focus-science {
		background: linear-gradient(135deg, #249bd4, #50afe6);
	}

	.focus-history {
		background: linear-gradient(135deg, #f0b52c, #f5ca55);
	}

	.focus-icon {
		width: 65px;
		height: 65px;
		min-width: 65px;
		border-radius: 50%;
		background: rgba(0, 0, 0, .12);
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 28px;
	}

	.focus-title {
		font-size: 20px;
		font-weight: 700;
	}

	.focus-topic {
		font-size: 15px;
	}

	/* Subject cards */

	.subject-card {
		border: 0;
		border-radius: 16px;
		color: #fff;
		min-height: 110px;
		overflow: hidden;
		transition: .2s;
	}

	.subject-card:hover {
		transform: translateY(-3px);
	}

	.subject-card .card-body {
		padding: 18px;
	}

	.subject-icon {
		width: 60px;
		height: 60px;
		border-radius: 50%;
		background: rgba(0, 0, 0, .12);
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 28px;
	}

	.subject-name {
		font-size: 20px;
		font-weight: 700;
	}

	.subject-red {
		background: linear-gradient(135deg, #ed414d, #f45f68);
	}

	.subject-blue {
		background: linear-gradient(135deg, #249ed5, #4db8df);
	}

	.subject-green {
		background: linear-gradient(135deg, #51bb59, #6ccc73);
	}

	.subject-purple {
		background: linear-gradient(135deg, #9552d6, #b66be7);
	}

	/* Progress */

	.subject-progress {
		height: 7px;
		background: rgba(0, 0, 0, .15);
	}

	.subject-progress .progress-bar {
		background: #fff;
	}

	.continue-btn {
		color: #fff;
		background: rgba(255, 255, 255, .18);
		border: 0;
		border-radius: 20px;
		padding: 7px 14px;
		font-size: 14px;
	}

	.continue-btn:hover {
		background: rgba(255, 255, 255, .3);
		color: #fff;
	}

	/* Progress Box */

	.progress-box,
	.assignment-box {
		background: #fff;
		border: 0;
		border-radius: 15px;
		padding: 25px;
		box-shadow: 0 5px 15px rgba(0, 80, 100, .06);
	}

	.overall-progress {
		height: 10px;
	}

	/* Stats */

	.stat-card {
		background: #fff;
		border: 0;
		border-radius: 15px;
		padding: 20px;
		text-align: center;
	}

	.stat-number {
		font-size: 28px;
		font-weight: 800;
		color: #159ccc;
	}

	.stat-label {
		color: #718693;
		font-size: 14px;
	}

	/* Mobile */

	@media (max-width: 768px) {

		.dashboard-wrapper {
			margin: 15px;
			border-radius: 15px;
		}

		.dashboard-header {
			padding: 20px;
		}

		.logo {
			font-size: 24px;
		}

		.dashboard-content {
			padding: 20px;
		}

		.dashboard-nav {
			overflow-x: auto;
		}

		.dashboard-nav .nav-link {
			white-space: nowrap;
			padding: 15px;
		}

		.student-profile span {
			display: none;
		}

		.subject-card {
			min-height: 100px;
		}

	}

/***** For Quiz list ****************/

.quiz-wrapper {
	max-width: 1100px;
	margin: 40px auto;
}


/* ===================================
   HEADER
=================================== */

.page-header {
	background: linear-gradient(
		135deg,
		#159ccc,
		#48b9dd
	);

	color: #fff;

	border-radius: 20px;

	padding: 30px;

	margin-bottom: 25px;

	box-shadow:
		0 10px 25px rgba(0, 100, 150, .15);
}


.back-btn {
	color: #fff;

	text-decoration: none;

	font-size: 14px;

	opacity: .9;
}

.back-btn:hover {
	color: #fff;
	opacity: 1;
}


.subject-icon {
	width: 70px;
	height: 70px;

	background: rgba(0, 0, 0, .12);

	border-radius: 18px;

	display: flex;
	align-items: center;
	justify-content: center;

	font-size: 32px;
}


.subject-title {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 5px;
}


.subject-description {
	opacity: .9;
	font-size: 15px;
}


/* ===================================
   STATS
=================================== */

.quiz-stats {
	background: rgba(255,255,255,.15);

	border-radius: 12px;

	padding: 15px 20px;
}


.quiz-stats-number {
	font-size: 24px;
	font-weight: 800;
}


.quiz-stats-label {
	font-size: 13px;
	opacity: .9;
}


/* ===================================
   QUIZ AREA
=================================== */

.quiz-section {
	background: #eef9ff;

	border-radius: 20px;

	padding: 30px;

	box-shadow:
		0 8px 25px rgba(0, 100, 150, .08);
}


.section-title {
	font-size: 21px;
	font-weight: 800;

	margin-bottom: 20px;
}


/* ===================================
   QUIZ CARD
=================================== */

.quiz-card {
	background: #fff;

	border-radius: 16px;

	border: 1px solid #e2edf2;

	padding: 20px;

	margin-bottom: 15px;

	transition: all .2s ease;
}


.quiz-card:hover {
	transform: translateY(-2px);

	box-shadow:
		0 8px 20px rgba(0, 100, 150, .10);

	border-color: #b9ddea;
}


.quiz-icon {
	width: 55px;
	height: 55px;

	min-width: 55px;

	border-radius: 15px;

	display: flex;
	align-items: center;
	justify-content: center;

	font-size: 23px;

	color: #fff;

	background: #37a9d5;
}


.quiz-icon.green {
	background: #55bd68;
}


.quiz-icon.orange {
	background: #f2b83e;
}


.quiz-icon.purple {
	background: #9a5bd5;
}


.quiz-title {
	font-size: 18px;

	font-weight: 700;

	margin-bottom: 5px;
}


.quiz-meta {
	color: #7a8e9b;

	font-size: 13px;
}


.quiz-meta i {
	margin-right: 4px;
}


/* ===================================
   PROGRESS
=================================== */

.quiz-progress {
	width: 130px;
}


.progress {
	height: 7px;

	background: #e7eef1;

	border-radius: 20px;
}


.progress-bar {
	border-radius: 20px;
}


.score {
	font-size: 13px;

	font-weight: 700;

	color: #54ad68;
}


/* ===================================
   BUTTONS
=================================== */

.start-btn {
	background: #159ccc;

	color: #fff;

	border: none;

	border-radius: 25px;

	padding: 9px 20px;

	font-size: 14px;

	font-weight: 600;

	text-decoration: none;

	display: inline-block;
}


.start-btn:hover {
	background: #108ab5;

	color: #fff;
}


.continue-btn {
	background: #e5f6fc;

	color: #159ccc;

	border: 1px solid #bde3ef;

	border-radius: 25px;

	padding: 8px 18px;

	font-size: 14px;

	font-weight: 600;

	text-decoration: none;
}


.continue-btn:hover {
	background: #159ccc;

	color: #fff;
}


.completed-btn {
	background: #eaf8ed;

	color: #4ca762;

	border: 1px solid #c9e8cf;

	border-radius: 25px;

	padding: 8px 18px;

	font-size: 14px;

	font-weight: 600;
}


/* ===================================
   BADGE
=================================== */

.completed-badge {
	background: #eaf8ed;

	color: #4ca762;

	font-size: 11px;

	font-weight: 700;

	padding: 4px 9px;

	border-radius: 20px;
}


.new-badge {
	background: #fff4db;

	color: #d7951c;

	font-size: 11px;

	font-weight: 700;

	padding: 4px 9px;

	border-radius: 20px;
}


/* ===================================
   MOBILE
=================================== */

@media (max-width: 768px) {

	.quiz-wrapper {
		margin: 15px;
	}


	.page-header {
		padding: 20px;
	}


	.subject-title {
		font-size: 25px;
	}


	.quiz-section {
		padding: 20px 15px;
	}


	.quiz-card {
		padding: 15px;
	}


	.quiz-progress {
		width: 100px;
	}


	.quiz-action {
		margin-top: 15px;
	}

}

