/**
 * Student Portal Public CSS.
 *
 * Driving Mock Test Portal — Phase 3 Styles.
 */

.dmtp-portal-container {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1e293b;
}

/* ── Stylish Student Portal Header ── */
.dmtp-portal-header {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #1d4ed8 100%);
	border-radius: 16px;
	padding: 16px 24px;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	overflow: hidden;
}

.dmtp-portal-header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
	pointer-events: none;
	border-radius: 50%;
}

.dmtp-brand-icon-box {
	width: 44px;
	height: 44px;
	min-width: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dmtp-brand-title {
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	color: #ffffff;
}

.dmtp-brand-subtitle {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.7);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

.dmtp-live-pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #10b981;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: dmtp-pulse 2s infinite;
}

@keyframes dmtp-pulse {
	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 6px rgba(16, 185, 129, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

.dmtp-header-user-pill {
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	padding: 6px 14px;
	border-radius: 50px;
	transition: all 0.25s ease;
}

.dmtp-header-user-pill:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.25);
}

.dmtp-user-name {
	font-size: 0.88rem;
	line-height: 1.2;
}

.dmtp-user-email {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.68);
	display: block;
}

.dmtp-avatar-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	border: 2px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	font-size: 1rem;
	overflow: hidden;
}

.dmtp-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dmtp-user-status-indicator {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background-color: #10b981;
	border: 2px solid #0f172a;
}

.dmtp-sidebar-toggle-btn {
	border-color: rgba(255, 255, 255, 0.25);
	color: #ffffff;
	border-radius: 10px;
	padding: 6px 12px;
}

.dmtp-sidebar-toggle-btn:hover {
	background-color: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.4);
}

.style-max-h-300 {
	max-height: 300px;
	object-fit: contain;
}

.dmtp-sidebar-menu .list-group-item {
	font-weight: 700 !important;
	font-size: 0.93rem;
	letter-spacing: 0.01em;
	transition: all 0.2s ease;
}

.dmtp-sidebar-menu .list-group-item .width-20 {
	width: 20px;
	display: inline-block;
	text-align: center;
}

.dmtp-sidebar-menu .list-group-item.active {
	background-color: #1d4ed8;
	border-color: #1d4ed8;
	color: #ffffff;
}

.dmtp-sidebar-menu .list-group-item:hover:not(.active) {
	background-color: #f1f5f9;
	color: #1d4ed8;
}

.dmtp-palette-grid .btn-palette {
	width: 40px;
	height: 40px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 14px;
	border-radius: 8px;
	transition: all 0.2s ease-in-out;
}

.dmtp-palette-grid .btn-palette.active {
	ring: 3px;
	transform: scale(1.1);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
}

.dmtp-timer-box.timer-warning {
	animation: pulse-red 1s infinite alternate;
}

@keyframes pulse-red {
	from {
		border-color: #ef4444;
		box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
	}
	to {
		border-color: #dc2626;
		box-shadow: 0 0 15px rgba(220, 38, 38, 0.9);
	}
}

.min-vh-50 {
	min-height: 550px;
}

.dmtp-option-card {
	cursor: pointer;
	transition: all 0.2s ease;
	border: 2px solid #e2e8f0;
	user-select: none;
}

.dmtp-option-card * {
	pointer-events: none;
}

.dmtp-option-card:hover {
	border-color: #93c5fd;
	background-color: #f8fafc;
}

.dmtp-option-card.selected {
	border-color: #2563eb;
	background-color: #eff6ff;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

/* ── Option Card Checkbox / Radio Alignment ── */
.dmtp-option-card .form-check {
	display: flex;
	align-items: center;
	padding: 0;
	margin: 0;
	line-height: 1;
}

.dmtp-option-card .form-check-input {
	float: none;
	margin: 0;
	flex-shrink: 0;
	vertical-align: middle;
	position: relative;
	top: 0;
	cursor: pointer;
}

.dmtp-option-card .form-check-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	margin: 0;
	padding: 0;
	line-height: 1.4;
}

.dmtp-toast-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1090;
}

/* ── Student Portal Stat Cards ── */
.dmtp-portal-stat-card {
	position: relative;
	border-radius: 16px;
	padding: 22px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	color: #ffffff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	overflow: hidden;
	height: 100%;
	min-height: 105px;
}

.dmtp-portal-stat-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.dmtp-portal-stat-card.dmtp-stat-blue {
	background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}

.dmtp-portal-stat-card.dmtp-stat-green {
	background: linear-gradient(135deg, #047857 0%, #10b981 100%);
}

.dmtp-portal-stat-card.dmtp-stat-red {
	background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
}

.dmtp-portal-stat-card.dmtp-stat-purple {
	background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
}

.dmtp-stat-icon-box {
	width: 50px;
	height: 50px;
	min-width: 50px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	color: #ffffff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
	flex-shrink: 0;
}

.dmtp-stat-details {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	flex: 1;
}

.dmtp-stat-title {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.82);
	margin-bottom: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dmtp-stat-number {
	font-size: 1.8rem;
	font-weight: 800;
	color: #ffffff;
	margin: 0;
	line-height: 1;
	letter-spacing: -0.02em;
}
