@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

:root {
		--primary		: #08a0df;
		--secondary	: #1EB7F7;
		--accent		: #0680B2;
		--bg-color	: #f8f8fc;
		--txt-color	: #0a0b14;
		--outline 	: rgba(0, 0, 0, 0.1);
		--card-bg		: hsl(233, 54%, 54%, 5%);
		--card-sdow	: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}	

[DarkMode] {
		--primary		: #3645b5;
		--secondary	: #1b2779;
		--accent		: #182aa0;
		--bg-color	: #030307;
		--txt-color	: #ebecf5;
		--outline 	: rgba(255, 255, 255, 0.1);
		--card-bg		: hsl(233, 54%, 46%, 5%);
		--card-sdow : 0 0.125rem 0.25rem rgba(0, 0, 0, 0.065);

}


*, ::before, ::after {
  	box-sizing: border-box;
  	margin:0;
  	padding:0;

}

body {
	font-size: 1rem;
	margin: 0;
	font-family: 'Poppins', ui-sans-serif;
	word-wrap: break-word;
	background: var(--bg-color);
	color: var(--txt-color);
	min-height: 100vh;
}

header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
}

h1, h2, h3, h4 {
	margin: 0.01rem 0;
}

h1 {
	font-size: 1.8rem;
}

h2 {
	font-size: 1.3rem;
	padding-left: 20px;
}

h3 {
	font-size: 1.0rem;
	padding-left: 40px;
}

h4 {
	font-size: 0.8rem;
	font-style: italic;
	padding-left: 60px;
}

a {
	text-decoration: none;
	color: var(--accent);
}
a:hover {
	text-decoration: underline;

}

.container, footer, header {
	max-width: 70rem;
	margin: 0 auto;
}

.footer {
  padding: 1rem;
  text-align: center;
  border-top: 2px solid var(--card-bg);
  margin: 4em 0 2em;
  font-size: 1.2em;

}
.footer p {
	margin: 0.2em 0;
}
.footer ul {
	list-style: none;
	display: inline-block;
}

.footer li {
	float: left;
}
.footer li:not(:last-child)::after {
	display: inline-block;
	margin: 0 0.5em;
	content: "/";
}

.center {
	min-height: 100vh;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.p404 {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
  	height: 80vh;
}
.p404 h1{ font-size:20em; }
.p404 h2{ font-size:4em;  }

.grid            { display: flex; flex-wrap: wrap; column-gap: 0.875rem; }
.grid > * 	     { margin: 0.5em 0; }
.grid.\-middle   { align-items: center; }
.grid.\-center   { justify-content: center; }
.grid.\-between  { justify-content: space-between; }
.grid.\-around   { justify-content: space-around; }
.cell            { flex: 1; box-sizing: border-box; }

@media screen and (min-width: 768px) {
	.cell.c1    { flex: 0 0 calc(100% * 1 / 12); }
	.cell.c2    { flex: 0 0 calc(100% * 2 / 12); }
	.cell.c3    { flex: 0 0 calc(100% * 3 / 12); }
	.cell.c4    { flex: 0 0 calc(100% * 4 / 12); }
	.cell.c5    { flex: 0 0 calc(100% * 5 / 12); }
	.cell.c6    { flex: 0 0 calc(100% * 6 / 12); }
	.cell.c7    { flex: 0 0 calc(100% * 7 / 12); }
	.cell.c8    { flex: 0 0 calc(100% * 8 / 12); }
	.cell.c9    { flex: 0 0 calc(100% * 9 / 12); }
	.cell.c10   { flex: 0 0 calc(100% * 10 / 12); }
	.cell.c11   { flex: 0 0 calc(100% * 11 / 12); }
}

@media (max-width: 768px) {
	.grid {
		flex-direction: column;
	}
	.cell {
		flex: 0 0 auto;
	}

	.container {
		padding: 10px;
	}

	footer {
		font-size: 0.8em !important;
	}

	footer p{
		margin:unset !important;
	}
	.search{
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		margin: unset !important;

	}
	header {
		padding: 3px 10px !important;
	}
	header label {
		display: block !important;
	}
	.search input, .search select, input{
		font-size: 1em !important;
	}
	.search select, .input-label input{
		width: 74%;
	}

	.styled-table {
		display: block;
    font-size: 0.8em !important;
  }
  input {
  	padding: 5px 5px !important;
  }
  .notif {
  	font-size: 1em !important;
  }

  .filter input, textarea{
  	width: 100%;
  }

  .button{
  	padding: 5px 20px !important;
  }
  .input-label {
  	margin: 5px 0 !important;
  	width: 100%;
  }
  .input-label label {
  	font-size: 1em !important;
  	width: 120px;
	}

	input[type="radio"] {
		width: 15px;
	}
	.tab {
		margin-top: unset !important;
		justify-content: unset !important;
	}
	.small {
  	margin-left: 0.5em;
	}
	nav {
		display: unset !important;
  	background-color: #08a0dfc7;
		height: 100vh !important;
    left: -100vw !important;
    top: 0 !important;
    width: 100vw !important;
    position: absolute !important;
    text-align: right;

	}
	nav ul {
		display: block !important;
		font-size: 1.5em !important;
  	text-align: center;
	}
	nav ul li {
  	margin: 15px 0;
	}
	nav label {
 		line-height: 3;
  	margin-right: 1rem
	}

}

.bar {
	background: var(--primary);
	color: #fcfffe;
}

.full {
	width: 100%;
}

.load-left {
	float: left;
}

.load-right {
	float: right;
}

.mt {
	margin-top: 5em !important;
}
.button {
	background: var(--primary);
	padding: 9px 20px;
	color: var(--bg-color);
	border-radius: 4px;

}

.button.secondary{
	background: var(--txt-color);
	color: var(--bg-color);
}

.button:hover {
	cursor: pointer;
	background: var(--secondary);
	text-decoration: none;
}

.brand {
	display: flex;
	align-items: center;
	position: relative;
}

header .brand a {
	font-family: serif;
	color: #fcfffe;
	font-size: 1.5em;
}
header a:hover{
	text-decoration: none;
}
header label {
	margin-left: auto;
	display: none;
	font-size: 24px;
}

header label i {
	margin-left: 10px;
}


#menuToggle {
  display: none;
}
#menuToggle:checked + label + nav  {
  left: 0 !important;
  transition: 0.3s;
}

nav {
  display: flex;
  height: auto;
  left: auto;
  position: relative;
 	transform: none;
  transition: none;
  top: auto;
  width: auto;

}
header ul {
	  list-style: none;
		display: flex;
} 
header ul a {
	font-family: 'Poppins', ui-sans-serif !important;
 	padding: 5px 10px;
  border-radius: 5px;
  color: #fcfffe;
}

header ul li:last-child a{
  background: #ea5555;
  margin-left: 5px;
  width: 90%;
}

header ul li a:hover {
  background: var(--bg-color);
  color: var(--txt-color);
}

.card{
	padding: 10px 25px;
	border-radius: 4px;
	background: var(--card-bg);
	box-shadow: var(--card-sdow);

}
.pages{
	text-align: center;
	margin-top: 2em;
}
.pages a{
	cursor: pointer;
	margin: 5px;
  background: var(--accent);
  padding: 10px;
  border-radius: 5px;
  color: #fff;
}

.pages a:hover{
	background: var(--secondary);
}

.pages a.active {
	background: var(--outline);
}

.search {
	display: flex;
	gap: 5px;
	justify-content: center;
	margin: 0 15em;
	flex-direction: column;
}

.search input, .search select, input{
	outline: none;
	border: 1px solid var(--outline);
	font-family: 'Poppins', ui-sans-serif;
	font-size: 1.1em;
  padding: 3px 10px;
  border-radius: 8px;
}

.stats{
	margin-top: 2em;
}

.stat {
	align-content: center;
	text-align: center;
}
.stat p:first-of-type {
  font-weight: bold;
  font-size: 1.3em;
}
p.stat {
  font-size: 1.5em;
}

.filter {
	display: flex;
  justify-content: space-between;
  margin: 1em 0;
}
.filter input {
	margin-left: auto;
}

.input-label {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.input-label label {
	font-size: 1.1em;
	 width: 170px;
}

.input-label select, .input-label input {
	margin: 0 0.5em;
	width: 100%;
}

.bye {
  display: flex;
  align-items: center;
  margin-left: 1em;
  margin-bottom: 0.5em;

}
.bye label {
  margin-right: 0.5em;
}

.tab {
	display: flex;
	justify-content: center;
	font-size: 1.1em;
  margin-top: 1em;
}

input[type="radio"] {
	margin: 0 5px;
}

.logbook, .report{
	text-align: center;
	font-size: 1.3em;
	margin-top: 1em;
}

.logbook textarea {  
	font-size: 0.8em;
  font-family: Arial, Helvetica, sans-serif;
  padding: 5px;   
}

.report textarea {
  width: 100%;
}



.login {
  margin: 0 auto;
  padding: 2em;
}


.login p{
	margin-bottom: 1em;
  font-size: 2em;
  text-align: center;
}
.login .input-label{
	margin: 1em;
}

.login .small {
  margin-left: 1.5em;
}
/* Loading */

.loading{
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed; 
	z-index: 1; 
	left: 0;
	top: 0;
	height: 100vh;
	width: 100%;
	background-color: rgba(0,0,0,0.85); 
	transition: .3s all ease-in-out;
}

.loader {
  width: 150px;
  aspect-ratio: 1;
  --c:no-repeat radial-gradient(farthest-side,#5f71e7 92%,#0000);
  background: 
    var(--c) 50%  0, 
    var(--c) 50%  100%, 
    var(--c) 100% 50%, 
    var(--c) 0    50%;
  background-size: 10px 10px;
  animation: l18 1s infinite;
  position: relative;
}
.loader::before {    
  content:"";
  position: absolute;
  inset:0;
  margin: 3px;
  background: repeating-conic-gradient(#0000 0 35deg,#5f71e7 0 90deg);
  -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 3px),#000 0);
  border-radius: 50%;
}
@keyframes l18 { 
  100%{transform: rotate(.5turn)}
}

.notifx {
  width: 80%;
  display: block;
  padding: 5px;
  text-align: center;
  margin: 0 auto;
  border-radius: 10px;

}
.notifx.success {
	background: #5cb85c;
  color: #fff;
}

.notifx.error {
	background: #ea5555;
  color: #fff;
}
.notif {
	text-align: center;
	margin-top: 1em;
  font-size: 2em
}


.styled-table {
    border-collapse: collapse;
    margin-top: 0.8em; 
    font-family: sans-serif;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    width: 100%;
  	overflow-x: auto;
    white-space: nowrap;
}

.styled-table thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}

.styled-table th {
	background: var(--accent);
	color: #eee;
}

.styled-table th,
.styled-table td {
    padding: 10px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--accent);
}

.styled-table tbody tr:hover {
  color: var(--accent);
}


.show {
	visibility: visible !important;
	opacity: 1 !important;
	transition: visibility 0s, opacity 0.5s linear;
}

