* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

:root {
	/* gray */
	--clr-gray-50: #f9fafb;
	--clr-gray-100: #f3f4f6;
	--clr-gray-200: #e5e7eb;
	--clr-gray-300: #d1d5db;
	--clr-gray-400: #9ca3af;
	--clr-gray-500: #6b7280;
	--clr-gray-600: #4b5563;
	--clr-gray-700: #374151;
	--clr-gray-800: #1f2937;
	--clr-gray-900: #111827;
	--clr-gray-950: #030712;

	/* neutral */
	--clr-neutral-50: #fafafa;
	--clr-neutral-100: #f4f4f5;
	--clr-neutral-200: #e4e4e7;
	--clr-neutral-300: #d4d4d8;
	--clr-neutral-400: #a1a1aa;
	--clr-neutral-500: #71717a;
	--clr-neutral-600: #52525b;
	--clr-neutral-700: #3f3f46;
	--clr-neutral-800: #27272a;
	--clr-neutral-900: #18181b;
	--clr-neutral-950: #09090b;

	/* red */
	--clr-red-50: #fef2f2;
	--clr-red-100: #fee2e2;
	--clr-red-200: #fecaca;
	--clr-red-300: #fca5a5;
	--clr-red-400: #f87171;
	--clr-red-500: #ef4444;
	--clr-red-600: #dc2626;
	--clr-red-700: #b91c1c;
	--clr-red-800: #991b1b;
	--clr-red-900: #7f1d1d;
	--clr-red-950: #450a0a;

	/* orange */
	--clr-orange-50: #fff7ed;
	--clr-orange-100: #ffedd5;
	--clr-orange-200: #fed7aa;
	--clr-orange-300: #fdba74;
	--clr-orange-400: #fb923c;
	--clr-orange-500: #f97316;
	--clr-orange-600: #ea580c;
	--clr-orange-700: #c2410c;
	--clr-orange-800: #9a3412;
	--clr-orange-900: #7c2d12;
	--clr-orange-950: #431407;

	/* yellow */
	--clr-yellow-50: #fefce8;
	--clr-yellow-100: #fef9c3;
	--clr-yellow-200: #fef08a;
	--clr-yellow-300: #fde047;
	--clr-yellow-400: #facc15;
	--clr-yellow-500: #eab308;
	--clr-yellow-600: #ca8a04;
	--clr-yellow-700: #a16207;
	--clr-yellow-800: #854d0e;
	--clr-yellow-900: #713f12;
	--clr-yellow-950: #422006;

	/* green */
	--clr-green-50: #f0fdf4;
	--clr-green-100: #dcfce7;
	--clr-green-200: #bbf7d0;
	--clr-green-300: #86efac;
	--clr-green-400: #4ade80;
	--clr-green-500: #22c55e;
	--clr-green-600: #16a34a;
	--clr-green-700: #15803d;
	--clr-green-800: #166534;
	--clr-green-900: #14532d;
	--clr-green-950: #052e16;

	/* blue */
	--clr-blue-50: #eff6ff;
	--clr-blue-100: #dbeafe;
	--clr-blue-200: #bfdbfe;
	--clr-blue-300: #93c5fd;
	--clr-blue-400: #60a5fa;
	--clr-blue-500: #3b82f6;
	--clr-blue-600: #2563eb;
	--clr-blue-700: #1d4ed8;
	--clr-blue-800: #1e40af;
	--clr-blue-900: #1e3a8a;
	--clr-blue-950: #172554;

	/* primary */
	--clr-primary-50: #f4f3ff;
	--clr-primary-100: #eae9fe;
	--clr-primary-200: #d7d5ff;
	--clr-primary-300: #bab3ff;
	--clr-primary-400: #9889fc;
	--clr-primary-500: #7759f9;
	--clr-primary-600: #7045f2;
	--clr-primary-700: #5624dd;
	--clr-primary-800: #471eb9;
	--clr-primary-900: #3c1a98;
	--clr-primary-950: #220e67;

	/* bg */
	--clr-bg: #0F0F0F;
}

body {
	display: flex;
	min-height: 100dvh;
	max-width: 100dvw;
	margin: 0;
	color: #fff;
	background: var(--clr-bg);
}

svg-icon {
	color: #fff;
}

/* navbar */

.leftSection {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	/* width: 300px; */
	flex-shrink: 0;
	padding: 30px;
	position: relative;
	border-right: 1px solid var(--clr-neutral-900);
}

.sidebar {
	display: grid;
	gap: .75rem;
}

.leftSection svg-icon {
	font-size: 1.25rem;
}

.navItem,
.logOutNav {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: #fff;
	text-decoration: none;
	transition: all .2s ease;
	padding: 0.7rem;
	border-radius: 7px;
}

.leftSection .active,
.navItem:hover,
.logOutNav:hover {
	background: var(--clr-neutral-900);
}

/* main */

.main {
	padding: 30px;
	flex: 2;
	display: flex;
	flex-direction: column;
	/* fix? */
	overflow: auto;
	/* fix? */
}

.navBtn {
	width: fit-content;
	aspect-ratio: 1;
	margin-bottom: 1rem;

	/* I'm overwriting it with !important because the styling for the buttons is at the bottom of the page and is overwriting it*/

	padding: 0px 15px !important;
	font-size: 1rem !important;
}

.welcome {
	margin-bottom: 0.5rem;
}

.welcome .user {
	color: var(--clr-neutral-300);
}

.title {
	margin: 0 0 1rem 0;
}

.submitBtn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

/* global table */

.table {
	border-spacing: 0;
	text-align: left;
	border: 1px solid var(--clr-neutral-800);
	margin-bottom: .5rem;
}

.table td,
.table th {
	vertical-align: middle;
	padding: 15px 25px;
	border-bottom: 1px solid var(--clr-neutral-900);
}

.table tbody tr:hover {
	background-color: var(--clr-neutral-900);
}

.table .actions {
	display: flex;
	gap: 1rem;
	font-size: 1.3rem;
}

.table .actions svg-icon {
	cursor: pointer;
}

.table a {
	line-height: 0;
}

/* hidden form wrap, for button-like hidden forms and its labels to simplify javascript handling */
.hiddenFormWrap {
	line-height: 0;
}

.hiddenFormWrap input {
	display: none;
}

/* right section */

.rightSection {
	padding: 30px;
	flex: 0.85;
}

.account {
	margin-bottom: 1.5rem;
	padding: 20px;
	background-color: var(--clr-neutral-900);
	border-radius: 1rem;
}

.account .accountInfo {
	display: flex;
	gap: 1rem;
	align-items: center;
	user-select: none;
	-webkit-user-select: none;
	cursor: pointer;
}

.account .email {
	color: var(--clr-neutral-400);
}

.account svg-icon {
	font-size: 1.25rem;
	margin-left: auto;
}

.account img {
	width: 50px;
	border-radius: 50%;
	aspect-ratio: 1;
	object-fit: cover;
}

/* more account options */

.account .accountOptionsContainer {
	display: grid;
	grid-template-rows: 0fr;
	transition: all 1s ease;
}

.account .accountOptions {
	overflow: hidden;
	display: grid;
	gap: 1rem;
	font-size: 1.2rem;
}

.account .accountOptions> :nth-child(1) {
	margin-top: 1rem;
}

.account.active .accountOptionsContainer {
	grid-template-rows: 1fr;
}

.accountInfo>svg-icon {
	transition: all 1s ease;
}

.account.active .accountInfo>svg-icon {
	transform: rotate(180deg);
}

.logoutBtn {
	text-decoration: none;
	width: 100%;
}

/* storage */

.storageCard {
	background: var(--clr-neutral-900);
	padding: 30px;
	border-radius: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.storageCard .storageInfo {
	font-size: 1.25rem;
	text-align: center;
	color: var(--clr-neutral-300);
	margin-bottom: 1.5rem;
}

.storageCard .storageInfo span {
	color: #fff;
	font-weight: 600;
}

/* progress bar */

@property --progress-value {
	syntax: "<integer>";
	inherits: false;
	initial-value: 0;
}

.progress-bar {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	margin-bottom: 1.5rem;

	display: flex;
	justify-content: center;
	align-items: center;
}

.progress-bar::before {
	counter-reset: percentage var(--progress-value);
	content: counter(percentage) "%";
	font-size: 1.5rem;
}

.progress-bar {
	background:
		radial-gradient(closest-side, var(--clr-neutral-900) 79%, transparent 80% 100%),
		conic-gradient(#fff calc(var(--progress-value) * 1%), var(--clr-neutral-800) 0);
	animation: html-progress 2s 1 forwards;
}

.progress-bar::before {
	animation: html-progress 2s 1 forwards;
}

/* 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;
	border: 1px solid transparent;
	/* Otherwise buttons with outline change table positions across pages and becomes incosistent*/
}

.btnClear {
	outline: none;
	border: none;
	background: none;
	color: var(--clr-neutral-300);
	cursor: pointer;
}

.btnClear:hover {
	color: var(--clr-neutral-400);
}

.btnGreen {
	background: var(--clr-green-600);
	color: #fff;
}

.btnGreen:hover {
	background: var(--clr-green-700);
}

.btnGreenOutline {
	background: none;
	border: 1px solid var(--clr-green-600);
	color: var(--clr-green-600);
}

.btnGreenOutline:hover {
	background: var(--clr-green-950);
}

.btnPrimary {
	background: var(--clr-primary-500);
	color: #fff;
}

.btnPrimary:hover {
	background: var(--clr-primary-600);
}

.btnPrimaryOutline {
	background: none;
	border: 1px solid var(--clr-primary-800);
	color: #fff;
}

.btnPrimaryOutline:hover {
	background: var(--clr-primary-950);
}

.btnGray {
	background: var(--clr-gray-500);
	color: #fff;
}

.btnGray:hover {
	background: var(--clr-gray-600);
}

.btnOrange {
	background: var(--clr-yellow-500);
	color: #fff;
}

.btnOrange:hover {
	background: var(--clr-yellow-600);
}

.btnRed {
	background: var(--clr-red-500);
	color: #fff;
}

.btnRed:hover {
	background: var(--clr-red-700);
}

.btnWhite {
	background: #fff;
	color: #000;
}

.btnWhite:hover {
	background: var(--clr-neutral-300);
}

.btnWhiteOutline {
	background: #171717;
	border: 1px solid var(--clr-neutral-700);
	color: #fff;
}

.btnWhiteOutline:hover {
	background: var(--clr-neutral-800);
}

.white {
	color: #fff;
}

/* inputs */

/* select box */

.selectWrapper {
	position: relative;
}

.inputWrapper {
	position: relative;
}

select {
	outline: 0;
	border: 0;

	padding: 10px 15px;
	width: 100%;
	box-shadow: 0 0 0 1px var(--clr-neutral-800);
	background: var(--clr-neutral-950);
	border-radius: 7px;
	font-size: 1rem;
	color: #fff;
	appearance: none;
	/* Remove default arrow */
	transition: all 0.3s ease;
}

.selectWrapper svg-icon {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 1.5rem;
	/* set this value to the inline padding of the select box */
}

select:focus {
	box-shadow: 0 0 0 1px var(--clr-primary-400),
		0 0 0 4px var(--clr-primary-500);
	outline: none;
}

/* maybe missing readonly instead of read-only ? */
select option:not(:read-only) {
	padding: 10px;
	color: #000;
}

/* all inputs */

input {
	accent-color: var(--clr-primary-500);
}

/* textarea */

.textarea {
	background: none;
	border: none;
	outline: none;
	resize: vertical;

	background: var(--clr-neutral-950);
	color: #fff;
	padding: 10px 15px;
	font-size: 1rem;
	border-radius: 7px;
	line-height: 1.5;
	overflow: scroll;
	text-wrap: nowrap;
	box-shadow: 0 0 0 1px var(--clr-neutral-800);
	transition: box-shadow .25s ease;
}

.textarea:focus {
	box-shadow: 0 0 0 1px var(--clr-primary-400),
		0 0 0 5px var(--clr-primary-500);
}

/* input */
.textInput {
	background: none;
	border: none;
	outline: none;
	width: 100%;
	background: var(--clr-neutral-950);
	padding: 20px 15px 10px 15px;
	box-shadow: 0 0 0 1px var(--clr-neutral-800);
	color: #fff;
	font-size: 1rem;
	border-radius: 7px;
	transition: box-shadow .25s ease;
}

textarea.textInput {
	height: 250px;
	width: 100%;
	resize: vertical;
}

.textInput:focus {
	box-shadow: 0 0 0 1px var(--clr-primary-400),
		0 0 0 4px var(--clr-primary-500);
}

.floatingLabel {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.25rem;
	color: var(--clr-neutral-500);
	pointer-events: none;
	transition: all 0.2s ease;
}

.subFloatingLabel {
	position: absolute;
	left: 15px;
	top: 75%;
	transform: translateY(-50%);
	font-size: 1.25rem;
	color: var(--clr-neutral-300);
	pointer-events: none;
	transition: all 0.2s ease;
	opacity: 0;
}

.textInput:focus+.floatingLabel,
.textInput:not(:placeholder-shown)+.floatingLabel {
	top: 6px;
	font-size: 0.75rem;
	color: var(--clr-primary-400);
	transform: translateY(0);
}

.textInput:focus~.subFloatingLabel {
	opacity: 1;
	bottom: 6px;
	font-size: 0.75rem;
	color: var(--clr-neutral-300);
	transform: translateY(0);
}

.genericRow .floatingLabel {
	padding: 0;
}

/* form */

form.centeredColumn {
	display: grid;
	gap: 1rem;
}

/* badges */

.badge {
	border-radius: 100vw;
	padding: 1px 10px;
	margin-inline: .5rem;
	font-size: 0.9rem;
}

.badgeGreen {
	background: var(--clr-green-950);
	color: var(--clr-green-300);
}

.badgeOrange {
	background: var(--clr-orange-950);
	color: var(--clr-orange-300);
}

.badgeRed {
	background: var(--clr-red-950);
	color: var(--clr-red-300);
}

/* modal */
.modalContainer {
	background-color: rgba(0, 0, 0, 0.5);
	position: fixed;
	top: 0;
	left: 0;
	width: 100dvw;
	height: 100dvh;
	display: grid;
	place-items: center;
}

.modal {
	background-color: var(--clr-neutral-900);
	border: 1px solid var(--clr-neutral-800);
	border-radius: 1rem;
	padding: 1.5rem;
	display: grid;
	grid-template-columns: 0fr 5fr;
	max-width: 600px;
	width: 100%;
}

.modalType {
	font-size: 2rem;
	margin-right: 1.5rem;
}

.modalHeader {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.modalHeader h3 {
	font-weight: 600;
}

.modalContent {
	/* margin-bottom: 2rem; */
	word-wrap: anywhere;
}

.modalContent>* {
	color: var(--clr-neutral-300);
}

.modalHeader svg-icon {
	font-size: 1.5rem;
	cursor: pointer;
}

.modalActions {
	gap: 2rem;
	display: flex;
	justify-content: right;
	align-items: center;
	flex-wrap: wrap;
}

/*.modalActions:has(.DontShow) {
	justify-content: space-between;
} */

.modalButtons {
	display: flex;
	flex-shrink: 0;
	gap: 0.5rem;
}

/* generic */

.genericWrapper {
	background-color: var(--clr-neutral-900);
	border-radius: 1rem;
}

.centeredColumn {
	display: flex;
	flex-direction: column;
	max-width: 700px;
	margin-inline: auto;
}

.centeredColumn>h2 {
	margin-bottom: .75rem;
}

.centeredColumn label {
	font-size: 1.25rem;
}

.centeredColumn .inputs,
.centeredColumn.inputs {
	display: grid;
	gap: 2rem;
	margin-bottom: 2rem;
}

.centeredColumn .input {
	box-shadow: 0 0 0 1px var(--clr-neutral-800);
	padding: 10px 15px;
	border-radius: 7px;
	height: max-content;
	margin-top: 5px;
	transition: box-shadow .25s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.input.active {
	box-shadow: 0 0 0 1px var(--clr-primary-400),
		0 0 0 4px var(--clr-primary-500);
}

.centeredColumn .input input {
	color: #fff;
	background: none;
	border: none;
	outline: none;
	font-size: 1rem;
	width: 100%;
	padding-right: 20px;
}

.centeredColumn .input input::placeholder {
	color: #fff;
	opacity: 0.66;
}

.centeredColumn .input svg-icon {
	font-size: 1.4rem;
}

.centeredColumn .submitBtn {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: center;
}

.genericRow {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.genericRow>input,
.genericRow>.selectWrapper,
.genericRow>button {
	flex: 1 1 50%;
}

.genericRow>select,
.genericRow>textarea {
	flex: 1;
	max-width: 100%;
}

.genericRow label {
	flex: 0 0 150px;
	text-align: right;
	padding-top: 0.5rem;
	white-space: nowrap;
}

.genericRow select {
	flex: 1;
	min-width: 200px;
	max-width: 100%;
}

.genericRow textarea {
	height: 250px;
	resize: vertical;
}

.genericTabNav {
	border-bottom: 1px solid var(--clr-neutral-800);
	margin-bottom: 1rem;
}

.genericTabLinks {
	list-style: none;
	margin: none;
	padding: none;
	display: flex;
}

.genericTabLinks li a {
	text-decoration: none;
	color: #fff;
	padding: .5rem 1rem;
	display: inline-block;
	font-weight: 400;
	border-right: 1px solid var(--clr-neutral-800);
	position: relative;
}

.genericTabLinks li.active a {
	font-weight: 600;
}

.genericTabLinks li:first-child a::before {
	display: none !important;
}

.genericTabLinks li.active {
	background: var(--clr-neutral-900);
	margin-bottom: -1px;
	position: relative;
}

.genericTabLinks li.active::before {
	--border-radius: .5rem;
	content: "";
	position: absolute;
	background-color: var(--clr-neutral-900);
	width: calc(100% - 2px);
	z-index: -1;
	height: var(--border-radius);
	border: 1px solid var(--clr-neutral-800);
	border-radius: 100vw;
	top: calc(0px - var(--border-radius) / 2);
}

.genericTabLinks li.active a::before,
.genericTabLinks li.active a::after {
	--border-radius: .3rem;

	content: "";
	position: absolute;
	width: var(--border-radius);
	height: var(--border-radius);
	bottom: -1px;
	background: var(--clr-neutral-900);
}

.genericTabLinks li.active a::before {
	left: calc((var(--border-radius) + 1px) * -1);
	border-radius: 0 0 100vw 0;
	box-shadow: 2px 2px 0 1px var(--clr-neutral-900);
	border-right: 1px solid var(--clr-neutral-800);
	border-bottom: 1px solid var(--clr-neutral-800);
}

.genericTabLinks li.active a::after {
	right: calc((var(--border-radius) + 1px) * -1);
	border-radius: 0 0 0 100vw;
	box-shadow: -2px 2px 0 1px var(--clr-neutral-900);
	border-left: 1px solid var(--clr-neutral-800);
	border-bottom: 1px solid var(--clr-neutral-800);
}

.genericTab {
	padding: 1rem;
}

.bottomMargin {
	margin-bottom: 1.5rem;
}

.bottomPadding {
	padding-bottom: 1.5rem;
}

.required::after {
	content: "*";
	color: #ff0000;
	margin-left: 5px;
	font-weight: 500;
	font-style: normal;
}

.jsMenuItem {
	cursor: pointer;
}

.anchor {
	color: #8e96f0;
}

#togglePassword {
	cursor: pointer;
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.5rem;
	height: 1.5rem;
}

.green {
	color: var(--clr-green-600);
}

.red {
	color: var(--clr-red-600);
}

/* Seperator with centered text */

.lineWithSpace {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	width: 100%;
}

.lineWithSpace::before,
.lineWithSpace::after {
	content: "";
	flex: 1;
	border-bottom: 1px solid #6b7280;
}

.lineWithSpace::before {
	margin-right: 10px;
}

.lineWithSpace::after {
	margin-left: 10px;
}