/* ==========================================================================
   CBT Modern Lightweight Design System
   Clean, fast, mobile-friendly UI layer compatible with Bootstrap 3 & AdminLTE
   ========================================================================== */

:root {
	--cbt-bg: #f1f5f9;
	--cbt-surface: #ffffff;
	--cbt-ink: #0f172a;
	--cbt-muted: #64748b;
	--cbt-border: #e2e8f0;
	--cbt-primary: #2563eb;
	--cbt-primary-dark: #1d4ed8;
	--cbt-indigo: #4f46e5;
	--cbt-success: #16a34a;
	--cbt-warning: #d97706;
	--cbt-danger: #dc2626;
	--cbt-radius: 14px;
	--cbt-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

html, body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--cbt-ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- Student Portal Top Header ---------- */
body.layout-top-nav .main-header.cbt-student-header {
	background: rgba(255, 255, 255, 0.94) !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--cbt-border);
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
	height: 68px !important;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
}

.cbt-header-inner {
	max-width: 1240px;
	margin: 0 auto;
	height: 100%;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.cbt-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	text-decoration: none !important;
}

.cbt-brand .img-logo {
	margin: 0 !important;
	height: 42px !important;
	width: auto !important;
	max-width: 180px !important;
	object-fit: contain;
	flex-shrink: 0;
}

.cbt-brand-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cbt-brand-title {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--cbt-ink);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cbt-brand-sub {
	font-size: 11.5px;
	color: var(--cbt-muted);
	font-weight: 500;
}

.cbt-student-header .panel-user.cbt-user-pill {
	float: none !important;
	width: auto !important;
	height: auto !important;
	background: #f8fafc !important;
	border: 1px solid var(--cbt-border);
	border-radius: 999px;
	padding: 5px 8px 5px 6px !important;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--cbt-ink) !important;
	line-height: 1.25 !important;
	flex-shrink: 0;
}

.cbt-user-pill img {
	width: 34px !important;
	height: 34px !important;
	border-radius: 50%;
	object-fit: cover;
	float: none !important;
	margin: 0 !important;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.cbt-user-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding-right: 4px;
}

.cbt-user-name {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--cbt-ink);
	max-width: 180px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cbt-user-role {
	font-size: 10.5px;
	color: var(--cbt-muted);
	font-weight: 500;
}

.cbt-logout-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fee2e2;
	color: #b91c1c !important;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.15s ease, transform 0.15s ease;
}

.cbt-logout-btn:hover {
	background: #fecaca;
	transform: translateY(-1px);
}

.cbt-exam-active-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 11px;
	border-radius: 999px;
	background: #fef3c7;
	color: #92400e;
	font-size: 11px;
	font-weight: 700;
}

body.layout-top-nav .content-wrapper {
	background: var(--cbt-bg) !important;
	padding-top: 84px !important;
	min-height: 100vh;
}

body.layout-top-nav .content-wrapper .container {
	max-width: 1240px !important;
	width: 100% !important;
	padding: 0 20px;
}

/* ---------- Student Exam Confirmation Card ---------- */
.cbt-exam-confirm-card {
	background: var(--cbt-surface);
	border: 1px solid var(--cbt-border);
	border-radius: 16px;
	box-shadow: var(--cbt-shadow);
	overflow: hidden;
}

.cbt-exam-confirm-hero {
	background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #4f46e5 100%);
	color: #fff;
	padding: 22px 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.cbt-exam-confirm-hero h2 {
	margin: 4px 0 2px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.cbt-exam-confirm-eyebrow {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	color: #bfdbfe;
}

.cbt-exam-status-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.cbt-exam-meta-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	padding: 22px 26px;
}

.cbt-exam-meta-item {
	background: #f8fafc;
	border: 1px solid var(--cbt-border);
	border-radius: 12px;
	padding: 13px 15px;
}

.cbt-exam-meta-item small {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cbt-muted);
	margin-bottom: 4px;
}

.cbt-exam-meta-item strong {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--cbt-ink);
}

.cbt-exam-action-panel {
	background: var(--cbt-surface);
	border: 1px solid var(--cbt-border);
	border-radius: 16px;
	box-shadow: var(--cbt-shadow);
	padding: 20px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.cbt-btn-start-exam {
	background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
	border: none !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	padding: 14px 18px !important;
	border-radius: 12px !important;
	box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.45) !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.cbt-btn-start-exam:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.55) !important;
}

.cbt-empty-exam {
	background: var(--cbt-surface);
	border: 1px dashed #cbd5e1;
	border-radius: 16px;
	padding: 34px 24px;
	text-align: center;
	color: var(--cbt-muted);
}

.cbt-empty-exam-icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: #eff6ff;
	color: var(--cbt-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 12px;
}

/* ---------- Modern AdminLTE Shell Enhancements ---------- */
.sts-admin .main-header .navbar {
	background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.sts-admin .main-header .logo {
	background: #172554 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sts-admin .main-sidebar {
	background: #0f172a !important;
	box-shadow: 2px 0 14px rgba(15, 23, 42, 0.08);
}

.sts-admin .sidebar-menu > li.header {
	background: transparent !important;
	color: #64748b !important;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.sts-admin .sidebar-menu > li > a {
	border-left: 3px solid transparent;
	border-radius: 8px;
	margin: 2px 8px;
	padding: 9px 12px !important;
	color: #cbd5e1 !important;
	transition: background 0.15s ease, color 0.15s ease;
}

.sts-admin .sidebar-menu > li:hover > a,
.sts-admin .sidebar-menu > li.active > a {
	background: rgba(59, 130, 246, 0.16) !important;
	color: #ffffff !important;
	border-left-color: #60a5fa !important;
}

.sts-admin .box {
	border: 1px solid var(--cbt-border) !important;
	border-radius: 12px !important;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}

.sts-admin .box-header {
	border-bottom: 1px solid #f1f5f9 !important;
}

.sts-admin .btn,
body.layout-top-nav .btn {
	border-radius: 8px;
	font-weight: 600;
}

.sts-admin .form-control,
body.layout-top-nav .form-control {
	border-radius: 8px;
	border-color: #cbd5e1;
	box-shadow: none;
}

.sts-admin .form-control:focus,
body.layout-top-nav .form-control:focus {
	border-color: var(--cbt-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.sts-admin .table > thead > tr > th {
	background: #f8fafc;
	color: #475569;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-bottom: 1px solid var(--cbt-border);
}

/* ---------- Mobile Responsiveness ---------- */
@media (max-width: 991px) {
	.cbt-exam-meta-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.layout-top-nav .main-header.cbt-student-header {
		height: 62px !important;
	}
	body.layout-top-nav .content-wrapper {
		padding-top: 76px !important;
	}
	body.layout-top-nav .content-wrapper .container {
		padding: 0 12px;
	}
	.cbt-header-inner {
		padding: 0 12px;
	}
	.cbt-brand-meta {
		display: none;
	}
	.cbt-brand .img-logo {
		height: 36px !important;
	}
	.cbt-user-name {
		max-width: 110px;
	}
	.cbt-user-role {
		display: none;
	}
	.cbt-exam-confirm-hero {
		padding: 18px 16px;
	}
	.cbt-exam-meta-grid {
		grid-template-columns: 1fr;
		padding: 16px;
		gap: 10px;
	}
}
