/* ----------------- layout ------------------------------------------------ */
.container {
	display: flex;
	height: 100vh;
}

/* ----------------- left menu -------------------------------------------- */
.menu {
	flex: 0 0 200px;
	background: #f0f0f0;
	padding: 10px;
}

.menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu a {
	display: block;
	padding: 10px;
	text-decoration: none;
	color: #000;
}

.menu a:hover {
	background: #e0e0e0;
}

/* ----------------- right side ------------------------------------------- */
.table-container {
	flex: 1;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	overflow-y: auto;
}

.page-header h1 {
	margin: 0 0 6px 0;
}

.page-header p {
	margin: 0;
	color: #666;
}

/* ----------------- analytics sections ----------------------------------- */
#analytics_sections {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.analytics-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-bottom: 28px;
	border-bottom: 1px solid #e5e5e5;
}

.analytics-section:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.analytics-section h2 {
	margin: 0;
}

/* ----------------- top bar ---------------------------------------------- */
.top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 15px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	gap: 16px;
	flex-wrap: wrap;
}

.top-bar-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.analytics-section button,
.analytics-button {
	background: #28bb65;
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-family: inherit;
}

.analytics-section button:hover,
.analytics-button:hover {
	background: #239d55;
}

.analytics-section button:disabled,
.analytics-button:disabled {
	background: #a8a8a8;
	cursor: not-allowed;
}

/* ----------------- status panel ----------------------------------------- */
.status-panel {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.status-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.progress-bar {
	width: 100%;
	height: 18px;
	background: #f0f0f0;
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid #ddd;
}

.progress-bar-fill {
	height: 100%;
	width: 0%;
	background: #28bb65;
	transition: width 0.3s ease;
}

/* ----------------- empty state ------------------------------------------ */
.empty-state {
	padding: 20px;
	border: 1px dashed #ccc;
	border-radius: 4px;
	background: #fafafa;
	color: #666;
}

/* ----------------- toggles ---------------------------------------------- */
.analytics-section label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 16px;
	cursor: pointer;
	user-select: none;
}

/* ----------------- table ------------------------------------------------- */
table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-family: 'Roboto Mono', monospace;
}

th,
td {
	border: 1px solid #ddd;
	padding: 8px;
	text-align: right;
	vertical-align: top;
	font-family: 'Roboto Mono', monospace;
}

th:first-child,
td:first-child {
	text-align: left;
}

th {
	background: #f2f2f2;
}

tbody tr:nth-child(even) {
	background: #f9f9f9;
}

.analytics-section table th[title] {
	cursor: help;
}

/* ----------------- util -------------------------------------------------- */
.hidden {
	display: none !important;
}

@font-face {
	font-family: 'Roboto Mono';
	src: url('static/RobotoMono-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'Roboto Mono';
	src: url('static/RobotoMono-Italic.ttf') format('truetype');
	font-weight: 400;
	font-style: italic;
}

@font-face {
	font-family: 'Roboto Mono';
	src: url('static/RobotoMono-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: 'Roboto Mono';
	src: url('static/RobotoMono-BoldItalic.ttf') format('truetype');
	font-weight: 700;
	font-style: italic;
}