:root {
	/* colors */
	--background: #f0f6f6;
	--primary: #0075ff;
	--secondary: #0061cf;
	--warning: #e82e23;
	--success: #0da600;
	--neutral: #fff;
	--dim: #f6f6f6;
	--dark: #bababa;

	/* font */
	--default-font: 'Raleway', sans-serif;
	
	/* shadow */
	--box-shadow: 0 6px 21px 8px rgba(0, 0, 0, 0.07);

	/* padding */
	--page-padding: 0 4em;

	/* margin */
	--page-margin: 4em 0;
}

html {
	background-color: var(--background);
	font-size: 20px;
	font-family: var(--default-font);
}

@media only screen and (max-width: 720px) {
	html {
		font-size: 16px;
	}
}

@media only screen and (max-width: 500px) {
	html {
		font-size: 14px;
	}
}

body {
	padding: 0;
	margin: 0;
}

/* shared style */
input[type="text"], input[type="password"], input[type="tel"], select {
	background-color: var(--dim);
	border: none;
	border-radius: .5em;
	padding: .8em 1em;
	font-family: var(--dafault-font);
	font-weight: 600;
	font-size: .8em;
	margin-bottom: 1.5em;
}

input[type="submit"] {
	background-color: var(--success);
	border: none;
	padding: .5em 1em;
	border-radius: .5em;
	color: var(--neutral);
	font-size: 1.2em;
	font-weight: bold;
}

input[type="submit"]:hover {
	cursor: pointer;
}

label {
	margin-bottom: .5em;
}

.warning {
	font-size: .8em;
	color: var(--warning);
	font-style: italic;
	margin-bottom: 2em;
}

.tag {
	position: absolute;
	top: 0;
	left: 0;
	transform: translate(-15%, -50%);
	background-color: var(--primary);
	border-radius: .5em;
	color: var(--neutral);
	font-weight: bold;
	font-size: 1.2em;
	min-width: 6em;
    height: 2.5em;
	display: flex;
	/* gap: 1em; */
    align-items: center;
	justify-content: space-evenly;
	overflow: hidden;
	/* padding: 0 .8em; */
}

.tag a, .tag span {
	height: 100%;
	flex: 1;
	padding: 0 .6em;
	display: flex;
	align-items: center;
}

.tag a {
	flex: 0;
	background-color: var(--secondary);
}

a {
	display: block;
	text-decoration: none;
	color: var(--primary);
}

.floating-button {
	position: fixed;
	right: 1.5em;
	bottom: .5em;
	background-color: var(--primary);
	box-shadow: var(--box-shadow);
	padding: .6em 1em;
	color: var(--neutral);
	border-radius: 2em;
	font-weight: 500;
}



/* index.php */
.login-form {
	margin: auto;
	width: 16em;
	/* max-height: 16em; */
	height: fit-content;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 3em 2em 2em;
	background-color: var(--neutral);
	border-radius: 1em;
	box-shadow: var(--box-shadow);
}

.login-form section {
	display: flex;
	flex-direction: column;
	margin: .5em 0 0;
}

/* list-user.php */
.page {
	padding: var(--page-padding);
	margin: var(--page-margin);
}

.object-list {
	padding: 1.5em;
	background-color: var(--neutral);
	border-radius: 1em;
	box-shadow: var(--box-shadow);
}

.object-list .tag {
	top: 6em;
	left: 2em; 
	transform: none;
}


.object-list table {
	width: 100%;
	border-collapse: collapse;
	background-color: var(--neutral);
	table-layout: fixed;
}

.object-list table thead {
	height: 2.5em;
	border-bottom: 1px solid var(--dark);
}

.object-list table tbody tr {
	height: 2.5em;
	text-align: center;
}

.operation-form {
	display: flex;
	height: inherit;
	align-items: center;
	justify-content: center;
	gap: 1em;
}

.operation-form form{
	float: left;
	text-align: center;
}

.operation-form form input[type="submit"] {
	background: none;
	border: none;
	color: black;
	transition: color .2s;
}

.operation-form form input[type="submit"]:hover {
	color: var(--primary);
}

.operation-form form:last-child input[type="submit"]:hover {
	color: var(--warning);
}

.operation-form form input[type="submit"]:hover {
	cursor: pointer;
}

.object-list table tbody tr:nth-child(odd) {
	background-color: var(--dim);
}

/* add-user */
.add-user {
	width: 50%;
	margin: auto;
	display: flex;
	flex-direction: column;
}

.page .add-user a {
	margin-bottom: 2em;
}

/* edit-user */
.toggle-button {
	margin: auto;
	border: none;
	border-radius: 2em;
	height: 2.8em;
	width: 5.3em;
	display: flex;
	align-items: center;
}

.toggle-button:hover {
	cursor: pointer;
}

.toggle-button div {
	position: relative;
	width: 1.9em;
	height: 1.9em;
	border-radius: 2em;
	background-color: white;
	transition: left .2s;
}

.toggle-button input[type="submit"] {
	background-color: transparent;
	padding: 0;
	margin: 0;
}

.enabled {
	background-color: var(--success);
}

.enabled div {
	left: 2.3em;
}

.disabled {
	background-color: var(--warning);
}

.disabled div {
	left: 0;
}

.links {
	display: flex;
	gap: 2em;
	justify-content: space-between;
}

/* nav */
nav {
	position: sticky;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4em;
	background-color: var(--neutral);
	box-shadow: var(--box-shadow);
	padding: var(--page-padding);
}

nav h1 {
	margin: 0;
	font-size: 1.2em;
}

nav a {
	color: black;
}




.clickable:hover {
	color: #0061cf;
	font-weight: 1000;
}





#search {
	display: flex;
	gap: 10px;
	height: 3rem;
	margin-top: 1rem;
	margin-bottom: 2rem;
}

#search input[type='text'] {
	flex: 1;
	margin-bottom: 0;
}
