/*load fonts*/
@font-face {
	font-family: "Roboto";
	src: url("../fonts/Roboto-VariableFont_wdth,wght.3aa911d4a1e7.ttf") format("truetype");
	font-optical-sizing: auto;
	font-weight: 125 950;
	font-stretch: 75% 125%;
	font-style: normal;
	font-variation-settings: "wdth" 100;
}

/*defaults*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--base: hsla(202, 0%, 100%);
	--page-base: hsla(202, 0%, 90%);

	--ink-900: hsla(202, 0%, 15%);
	--ink-600: hsla(202, 0%, 40%);

	--links: hsla(202, 98%, 53%);

	--border: hsla(202, 4%, 90%);
	--border-input: hsla(202, 4%, 46%);

	color: var(--ink-900);
	/*background-color: var(--page-base);*/
	/*set base size as 10px*/
	font-size: 0.625em;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

.h1 {
	margin: 0;
	padding: 10px 0px;
}

p {
	text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

/*tags*/
body {
	margin: 0;
	padding: 0;

	min-height: 100svh;
	display: flex;
	flex-direction: column;

	font-family: "Roboto", serif;
	font-size: 1.6rem;
}

main {
	background: var(--base);
}

button {
	background-color: var(--links);
	color: var(--base);
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
}

input {
	line-height: 1.5;
	padding: 12px 20px;
	border: 1.5px solid var(--links);
	border-radius: 8px;
	width: 100%;
}

a {
	color: var(--links);
	font-weight: 500;
	text-decoration: none;
}

ul {
	list-style: none;
}

/*utilities*/
.flex-row {
	display: flex;
	flex-direction: row;
}

.flex-column {
	display: flex;
	flex-direction: column;
}

.flex-auto {
	display: flex;
	flex-direction: column;
}

@media screen and (min-width: 600px) {
	.flex-auto {
		flex-direction: row;
	}
}

.flex-grow {
	flex-grow: 1;
}

.gap-6-12 {
	gap: 6px 12px;
}

.gap-8 {
	gap: 8px;
}

.gap-12 {
	gap: 12px;
}

.gap-16 {
	gap: 16px;
}

.gap-20 {
	gap: 20px;
}

.flex-space-between {
	justify-content: space-between;
}

.flex-align-center {
	align-items: center;
}

.flex-center {
	justify-content: center;
	align-items: center;
}

.width-full,
.full-width,
.width-100p {
	width: 100%;
}

/*colors*/
.sub,
.mute,
.ink-600 {
	color: var(--ink-600);
}

.bg-base {
	background: var(--base);
}

/*typography*/
.strong {
	font-weight: 600;
}

.text-align-center {
	text-align: center;
}

.text-align-end {
	text-align: end;
}

.smaller {
	font-size: 0.85em;
}

.larger {
	font-size: 1.2em;
}

/*spacing*/
.padding-8 {
	padding: 8px;
}

.padding-2-6 {
	padding: 2px 6px;
}

.border {
	border: 1px solid var(--border-color);
}

.border-top {
	border-top: 1px solid var(--border-color);
}

.border-radius {
	border-radius: 4px;
}

.border-radius-8 {
	border-radius: 8px;
}

.border-radius-24 {
	border-radius: 24px;
}

ul.no-style {
	list-style: none;
	padding-left: 0;
}

ul.no-style li {
	padding: 0;
	margin: 0;
}

/* Container for layout */
.container {
	width: 100%;
	max-width: 1020px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Navigation styles */
.border-bottom {
	border-bottom: 1.5px solid var(--border);
}

/* Nav specific buttons */
.logo {
	font-size: 2rem;
	font-weight: 700;
}

/* errors */
.errorlist {
	color: red;
}

/* forms */
form div {
	display: flex;
	flex-direction: column;
	margin: 16px 0;
}

form .errorlist {
	font-weight: 500;
}

form div .helptext {
	color: var(--ink-600);
	font-weight: normal;
	font-size: 0.833em;
}

label {
	font-weight: 600;
	padding-bottom: 8px;
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
.pseudo-textarea,
select {
	padding: 8px 12px;
	border: 1px solid var(--links);
	font-size: 1.8rem;
}

input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus {
	border-color: var(--links);
	outline: none;
}

/* breadcrumbs */
.breadcrumbs:empty {
	display: none;
}

.breadcrumbs ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin: 8px 0;
	padding: 0;
	font-size: 1.4rem;
	font-weight: 500;
	letter-spacing: 0.088px;
	text-transform: none;
	color: var(--ink-600);
}

.breadcrumbs ul li {
	padding: 0;
	margin: 0;
}

.breadcrumbs ul li + li::before {
	content: "/";
	color: var(--ink-600);
	margin: 0 12px;
}

/* Table styles */
.table-container {
	width: 100%;
	height: 70vh;
	overflow-y: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
	font-size: 1.6rem;
}

th {
	text-align: left;
	padding: 12px 16px;
	font-weight: 600;
	border-bottom: 2px solid var(--border);
	position: sticky;
	top: 0;
	background-color: var(--base);
	/* Add a background color to ensure the header is visible */
}

th a {
	color: var(--ink-600);
}

td {
	padding: 8px 12px;
	border-bottom: 1px solid var(--border);
}

/* Striped table rows */
tr:nth-child(even) {
	background-color: hsla(202, 4%, 95%, 0.5);
}

tr:hover {
	background-color: hsla(202, 98%, 95%, 0.3);
}

/* Dropdow */
.dropdown-content {
	position: relative;
}

.dropdown {
	min-width: 100%;
	width: max-content;
	left: 0;
	right: auto;
}

.dropdown {
	box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
	background: var(--base);
	padding: 8px 0;
	border: 0.5px solid var(--links);
	border-radius: 8px;
	max-height: 300px;
	overflow-y: auto;
	position: absolute;
	background: white;
	z-index: 10;
}

.dropdown li {
	padding: 8px;
	cursor: pointer;
}

.dropdown li:hover,
.dropdown li.highlighted {
	background-color: #f0f0f0;
}

.asc::after {
	content: " ⇣";
}

.desc::after {
	content: " ⇡";
}

.green {
	color: goldenrod;
}

.red {
	color: red;
}

/* handle mode */
@media (prefers-color-scheme: dark) {
	:root {
		--base: hsla(202, 10%, 13%);
		--page-base: hsla(202, 10%, 17%);

		--ink-900: hsla(202, 0%, 100%);
		--ink-600: hsla(202, 0%, 70%);

		--links: hsla(202, 98%, 67%);

		--border: hsla(202, 4%, 28%);
		--border-input: hsla(202, 4%, 66%);
	}

	body, main, .bg-base, .container {
		background: var(--base);
		color: var(--ink-900);
	}

	button {
		background-color: var(--links);
		color: var(--base);
	}

	input,
	select,
	textarea,
	.pseudo-textarea {
		background: var(--page-base);
		color: var(--ink-900);
		border: 1px solid var(--border-input);
	}

	input:focus,
	select:focus,
	textarea:focus {
		border-color: var(--links);
	}

	.dropdown {
		background: var(--base);
		color: var(--ink-900);
		border: 0.5px solid var(--links);
	}

	.dropdown li:hover,
	.dropdown li.highlighted {
		background-color: hsla(202, 16%, 22%, 0.85);
	}

	th, td {
		background: var(--base);
		color: var(--ink-900);
	}

	tr:nth-child(even) {
		background-color: hsla(202, 10%, 17%, 0.7);
	}

	tr:hover {
		background-color: hsla(202, 98%, 47%, 0.1);
	}

	.breadcrumbs ul,
	.breadcrumbs ul li {
		color: var(--ink-600);
	}

	a,
	th a {
		color: var(--links);
	}

	.border-bottom {jjj
		border-bottom: 1.5px solid var(--border);
	}

	.errorlist {
		color: #ff8080;
	}
}


