/* Stats page -- matches index.css idiom (Haxus relic style). */

.stats-cards { width: 100%; border-collapse: separate; border-spacing: 0; }
.stats-card {
	background-color: #0a0e18;
	border: 1px solid #1a2236;
	padding: 12px 14px;
	width: 50%;
	vertical-align: top;
}
.stats-card-spacer { width: 10px; }

.card-title {
	font-family: Verdana, Arial;
	font-size: 11px;
	color: #ccd9e6;
	font-weight: bold;
	letter-spacing: 1px;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #1a2236;
}

.chart-panel {
	background-color: #0a0e18;
	border: 1px solid #1a2236;
	padding: 8px 10px;
	margin-top: 8px;
	margin-bottom: 14px;
}

.chart-panel canvas {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	background-color: #07101c;
	border: 1px solid #11192a;
}

.chart-legend {
	font-family: Verdana, Arial;
	font-size: 10px;
	color: #556677;
	letter-spacing: 1px;
	margin-top: 6px;
}

.legend-swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 4px;
	vertical-align: middle;
	border: 1px solid #11192a;
}

/* Stable chart colors -- echo the existing #6699aa / #aa5544 / #cc9966 palette */
.sw-host { background: #6699aa; }
.sw-game { background: #aa6655; }
.sw-web  { background: #88aa66; }
.sw-rx   { background: #6699aa; }
.sw-tx   { background: #aa6655; }

.statlog {
	background-color: #0a0e18;
	border: 1px solid #1a2236;
	height: 260px;
	overflow-y: auto;
	padding: 8px 10px;
	margin-top: 8px;
	font-family: "Courier New", monospace;
	font-size: 10px;
	line-height: 14px;
}
.statlog .entry { margin-bottom: 2px; white-space: nowrap; }
.statlog .ts    { color: #6699aa; }
.statlog .msg   { color: #aaaaaa; }
.statlog .lbl   { color: #556677; }
.statlog .v     { color: #ccd9e6; }
.statlog .warn  { color: #cc9966; }
.statlog .err   { color: #cc5544; }

.meter {
	height: 6px;
	background: #0d1424;
	border: 1px solid #1a2236;
	margin-top: 8px;
	position: relative;
	overflow: hidden;
}
.meter-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(to right, #44bb77 0%, #6699aa 60%, #cc9966 85%, #cc5544 100%);
	transition: width 600ms ease-out;
}

.percore {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	margin-top: 8px;
}
.percore .cell {
	width: 14px;
	height: 24px;
	background: #0d1424;
	border: 1px solid #1a2236;
	position: relative;
}
.percore .fill {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	background: #6699aa;
}

.bug-summary {
	font-family: "Courier New", monospace;
	font-size: 10px;
	color: #556677;
	letter-spacing: 1px;
	margin-bottom: 8px;
}
.bug-summary a    { color: #6699aa; }
.bug-summary span { color: #ccd9e6; }

.dot-warn { color: #cc9966; text-shadow: 0 0 6px #cc9966; }
.dot-err  { color: #cc5544; text-shadow: 0 0 6px #cc5544; }
