/* ---------- GLOBAL RULES ---------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import 'colors.css';

body {
	margin: 0;
}

#theme-container {
	color: var(--fg);
	background-color: var(--bg);
}

.container {
	display: grid;
	grid-template-columns: 15% auto;

	font-family: 'Roboto', sans-serif;
	font-size: 18px;
	line-height: 1.6;
}

.content-container {
	display: flex;
	flex-direction: column;

	max-width: 800px;
	min-height: 100vh;

	margin-left: auto;
	margin-right: auto;
	padding-left: 5%;
	padding-right: 10%;
}

header {
	padding: 1em 0;
	text-align: center;
}

h1,
h2,
h3,
h4 {
	line-height: 1.2;
	color: var(--fg-bright);
}

h1 {
	margin: 1.5em 0 1em;
}

h2 {
	margin: 1.25em 0 1em;
}

h3 {
	margin: 1em 0 0.5em;
}

h4 {
	margin: 1em 0 0.75em;
	color: var(--white);
}

p {
	margin-top: 0;
	margin-bottom: 0.5em;
}

img.inline-image {
  height: 0.8em;
}

hr {
	border-width: 1px;
	border-color: var(--bg-bright);
}

pre {
	background: var(--black);
	overflow: auto;
	font-family: 'JetBrains Mono', monospace;
	padding: 1em;
	margin: 1em 0;
	border-radius: 0.5em;
}

:not(pre)>code {
	background: color-mix(in srgb, var(--bg) 30%, var(--black));
	border-radius: 0.2em;
	font-size: 0.9em;
	padding: 0.1em;
}

:not(pre, a)>code {
	color: var(--accent-color3);
}

a {
	position: relative;
	text-decoration: none;
	color: var(--link-color);
	transition: transform .25s ease;
}

a:hover {
	text-decoration: underline;
}

a.active {
	color: var(--accent-color);
}

link {
	color: var(--link-color);
}

blockquote {
	border-left: .25em solid var(--bg-brighter);
	margin: 1em 0;
	padding: 0 1em;
	color: color-mix(in srgb, var(--fg-dark) 80%, var(--bg-brighter));
}

table {
	width: 100%;
	border-collapse: collapse;
}

table th,
table td {
	padding: 0.7em 0.9em;
	border: 1px solid var(--black);
	text-align: left;
}

table th {
	background-color: color-mix(in srgb, var(--bg-bright) 70%, var(--bg-brighter));
	font-weight: bold;
	font-size: 1.25em;
}

table tr:nth-child(even) {
	background-color: var(--bg-bright);
}

table tr:hover {
	background-color: var(--bg-brighter);
}

button {
	font-size: 1.25em;
	background-color: var(--bg-bright);
	color: var(--fg);
	border: 1px outset var(--fg-bright);
	border-radius: 5px;
	cursor: pointer;
}

button:disabled {
	background-color: var(--bg-brighter);
	color: var(--fg-dark);
	cursor: not-allowed;
	opacity: 0.5;
	border: 1px solid var(--fg-dark);
}

.navbar {
	display: flex;
	flex-direction: column;
	border-right: 2px solid var(--fg-dark);
}

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

/* Navbar */
.navbar ul li {
	display: block;
	padding: 0.5em 1em;
	text-align: left;
	border-bottom: 1px solid var(--bg-brighter);
}

.navbar ul li.header {
	background-color: var(--bg-bright);
	font-weight: 600;
	text-align: center;
}

.navbar ul li a {
	text-align: center;
	font-size: 0.85em;
	overflow-wrap: normal;
}

.navbar ul li.header a {
	font-size: 1em;
}

/* Checkbox to disable data collection on execution */
.disable-checkbox {
	margin: 1em 0;
	display: flex;
	align-items: flex-start;
}

.disable-checkbox input[type="checkbox"] {
	width: 1.2em;
	height: 1.2em;
	vertical-align: middle;
	accent-color: var(--accent-color2);
}

.disable-checkbox label {
	color: var(--fg-dark);
	font-size: 0.7em;
	/* line-height: 1.2; /* Compact line height to allow wrapping */
	display: inline-block;
	vertical-align: middle;
	/*max-width: calc(100% - 40px); /* Adjust max width for text wrapping */
}

/* Selectors for execution or historical data view in microbenhcmark pages*/
.microbenchmark-view-selectors {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	flex-direction: row;
}

#execution-view {
	display: flex;
	flex-direction: column;
}

/* Filters in the historical data view */
.data-filter {
	margin: 1em 0 0 0;
	display: flex;
	justify-content: left;
	align-items: center;
	gap: 5px;
	flex-direction: row;
}

.data-filter label {
	font-size: 1.15em;
	font-weight: bold;
	width: 8em;
	flex-shrink: 0;
}

.data-filter select {
	padding: 2px;
	font-size: 1em;
	border: 1px solid var(--fg-dark);
	border-radius: 4px;
	background-color: var(--bg-bright);
	cursor: pointer;
	flex-grow: 1;
}

#refresh-button {
	padding: 0.2em;
	padding-top: 0.3em;
	border: none;
	background: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1.5em;
}

#refresh-button svg {
	color: var(--success-color);
	width: 25px;
	height: 25px;
}

/* =================== Responsiveness =================== */

/* Extra Small Devices (Phones) */
@media (max-width: 575px) {
	.container {
		font-size: 16px;
		display: flex;
		flex-direction: column;
	}

	.content-container {
		margin: 0 auto;
		padding: 0 10px;
	}

	.navbar {
		border-right: none;
	}

	.navbar ul li {
		padding: 0.3em 1em;
		text-align: left;
	}

	.navbar ul li.header {
		text-align: center;
	}

	header {
		padding: 0.5em 0;
	}

	h1,
	h2,
	h3,
	h4 {
		margin: 1em 0 0.5em;
	}

	.microbenchmark-view-selectors {
		flex-direction: column;
	}
}

/* Small Devices (Tablets) */
@media (min-width: 576px) and (max-width: 767px) {
	.container {
		font-size: 17px;
		grid-template-columns: 20% auto;
	}
}

/* Medium Devices (Tablets and Small Laptops) */
@media (min-width: 768px) and (max-width: 991px) {
	.container {
		font-size: 18px;
		grid-template-columns: 20% auto;
	}
}

/* Large Devices (Laptops and Desktops) */
@media (min-width: 992px) and (max-width: 1199px) {
	.container {
		font-size: 18px;
	}
}

/* Extra Large Devices (Large Laptops and Desktops) */
@media (min-width: 1200px) {
	.container {
		font-size: 20px;
	}
}
