/* Instructor shell. Uses the existing Brylla variables, cards, and sidebar styles. */
.instructor-app { overflow-x: hidden; }
.instructor-skip {
	position: absolute;
	left: 16px;
	top: 8px;
	z-index: 2000;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--brylla-navy);
	color: #fff;
	text-decoration: none;
	transform: translateY(-150%);
}
.instructor-skip:focus { transform: none; }
.instructor-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid var(--brylla-line);
}
.instructor-header-inner {
	display: flex;
	min-height: 82px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.instructor-brand {
	display: block;
	width: 133px;
	height: 70px;
	flex: 0 0 133px;
	overflow: hidden;
	position: relative;
}
.instructor-brand img {
	position: absolute;
	width: 170px;
	max-width: none;
	height: 170px;
	top: calc(50% + 6px);
	left: 50%;
	transform: translate(-50%, -50%);
}
.instructor-header-tools { display: flex; align-items: center; gap: 10px; }
.instructor-menu-wrap { position: relative; }
.instructor-menu-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 30;
	width: min(280px, calc(100vw - 32px));
	max-height: min(70vh, 560px);
	margin: 0;
	overflow: auto;
	background: #fff;
}
.instructor-menu-panel[hidden] { display: none; }
.instructor-menu-panel h6 {
	margin: 12px 0 8px;
	color: var(--brylla-muted);
	font-size: 12px;
	font-weight: 500;
}
.instructor-menu-panel h6:first-child { margin-top: 0; }
.instructor-menu-panel ul { margin: 0 0 4px; padding: 0; list-style: none; }
.instructor-menu-panel a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
}
.instructor-menu-panel a i { width: 20px; flex: 0 0 20px; text-align: center; }
.instructor-menu-panel a.is-danger,
.instructor-menu-panel a.is-danger i { color: #E70D0D !important; }
.instructor-header a.icon-btn {
	width: 40px;
	height: 40px;
	display: inline-grid;
	place-items: center;
	color: var(--brylla-navy);
	font-size: 20px;
	text-decoration: none;
}
.instructor-avatar-link {
	width: 40px;
	height: 40px;
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	background: #e3edf8;
	color: var(--brylla-navy);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	overflow: hidden;
}
.instructor-avatar-link img { width: 100%; height: 100%; object-fit: cover; }
.instructor-profile.is-compact { padding: 16px 20px; margin-bottom: 24px; }
.instructor-profile.is-compact .avatar-xxl { width: 56px; height: 56px; }
.instructor-main { padding: 24px 0 48px; }
.instructor-main h1.h5 { margin-bottom: 16px; }
.instructor-stat-link { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; text-decoration: none; }
.instructor-stat-link:hover .card { border-color: var(--brylla-teal); }
.instructor-tools .form-control { flex: 1 1 12rem; width: auto; min-width: 0; }
.instructor-tools .form-select { flex: 1 1 9rem; width: auto; min-width: 0; }
.instructor-group-label { margin: 8px 0 12px; color: var(--brylla-muted); font-size: 13px; font-weight: 500; }
.instructor-table { width: 100%; border-collapse: collapse; }
.instructor-table th,
.instructor-table td { padding: 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.instructor-table thead th {
	position: sticky;
	top: 82px;
	z-index: 1;
	background: #fff;
	color: var(--brylla-navy-deep);
	font-weight: 500;
	text-align: left;
}
.instructor-table th button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
.instructor-table tr.is-selected { outline: 2px solid var(--brylla-teal); outline-offset: -2px; }
.instructor-table button.linkish,
.instructor-table a.linkish { padding: 0; border: 0; background: none; color: var(--brylla-navy); font: inherit; text-align: left; cursor: pointer; }
.instructor-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; min-height: 160px; }
.instructor-bars button {
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 120px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.instructor-bars button span {
	display: block;
	width: 100%;
	min-height: 4px;
	border-radius: 8px 8px 0 0;
	background: var(--brylla-teal);
}
.instructor-bars .bar-col { text-align: center; }
.instructor-bars small { display: block; margin-top: 6px; color: var(--brylla-muted); font-size: 11px; }
.instructor-toast {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 1080;
	max-width: min(360px, calc(100vw - 32px));
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--gray-100);
	border-radius: 10px;
	background: #fff;
	color: var(--brylla-ink);
}
.instructor-confirm {
	width: min(420px, calc(100vw - 32px));
	padding: 0;
	border: 1px solid var(--gray-100);
	border-radius: 10px;
	background: #fff;
	color: var(--brylla-ink);
}
.instructor-confirm::backdrop { background: rgba(7, 59, 112, .35); }
.instructor-thumb {
	width: 48px;
	height: 48px;
	display: inline-grid;
	place-items: center;
	flex: 0 0 48px;
	border-radius: 10px;
	background: #e8f8f6;
	color: var(--brylla-teal-dark);
	overflow: hidden;
}
.instructor-thumb img { width: 100%; height: 100%; object-fit: cover; }
.instructor-expand { background: var(--light-600); }
.instructor-app .badge.badge-success,
.instructor-app .bg-success { background-color: #0b7a3e !important; border-color: #0b7a3e !important; color: #fff !important; }
.instructor-app .badge.badge-success-transparent,
.instructor-app .badge.badge-soft-success { color: #085c2e !important; }
.instructor-app .badge.badge-warning,
.instructor-app .bg-warning { background-color: #8a6a08 !important; color: #fff !important; }
.instructor-app .badge.badge-warning-transparent,
.instructor-app .badge.badge-soft-warning { color: #6d5406 !important; }
.instructor-app .badge.bg-info,
.instructor-app .text-bg-info { background-color: #0a6d86 !important; color: #fff !important; }
.academy-instructor-footer { padding: 35px 0; background: #041f3c; color: #d1e0ed; }
.academy-instructor-footer .academy-footer-inner { display: flex; align-items: center; gap: 13px; }
.academy-instructor-footer .academy-footer-mark {
	position: relative;
	display: block;
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	overflow: hidden;
	border-radius: 50%;
	background: #fff;
}
.academy-instructor-footer .academy-footer-mark img {
	position: absolute;
	top: calc(50% + 5px);
	left: 50%;
	width: 164px;
	height: 164px;
	max-width: none;
	transform: translate(-50%, -50%);
}
.academy-instructor-footer strong { display: block; color: #fff; font-size: 15px; font-weight: 500; }
.academy-instructor-footer .tagline { color: #aac0d3; font-size: 14px; }
.academy-instructor-footer .copyright {
	margin: 22px 0 0;
	padding-top: 18px;
	border-top: 1px solid rgba(255,255,255,.14);
	color: #aac0d3;
	font-size: 14px;
	text-align: center;
}
.instructor-app :focus-visible { outline: 3px solid var(--brylla-orange); outline-offset: 2px; }
@media (max-width: 991.98px) {
	.instructor-header-inner { min-height: 68px; }
	.instructor-brand { width: 100px; height: 52px; flex-basis: 100px; }
	.instructor-brand img { width: 128px; height: 128px; }
	.instructor-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
	.instructor-table,
	.instructor-table tbody,
	.instructor-table tr,
	.instructor-table td { display: block; width: 100%; }
	.instructor-table tr {
		margin-bottom: 12px;
		padding: 8px 0;
		border: 1px solid var(--gray-100);
		border-radius: 10px;
		background: #fff;
	}
	.instructor-table td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		border-bottom: 0;
		text-align: right;
	}
	.instructor-table td::before { content: attr(data-label); color: var(--brylla-muted); font-weight: 500; text-align: left; }
	.instructor-table thead th { position: static; }
	.instructor-bars { gap: 4px; }
	.academy-instructor-footer .academy-footer-inner { align-items: flex-start; }
}

body.instructor-app { background: #F7F9FC; color: #334155; }
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: 260px; background: #0C3157; color: #fff; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow: auto; padding: 16px 12px; }
.app-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.app-brand img { height: 36px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }
.app-nav-label { color: rgba(255,255,255,.55); font-size: 12px; margin: 16px 8px 6px; }
.app-sidebar ul { list-style: none; margin: 0; padding: 0; }
.app-sidebar a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.88); text-decoration: none; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.app-sidebar a.active, .app-sidebar a:hover { background: #0F766E; color: #fff; }
.app-sidebar a.is-danger { color: #fecaca; }
.app-main { flex: 1; min-width: 0; }
.app-top { min-height: 64px; background: #fff; border-bottom: 1px solid #e6ebf2; display: flex; align-items: center; gap: 12px; padding: 8px 16px; position: sticky; top: 0; z-index: 20; }
.app-title { margin: 0; font-weight: 600; color: #0C3157; }
.app-search { flex: 1; max-width: 320px; border: 1px solid #e6ebf2; border-radius: 8px; padding: 8px 12px; background: #F7F9FC; }
.app-content { padding: 24px; }
.app-icon { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #0C3157; }
.app-sidebar .app-icon { color: #fff; }
.app-avatar { width: 32px; height: 32px; border-radius: 50%; background: #0F766E; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; overflow: hidden; }
.app-avatar img { width: 100%; height: 100%; object-fit: cover; }
.app-profile { position: relative; margin-left: auto; }
.app-profile-button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #0C3157; }
.app-profile-menu { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid #e6ebf2; border-radius: 10px; min-width: 180px; box-shadow: 0 8px 24px rgba(12,49,87,.08); padding: 8px; z-index: 30; }
.app-profile-menu a { display: block; padding: 8px; color: #0C3157; text-decoration: none; }
.dash-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
.attention-list { margin: 0 0 12px; padding-left: 18px; }
body.sidebar-collapsed .app-sidebar { width: 76px; }
body.sidebar-collapsed .app-sidebar span, body.sidebar-collapsed .app-nav-label { display: none; }
#sidebar-open { display: none; }
@media (max-width: 991.98px) {
	#sidebar-open { display: inline-flex; }
	.app-sidebar { position: fixed; z-index: 40; transform: translateX(-105%); }
	.app-sidebar.is-open { transform: none; }
	.app-scrim:not([hidden]) { position: fixed; inset: 0; background: rgba(12,49,87,.45); z-index: 30; }
	.app-content { padding: 16px; }
}
@media (max-width: 575.98px) {
	.app-search { display: none; }
	.app-profile-button > span:last-child { display: none; }
}
