/* Inspired by: suckless.org and codesalad/admin-panel */
* {
	color: #c9d1d9;
	font-family: Open Sans, Arial;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

body {
	overflow-x: hidden;
	background: #080808;
}

main {
	padding: 40px;
	max-width: 1200px;
	margin: 0 0 0 300px;
}

.leftSection {
	float: left;
	padding: 1em;
	width: 300px;
	height: 100dvh;
	border-right: 1px solid #18181b;
}

.sidebar {
	display: grid;
}

/* nav */
.navItem {
	padding: 0.7rem;
	text-decoration: none;
	border-radius: 7px;
	transition: all 0.2s ease;
}

.navItem:hover {
	background-color: #18181b;
}

main>h1,
main>h2 {
	padding: 20px 0 20px;
}

h1 {
	font-size: 40px;
}

h2 {
	font-size: 30px;
}

li {
	margin: 0 0 20px 2rem;
}

a {
	color: #8e96f0;
}

code {
	background: #18181b;
	padding: .125rem .25rem;
}

footer {
	padding: 5px;
}

footer a {
	float: right;
}

/* Inputs */
.inputWrapper {
	position: relative;
}

.textInput {
	background: #09090b;
	border: none;
	outline: none;
	width: 100%;
	padding: 20px 15px 10px 15px;
	box-shadow: 0 0 0 1px #27272a;
	color: #fff;
	font-size: 1rem;
	border-radius: 7px;
	transition: box-shadow .25s ease;
}

textarea.textInput {
	height: 250px;
	resize: vertical;
}

.textInput:focus {
	box-shadow: 0 0 0 1px #9889fc, 0 0 0 4px #7759f9;
}

.floatingLabel {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.25rem;
	color: #71717a;
	pointer-events: none;
	transition: all 0.2s ease;
}

.textInput:focus+.floatingLabel,
.textInput:not(:placeholder-shown)+.floatingLabel {
	top: 6px;
	font-size: 0.75rem;
	color: #9889fc;
	transform: translateY(0);
}

.genericRow .inputWrapper {
	flex: 1;
	width: 100%;
}

/* Ensure input fills its wrapper */
.inputWrapper .textInput {
	width: 100%;
}

/* Generic */
.genericRow {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.genericRow>input,
.genericRow>.selectWrapper,
.genericRow>button,
.genericRow>select,
.genericRow>textarea {
	flex: 1;
	max-width: 100%;
}

.genericRow label {
	flex: 0 0 150px;
	text-align: right;
	white-space: nowrap;
}

.genericRow textarea {
	height: 250px;
	resize: vertical;
}

.genericWrapper {
	background-color: #18181b;
	border-radius: 1rem;
	padding: 2rem;
}

.centeredColumn {
	display: flex;
	flex-direction: column;
	max-width: 700px;
	margin-inline: auto;
}

.centeredColumn>h2 {
	margin-bottom: .75rem;
}

.centeredColumn .inputs,
.centeredColumn.inputs {
	display: grid;
	gap: 2rem;
	margin-bottom: 2rem;
}

.error {
	color: red;
}

/* Buttons */
.btn {
	outline: 0;
	border: 0;
	padding: 7px 20px;
	cursor: pointer;
	border-radius: .5rem;
	font-size: 1.2rem;
	transition: all .2s ease;
	text-decoration: none;
}

.btnGreen {
	background: #16a34a;
	color: #fff;
}

.btnRed {
	background: #ef4444;
	color: #fff;
}

.btnRed:hover {
	background: #b91c1c;
}

.btnGreen:hover {
	background: #107736;
	color: #fff;
}

.submitBtn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.uploadBtn {
	cursor: pointer;
	border: 2px dashed white;
	border-radius: 1em;
	padding: 100px 80px;
	text-align: center;
	transition: 0.1s linear;
	width: 100%;
}

.uploadBtn:hover {
	background: #27272a;
}

/* Uploaded files list */

.fileStatus {
	padding-left: 20px;
	margin: 10px 0px 3rem;
}

h4+ul {
	margin-bottom: 5rem;
}

/* Usability on smaller screens */

@media screen and (max-width: 768px) {
	main {
		padding: 20px;
		max-width: 100%;
		margin: 0;
	}

	.leftSection {
		float: none;
		width: 100%;
		height: auto;
		border-right: none;
		border-bottom: 1px solid #18181b;
	}

	.genericRow {
		flex-direction: column;
	}

}