/**
 * AcademyOS portal — reusable dashboard components (student, parent, coach, teacher).
 */

/* ── Student hero ──────────────────────────────────────────── */
.ao-student-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.5rem 1.75rem;
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
	position: relative;
	overflow: hidden;
}

.ao-student-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #4f46e5, #7c3aed, #a78bfa);
	opacity: 0.85;
}

.ao-student-hero__main {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	flex: 1;
	min-width: 0;
}

.ao-student-hero__avatar {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.375rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
	letter-spacing: 0.02em;
}

.ao-student-hero__info {
	flex: 1;
	min-width: 0;
}

.ao-student-hero__name {
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.ao-student-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.ao-student-hero__gpa {
	flex-shrink: 0;
	align-self: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	padding: 1rem 1.25rem;
	background: linear-gradient(145deg, #eef2ff, #ffffff);
	border: 1px solid #c7d2fe;
	border-radius: 14px;
	text-align: center;
}

.ao-student-hero__gpa-label {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6366f1;
	margin-bottom: 0.25rem;
}

.ao-student-hero__gpa-value {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* ── Tags & badges ─────────────────────────────────────────── */
.ao-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.65rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #475569;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.ao-tag--accent {
	color: #3730a3;
	background: linear-gradient(135deg, #eef2ff, #e0e7ff);
	border-color: #c7d2fe;
}

.ao-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem 0.6rem;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 999px;
}

.ao-badge--warning {
	color: #92400e;
	background: #fef3c7;
	border: 1px solid #fde68a;
}

.ao-badge .material-symbols-outlined {
	font-size: 16px;
}

/* ── Pills row ─────────────────────────────────────────────── */
.ao-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ao-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.9rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #334155;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ao-pill--accent {
	color: #3730a3;
	background: linear-gradient(135deg, #eef2ff, #e0e7ff);
	border-color: #c7d2fe;
}

/* ── Sections ──────────────────────────────────────────────── */
.ao-section__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding-bottom: 0.75rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid #e2e8f0;
}

.ao-section__title {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
}

/* ── Linked accounts ───────────────────────────────────────── */
.ao-link-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.ao-link-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.ao-link-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ao-link-card {
	padding: 1.25rem;
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.85);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
}

.ao-link-card__title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.875rem !important;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #f1f5f9;
}

.ao-link-card__person {
	padding: 0.5rem 0;
	border-bottom: 1px solid #f8fafc;
}

.ao-link-card__person:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.ao-link-card__name {
	font-size: 0.875rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
}

.ao-link-card__email {
	font-size: 0.8125rem;
	color: #64748b;
	margin-top: 0.125rem;
	word-break: break-all;
}

.ao-link-card__empty {
	font-size: 0.875rem;
	color: #94a3b8;
	font-style: italic;
}

/* ── Course grid & cards ───────────────────────────────────── */
.ao-course-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.ao-course-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ao-course-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.85);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.05);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ao-course-card:hover {
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 16px 40px rgba(79, 70, 229, 0.08);
	transform: translateY(-2px);
}

.ao-course-card__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1.25rem 1.25rem 0;
}

.ao-course-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.ao-course-card__code {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: 0.25rem;
	font-size: 0.8125rem;
	color: #64748b;
}

.ao-course-card__code .material-symbols-outlined {
	font-size: 14px;
}

.ao-course-card__grade {
	flex-shrink: 0;
	padding: 0.25rem 0.65rem;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 700;
}

.ao-course-card__body {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1rem 1.25rem;
}

.ao-course-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.ao-course-card__meta-label {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #94a3b8;
}

.ao-course-card__meta-value {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #0f172a;
	text-transform: capitalize;
}

.ao-course-card__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
	padding: 0.875rem 1.25rem;
	border-top: 1px solid #f1f5f9;
	background: #fafbfc;
}

.ao-course-card__activity {
	font-size: 0.75rem;
	color: #64748b;
	flex: 1;
	min-width: 0;
}

/* ── Progress ring (fixed 72px — never grows) ──────────────── */
.ao-progress-ring {
	position: relative;
	flex-shrink: 0;
	width: 72px;
	height: 72px;
}

.ao-progress-ring svg {
	width: 72px;
	height: 72px;
	transform: rotate(-90deg);
	display: block;
}

.ao-progress-ring__track {
	fill: none;
	stroke: #e2e8f0;
	stroke-width: 2.5;
	stroke-dasharray: 100;
}

.ao-progress-ring__fill {
	fill: none;
	stroke: #6366f1;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--ao-progress, 0));
	transition: stroke-dashoffset 0.4s ease;
}

.ao-progress-ring__label {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #0f172a;
}

/* ── Stat cards (KPI tiles) ────────────────────────────────── */
.ao-stat-card {
	position: relative;
	overflow: hidden;
	padding: 1.5rem;
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.85);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ao-stat-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, #6366f1, #a78bfa);
	border-radius: 4px 0 0 4px;
	opacity: 0.85;
}

/* ── Buttons (size variants) ───────────────────────────────── */
.ao-btn-sm {
	padding: 0.4rem 0.85rem !important;
	font-size: 0.8125rem !important;
}

/* ── Empty state ───────────────────────────────────────────── */
.ao-empty-state {
	padding: 2.5rem 1.5rem;
	text-align: center;
	font-size: 0.9375rem;
	color: #64748b;
	background: #ffffff;
	border: 1px dashed #cbd5e1;
	border-radius: 14px;
}

/* ════════════════════════════════════════════════════════════
   Portal sidebar
   ════════════════════════════════════════════════════════════ */
.ao-sidebar {
	display: flex;
	flex-direction: column;
	width: 16rem;
	height: 100vh;
	padding: 1.5rem 0 1rem;
	background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%) !important;
	border-right: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 4px 0 32px rgba(15, 23, 42, 0.2);
	color: #e2e8f0;
}

.ao-sidebar__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0 1.25rem 1.5rem;
}

.ao-sidebar__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	flex: 1;
}

.ao-sidebar__logo {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.25));
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	overflow: hidden;
}

.ao-sidebar__logo .material-symbols-outlined {
	font-size: 22px;
}

.ao-sidebar__logo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
}

.ao-sidebar__brand-text {
	min-width: 0;
}

.ao-sidebar__brand-name {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fff;
}

.ao-sidebar__brand-sub {
	margin: 0.25rem 0 0;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94a3b8;
	line-height: 1.3;
}

.ao-sidebar__close {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #cbd5e1;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.ao-sidebar__close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.ao-sidebar__close .material-symbols-outlined {
	font-size: 22px;
}

.ao-sidebar__nav {
	flex: 1;
	overflow-y: auto;
	padding: 0 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.ao-sidebar__nav::-webkit-scrollbar {
	width: 4px;
}

.ao-sidebar__nav::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 4px;
}

.ao-sidebar__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 0.75rem;
	border-radius: 10px;
	border-left: 3px solid transparent;
	font-size: 0.875rem;
	font-weight: 500;
	color: #94a3b8;
	text-decoration: none;
	transition: background 0.15s, color 0.15s, transform 0.15s, border-color 0.15s;
}

.ao-sidebar__link:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	transform: translateX(2px);
}

.ao-sidebar__link--active,
.ao-shell-nav-link--active.ao-sidebar__link {
	color: #fff !important;
	font-weight: 600;
	background: linear-gradient(90deg, rgba(99, 102, 241, 0.28) 0%, rgba(99, 102, 241, 0.08) 100%);
	border-left-color: #818cf8;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ao-sidebar__icon {
	font-size: 20px !important;
	flex-shrink: 0;
	opacity: 0.95;
}

.ao-sidebar__label {
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ao-sidebar__foot {
	margin-top: auto;
	padding: 1rem 0.75rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.ao-sidebar__user {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.75rem;
	border-radius: 10px;
}

.ao-sidebar__user-avatar {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.6875rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.ao-sidebar__user-meta {
	min-width: 0;
	line-height: 1.25;
}

.ao-sidebar__user-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ao-sidebar__user-role {
	font-size: 0.6875rem;
	color: #94a3b8;
	text-transform: capitalize;
	margin-top: 0.125rem;
}

.ao-sidebar__logout {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.75rem;
	border-radius: 10px;
	font-size: 0.875rem;
	color: #94a3b8;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.ao-sidebar__logout:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

.ao-sidebar__logout .material-symbols-outlined {
	font-size: 18px;
}

.ao-shell-wrap .ao-topbar-avatar,
.ao-shell-topbar .ao-topbar-avatar {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.6875rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

/* ════════════════════════════════════════════════════════════
   Portal tables
   ════════════════════════════════════════════════════════════ */
.ao-shell-wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.ao-shell-wrap table thead {
	background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.ao-shell-wrap table thead th {
	padding: 0.625rem 0.875rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	text-align: left;
	border-bottom: 1px solid #e2e8f0;
	white-space: nowrap;
}

.ao-shell-wrap table thead th.text-right,
.ao-shell-wrap table td.text-right {
	text-align: right;
}

.ao-shell-wrap table tbody td {
	padding: 0.75rem 0.875rem;
	color: #334155;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.ao-shell-wrap table tbody tr:last-child td {
	border-bottom: none;
}

.ao-shell-wrap table tbody tr {
	transition: background 0.12s ease;
}

.ao-shell-wrap table tbody tr:hover {
	background: #f8fafc;
}

.ao-shell-wrap .ao-table-wrap {
	overflow-x: auto;
	border: 1px solid rgba(226, 232, 240, 0.85);
	border-radius: 12px;
	background: #fff;
}

.ao-shell-wrap .ao-table-wrap table {
	border-radius: 12px;
}

/* ════════════════════════════════════════════════════════════
   Portal buttons & action chips
   ════════════════════════════════════════════════════════════ */
.ao-shell-wrap .ao-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.ao-shell-wrap .ao-btn:not(.ao-btn-outline) {
	background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.ao-shell-wrap .ao-btn:not(.ao-btn-outline):hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.ao-shell-wrap button.bg-primary-container,
.ao-shell-wrap a.bg-primary-container.text-white,
.ao-shell-wrap a.bg-primary-container.font-button,
.ao-shell-wrap button.font-button.bg-primary-container {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	border-radius: 10px;
	border: none;
	background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
	color: #fff !important;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
	transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.ao-shell-wrap button.bg-primary-container:hover,
.ao-shell-wrap a.bg-primary-container.text-white:hover,
.ao-shell-wrap a.bg-primary-container.font-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
	opacity: 1 !important;
}

.ao-shell-wrap .ao-portal-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #334155;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ao-shell-wrap .ao-portal-chip:hover {
	background: #f8fafc;
	border-color: #c7d2fe;
	color: #4f46e5;
}

.ao-shell-wrap .ao-portal-chip--active,
.ao-shell-wrap .ao-academy-tab.bg-primary-container {
	background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
	border-color: transparent !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.ao-shell-wrap a.bg-amber-600 {
	background: linear-gradient(135deg, #d97706, #f59e0b) !important;
	color: #fff !important;
	border-radius: 10px;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.ao-shell-wrap .ao-action-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #334155;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ao-shell-wrap .ao-action-link:hover {
	background: #f8fafc;
	border-color: #c7d2fe;
	color: #4f46e5;
}

.ao-shell-wrap .ao-action-link .material-symbols-outlined {
	font-size: 16px;
}

/* Legacy view action links (reports, transcript, academics) */
.ao-shell-wrap a.bg-surface-container-lowest.border.font-button,
.ao-shell-wrap a.inline-flex.bg-surface-container-lowest.border.border-outline-variant {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid #e2e8f0 !important;
	background: #fff !important;
	color: #334155 !important;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ao-shell-wrap a.bg-surface-container-lowest.border.font-button:hover,
.ao-shell-wrap a.inline-flex.bg-surface-container-lowest.border.border-outline-variant:hover {
	background: #f8fafc !important;
	border-color: #c7d2fe !important;
	color: #4f46e5 !important;
}

.ao-shell-wrap a.bg-surface-container-lowest.border.font-button .material-symbols-outlined,
.ao-shell-wrap a.inline-flex.bg-surface-container-lowest .material-symbols-outlined {
	font-size: 16px;
}

/* ════════════════════════════════════════════════════════════
   Tab bar (Gradebook, Reports, Progress, etc.)
   ════════════════════════════════════════════════════════════ */
.ao-tab-panel {
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.ao-tab-bar {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.25rem;
	padding: 0.5rem 0.75rem 0;
	overflow-x: auto;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
	border-bottom: 1px solid #e2e8f0;
	scrollbar-width: thin;
}

.ao-tab-bar__btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1rem;
	margin: 0;
	border: none !important;
	border-bottom: 2px solid transparent !important;
	border-radius: 8px 8px 0 0;
	background: transparent !important;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: #64748b !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none !important;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ao-tab-bar__btn:hover {
	color: #4f46e5 !important;
	background: rgba(99, 102, 241, 0.04) !important;
}

.ao-tab-bar__btn--active,
.ao-tab-bar__btn.is-active {
	color: #4f46e5 !important;
	border-bottom-color: #6366f1 !important;
	background: rgba(99, 102, 241, 0.08) !important;
}

.ao-tab-panel__body {
	padding: 1.5rem;
}

/* Progress bars in tables */
.ao-shell-wrap .ao-progress-mini {
	width: 8rem;
	height: 6px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
	flex-shrink: 0;
}

.ao-shell-wrap .ao-progress-mini__fill {
	height: 100%;
	border-radius: 999px;
	transition: width 0.3s ease;
}

.ao-shell-wrap .ao-status-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 999px;
	text-transform: capitalize;
}

.ao-shell-wrap .ao-status-pill--track,
.ao-shell-wrap .ao-status-pill--on_track {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.ao-shell-wrap .ao-status-pill--behind,
.ao-shell-wrap .ao-status-pill--at_risk {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.ao-shell-wrap .ao-status-pill--ahead {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

/* ════════════════════════════════════════════════════════════
   Reports tab
   ════════════════════════════════════════════════════════════ */
.ao-reports-view__head {
	margin-bottom: 1rem;
}

.ao-reports-view__head--spaced {
	margin-top: 2rem;
}

.ao-reports-view__title {
	margin: 0 0 0.35rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.01em;
}

.ao-reports-view__hint {
	margin: 0;
	font-size: 0.8125rem;
	color: #64748b;
	line-height: 1.5;
}

.ao-reports-view__hint code,
.ao-reports-view__legend-item code {
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.1rem 0.35rem;
	border-radius: 4px;
	background: #f1f5f9;
	color: #475569;
}

.ao-reports-view__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-top: 0.75rem;
}

.ao-reports-view__legend-item {
	font-size: 0.75rem;
	color: #64748b;
}

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

.ao-data-table thead th {
	padding: 0.75rem 1rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	text-align: left;
	background: linear-gradient(180deg, #f8fafc, #f1f5f9);
	border-bottom: 1px solid #e2e8f0;
	white-space: nowrap;
}

.ao-data-table thead th.ao-data-table__col-toggle {
	width: 3rem;
	padding-left: 1rem;
	padding-right: 0.5rem;
	text-align: center;
}

.ao-data-table tbody td {
	padding: 0.875rem 1rem;
	color: #334155;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.ao-data-table tbody tr:last-child td {
	border-bottom: none;
}

.ao-data-table tbody tr.ao-data-table__row:hover {
	background: #f8fafc;
}

.ao-data-table tbody tr.ao-data-table__row--open {
	background: #fafbff;
}

.ao-data-table__course {
	font-weight: 600;
	color: #0f172a;
}

.ao-data-table__empty {
	padding: 2.5rem 1rem !important;
	text-align: center;
	color: #64748b;
	font-size: 0.9375rem;
}

.ao-row-expand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px;
	background: #fff !important;
	color: #64748b !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
	-webkit-appearance: none;
	appearance: none;
}

.ao-row-expand:hover {
	background: #f8fafc !important;
	border-color: #c7d2fe !important;
	color: #4f46e5 !important;
}

.ao-row-expand--open,
.ao-row-expand[aria-expanded="true"] {
	background: #eef2ff !important;
	border-color: #a5b4fc !important;
	color: #4f46e5 !important;
}

.ao-row-expand .material-symbols-outlined {
	font-size: 18px;
	transition: transform 0.2s ease;
}

.ao-row-expand--open .material-symbols-outlined,
.ao-row-expand[aria-expanded="true"] .material-symbols-outlined {
	transform: rotate(180deg);
}

.ao-metric-group {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.ao-metric-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.45rem;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 6px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #475569;
}

.ao-metric-chip--sub { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
.ao-metric-chip--eval { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.ao-metric-chip--pend { color: #b45309; background: #fffbeb; border-color: #fde68a; }

.ao-reports-detail {
	background: #f8fafc;
}

.ao-reports-detail__inner {
	padding: 1rem 1.25rem 1.25rem 3.25rem;
}

.ao-reports-detail__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.ao-reports-detail__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ao-reports-detail__block-title {
	margin: 0 0 0.75rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
}

.ao-attempt-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 0.875rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.ao-attempt-card + .ao-attempt-card {
	margin-top: 0.5rem;
}

.ao-attempt-card__title {
	font-size: 0.875rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.35;
}

.ao-attempt-card__meta {
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 0.15rem;
}

.ao-attempt-card__score {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #475569;
	margin-top: 0.25rem;
}

.ao-attempt-card__grade {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.6875rem;
	font-weight: 800;
	color: #fff;
}

.ao-attempt-card__grade--muted {
	background: #94a3b8;
}

.ao-table-wrap + .ao-table-wrap {
	margin-top: 0;
}

.ao-reports-view .ao-table-wrap {
	margin-bottom: 0;
}

.ao-reports-view .ao-table-wrap + .ao-reports-view__head {
	margin-top: 2rem;
}

.ao-data-table__actions {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.35rem;
}

.ao-data-table thead th.text-right,
.ao-data-table td.text-right {
	text-align: right;
}

.ao-table-section-title {
	margin: 0 0 0.75rem;
	padding: 0 0.25rem;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #0f172a;
}

.ao-status-pill.bg-emerald-50,
.ao-status-pill.bg-amber-50,
.ao-status-pill.bg-red-50,
.ao-status-pill.bg-blue-50,
.ao-status-pill.bg-slate-50 {
	border-width: 1px;
	border-style: solid;
}

.ao-shell-wrap .ao-tab-bar .ao-tab-bar__btn {
	color: #64748b !important;
	background: transparent !important;
}

.ao-shell-wrap .ao-tab-bar .ao-tab-bar__btn--active,
.ao-shell-wrap .ao-tab-bar .ao-tab-bar__btn.is-active {
	color: #4f46e5 !important;
}

