/*
 * SchoolOS — Minimal extras (brand text, scrollbar, platform dashboard pack)
 * UI refresh Jul 2026: colours now come from the theme engine's --ss-* /
 * --gray-* variables (App\Support\Theme\ThemeInjector) instead of the old
 * hardcoded green/gold. Fallbacks keep the file safe standalone.
 */

/* Brand name in sidebar follows the themed sidebar treatment */
.fi-brand-name { color: var(--ss-sidebar-brand, #fff) !important; font-weight: 900 !important; letter-spacing: -0.02em !important; }

/* Login logo text follows the accent */
.fi-logo { color: var(--ss-accent, #E8830C) !important; font-weight: 900 !important; }

/* Sidebar group labels */
.fi-sidebar-group-label { font-size: 0.65rem !important; font-weight: 800 !important; letter-spacing: .14em !important; text-transform: uppercase !important; }

/* Scrollbar — neutral, mode-agnostic */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(128, 138, 152, .35); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(128, 138, 152, .55); }

/* Platform dashboard layout pack (Super Admin style, theme-aware) */
.so-platform-card {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--ss-sidebar-bg, #1c2128) 88%, transparent), color-mix(in srgb, var(--ss-sidebar-bg, #232932) 82%, #000 6%));
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.so-platform-list {
	display: grid;
	gap: 10px;
}

.so-platform-item {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.03);
	padding: 10px 12px;
}

.so-platform-item-title {
	margin: 0;
	font-size: 0.86rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.96);
}

.so-platform-item-sub {
	margin-top: 2px;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.62);
}

.so-platform-bars {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	height: 140px;
}

.so-platform-bar-col {
	flex: 1;
	min-width: 0;
}

.so-platform-bar {
	width: 100%;
	border-radius: 12px 12px 6px 6px;
	background: linear-gradient(180deg, var(--ss-accent, #E8830C), color-mix(in srgb, var(--ss-accent-2, #C9992C) 90%, transparent));
}

.so-platform-legend {
	margin-top: 8px;
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.62);
}

.so-platform-progress {
	width: 100%;
	height: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.so-platform-progress > span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ss-accent, #E8830C), color-mix(in srgb, var(--ss-accent-2, #C9992C) 90%, transparent));
}

.so-platform-actions {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.so-platform-actions {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}
