@font-face {
	font-family: "Ubuntu";
	src: url(Ubuntu-Regular.ttf);
	font-weight: normal;
}

@font-face {
	font-family: "Ubuntu";
	src: url(Ubuntu-Bold.ttf);
	font-weight: bold;
}

:root {
	--primary: #009fe3;
	--bg: #fafafa;
	--border: #e3e3e3;
	--disabled: #c7d0d1;
	--border-dark: #bababa;
	--border-darker: #ababab;
}

* {
	box-sizing: border-box;
}

[x-cloak] {
	display: none !important;
}

body {
	font-family: "Ubuntu", sans-serif;
	margin: 0;
	line-height: 1.5;
	background-color: var(--bg);
}

main {
	margin: 50px auto;
	max-width: 850px;
	padding: 0 25px;
}

a {
	color: var(--primary);
	text-decoration: underline;
}

.container {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.navbar {
	background-color: white;
	border: 1px solid var(--border);
	position: absolute;
	font-size: 1.1em;
	top: 0;
	left: 0;
	width: 100%;
}

.navbar-row {
	padding: 10px;
	display: flex;
	justify-content: space-between;
}

.navbar-col {
	padding: 10px;
	display: flex;
	flex-direction: column;
}

.btn-link {
	color: black;
	user-select: none;
	text-decoration: none;
	border: none;
	padding: 8px 13px;
	border-radius: 5px;
	cursor: pointer;
}

.btn-link:hover {
	background-color: #f5f5f5;
}

.active-nav-item {
	color: var(--primary);
	text-decoration: underline !important;
}

.list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.item {
	background-color: white;
	border: 1px solid #e3e3e3;
	border-radius: 5px;
	display: flex;
	flex-direction: column;
	justify-content: start;
	width: 100%;
	font-size: 1.1em;
}

.item-actions {
	display: inline-flex;
	gap: 6px;
	border-top: 1px solid var(--border);
	padding: 15px;
}

.item-info {
	padding: 15px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.desktop {
	display: none;
}

.mobile {
	display: block;
}

@media (min-width: 700px) {
	.navbar {
		position: inherit;
		border-radius: 5px;
	}
	.item {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: 15px;
	}
	.item-actions {
		display: inline-flex;
		gap: 6px;
		border: none;
		padding: 0;
	}
	.item-info {
		padding: 0;
	}

	.desktop {
		display: block;
	}

	.mobile {
		display: none;
	}
}

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

.badge {
	padding: 4px 6px;
	margin-left: 8px;
	font-size: 0.7em;
	border: 1px solid var(--primary);
	border-radius: 5px;
}

section {
	background-color: white;
	border: 1px solid var(--border);
	border-radius: 5px;
	font-size: 1.1em;
}

button {
	border: none;
	background-color: var(--primary);
	padding: 10px 20px;
	border-radius: 5px;
	color: white;
	cursor: pointer;
	font-size: 0.9em;
	height: min-content;
}

button:disabled {
	background-color: var(--disabled);
	cursor: not-allowed;
	opacity: 1 !important;
}

button:hover {
	opacity: 0.8;
}

.secondary-btn {
	background-color: white;
	border: 1px solid var(--border-dark);
	color: black;
}

.secondary-btn:hover {
	background-color: #f5f5f5;
	border: 1px solid var(--border-darker);
}

.icon-btn {
	display: flex;
	padding: 9px;
}

.icon-btn:disabled {
	background-color: white !important;
	opacity: 0.4 !important;
}

input {
	padding: 6px 10px;
	margin: 4px 0;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 2px;
	outline: none;
}

input:focus {
	border: 1px solid var(--primary);
}

.toast {
	animation-name: pop-in, pop-out;
	animation-duration: 500ms, 500ms;
	animation-delay: 0ms, 2000ms;
	animation-timing-function: ease-in-out, ease-in;
	animation-iteration-count: 1, 1;
	position: fixed;
	bottom: 20px;
	margin-left: auto;
	margin-right: auto;
	left: 0;
	right: 0;
	font-size: 1.1em;
	text-align: center;
	background-color: white;
	width: 300px;
	padding: 15px;
	border: 1px solid var(--border);
	border-radius: 4px;
}

@keyframes pop-in {
	from {
		opacity: 0;
		bottom: 0;
	}

	to {
		opacity: 1;
		bottom: 20px;
	}
}

@keyframes pop-out {
	from {
		opacity: 1;
		bottom: 20px;
	}

	to {
		opacity: 0;
		bottom: 0px;
	}
}

.kamu {
	width: 300px;
	margin-right: 10px;
	margin-left: auto;
	display: flex;
}
