body.dark-bg {
	margin: 0;
	margin-left: var(--sb-w, 220px);
	background: #101522;
	color: #e6eaf3;
	font-family: 'Segoe UI', Arial, sans-serif;
	transition: margin-left .22s cubic-bezier(.4,0,.2,1);
}
body.dark-bg.sb-col {
	margin-left: var(--sb-c, 52px);
}
@media (max-width: 720px) {
	body.dark-bg { margin-left: 0 !important; }
}

.navbar-dark {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(24, 29, 47, 0.96);
	padding: 0.85rem 1.25rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	border-bottom: 1px solid #263048;
	backdrop-filter: blur(6px);
}

.nav-logo {
	font-size: 1.02rem;
	font-weight: 800;
	color: #9fd8ff;
	letter-spacing: 0.06em;
}

.nav-tabs {
	display: flex;
	gap: 0.45rem;
	flex-wrap: wrap;
}

.nav-tab {
	color: #e6eaf3;
	text-decoration: none;
	font-size: 0.84rem;
	padding: 0.34rem 0.66rem;
	border-radius: 999px;
	border: 1px solid #364564;
	transition: border-color 0.2s, color 0.2s;
}

.nav-tab.active,
.nav-tab:hover {
	color: #fff3b0;
	border-color: #d8b42b;
}

.main-dark {
	max-width: 1400px;
	margin: 0 auto;
	padding: 1rem 1rem 1.4rem;
}

.metrics-row {
	display: flex;
	gap: 0.9rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.metric-card {
	background: #181d2f;
	border-radius: 14px;
	padding: 0.8rem 1rem;
	min-width: 180px;
	border: 1px solid #2b3550;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.metric-label {
	font-size: 0.88rem;
	color: #b0b8d1;
	margin-bottom: 0.3rem;
}

.metric-value {
	font-size: 1.3rem;
	font-weight: bold;
	color: #e6eaf3;
}

.metric-green {
	color: #6ee7b7;
}

.dashboard-cards-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	justify-content: flex-start;
}

.card-dark {
	background: #181d2f;
	border-radius: 16px;
	border: 1px solid #2b3550;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.13);
	padding: 1rem;
	min-width: 320px;
	max-width: 460px;
	flex: 1 1 360px;
	margin-bottom: 0.2rem;
	color: #e6eaf3;
}

.card-title {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.65rem;
	color: #9fd8ff;
}

.snapshot-controls {
	display: flex;
	gap: 0.6rem;
	margin-bottom: 0.8rem;
}

.snapshot-controls input[type="text"] {
	background: #232846;
	color: #e6eaf3;
	border: 1px solid #2e3657;
	border-radius: 6px;
	padding: 0.45rem 0.7rem;
	font-size: 0.95rem;
}

.snapshot-controls button {
	background: #6ee7b7;
	color: #181d2f;
	border: none;
	border-radius: 6px;
	padding: 0.45rem 0.9rem;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}

.snapshot-controls button:hover {
	background: #4fd1c5;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
	color: #e6eaf3;
	font-size: 0.85rem;
}

th,
td {
	border-bottom: 1px solid #232846;
	padding: 0.42rem 0.56rem;
	text-align: left;
}

th {
	color: #6ee7b7;
	font-weight: 700;
	background: #181d2f;
}

tr:last-child td {
	border-bottom: none;
}

.spinner {
	border: 8px solid #f3f3f3;
	border-top: 8px solid #3498db;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.site-footer {
	margin-top: 1rem;
	border-top: 1px solid #2a3140;
	padding: 1rem 1.2rem 1.4rem;
	color: #9cb0cc;
	text-align: center;
	font-size: 0.82rem;
}