:root {
  --base-font: Work Sans, Arial, Helvetica, sans-serif;
  --black: #000;
  --blue: #004cbe;
  --brown: #794c2c;
  --button: #87a878;
  --dark-blue: #173359;
  --dark-green: #87a878;
  --dark: rgba(0, 0, 0, 0.3);
  --gray: #777;
  --green: #2ec27e;
  --highlight: #be7c4d;
  --light: #f8f8f8;
  --medium: #b5bad0;
  --ocre: #be7c4d;
  --radius: 0.4rem;
  --radius2: 1rem;
  --shadow: rgba(0, 0, 0, 0.2);
  --text: #3a3b3f;
  --white: #fff;
}

:root {
  scrollbar-width: thin;
  scrollbar-color: black transparent;
}

::-webkit-scrollbar,
.content::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb {
  background-color: #000;
}

* {
  box-sizing: border-box;
  font-size: 1rem;
}

html {
  font-size: calc(60% + 0.8vmin);
}

body {
  font-family: var(--base-font);
  margin: 0;
}

h1 {
  color: var(--blue);
  font-size: 2.2rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.3rem;
}

h1,
h4 {
  margin: 0;
}

a {
  color: var(--dark-blue);
  font-weight: bold;
  text-decoration: none;
}

img {
  max-width: 100%;
}

address {
  font-style: normal;
}

blockquote {
  border-bottom: 2px solid var(--light);
  border-top: 2px solid var(--light);
  color: var(--ocre);
  font-size: 2rem;
  font-weight: bolder;
  margin: 2rem 0;
  padding: 2rem;
  text-align: center;
  width: 100%;
}

p {
  color: var(--text);
  opacity: 0.8;
}

input,
button,
textarea,
select {
  font-family: var(--base-font);
}

.grid {
  display: grid;
}

.flex {
  display: flex;
}

.divider {
  border: 0;
  width: 100%;
}

.sidebar {
  align-items: center;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.sidebar div {
  background: var(--dark-blue);
}
.sidebar a {
  background: transparent;
  padding: 0.5rem;
  transition: all 0.2s;
  padding: 1rem;
  width: 100%;
  text-align: center;
}
.sidebar a:hover {
  background: #efefef;
}
.sidebar i {
  font-size: 1.7rem;
  color: #000;
}

.form {
  display: grid;
  height: calc(90vh - 4rem);
  overflow: scroll;
}
.form .fields {
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.hero {
  background: no-repeat center;
  background-size: contain;
  position: relative;
}
.hero h1 {
  color: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0.5rem;
  margin: 0;
}

.image-link {
  background: no-repeat center;
  background-size: contain;
  padding-bottom: 56.25%;
  position: relative;
  transition: filter 0.2s;
}
.image-link:hover {
  filter: brightness(0.9);
}
.image-link h3 {
  color: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0.5rem;
  margin: 0;
}

.pagination {
  display: flex;
  margin: auto;
  justify-content: center;
}
.pagination button {
  background: transparent;
  border: 0;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.pagination button i {
  font-size: 2rem;
}
.pagination button:hover {
  filter: brightness(1.1);
}
.pagination button:disabled {
  opacity: 0.2;
}

.stats {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.5rem;
}
.stats i {
  font-size: 3rem;
}
.stats div {
  flex-direction: column;
}
.stats h4 {
  line-height: 0.9;
  opacity: 0.5;
  text-transform: uppercase;
}
.stats span {
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.8;
}

.table {
  background: var(--white);
  border-spacing: 0;
  width: 100%;
}
.table tr {
  transition: all 0.2s;
}
.table tr:hover {
  background: var(--light);
}
.table th,
.table td {
  border-bottom: 1px solid #eee;
  padding: 0.5rem;
  text-align: left;
}
.table th i,
.table td i {
  margin-right: 0.5rem;
}

.button {
  border: 0;
  cursor: pointer;
  display: flex;
  gap: 0.25rem;
  font-size: 1rem;
  font-weight: bold;
  align-items: center;
  padding: 0.5rem;
  transition: all 0.2s;
}
.button:hover {
  filter: brightness(1.1);
}

.field-group {
  display: flex;
  flex-direction: column;
}
.field-group label {
  font-weight: bold;
  padding: 0.25rem 0;
}

.field {
  border: 1px solid #eee;
  font-size: 1rem;
  padding: 0.5rem;
  transition: all 0.2s;
  width: 100%;
}
.field:hover {
  background: #f8f8f8;
}
.field::placeholder {
  color: #ccc;
}

.file-field {
  align-items: center;
  background-size: contain;
  background: #fff no-repeat center;
  border-radius: 0.25rem;
  border: 1px solid #eee;
  display: flex;
  height: 4em;
  position: relative;
  transition: filter 0.2s;
}
.file-field:hover {
  filter: brightness(0.9);
}
.file-field i {
  font-size: 3rem;
  padding: 0 1rem;
}
.file-field input {
  display: none;
}

.file-label {
  border-left: 1px dashed #eee;
  cursor: pointer;
  font-weight: bold;
  padding: 1em;
  width: 100%;
}

.file-data {
  display: block;
  font-size: 0.8em;
  font-weight: normal;
  opacity: 0.5;
}

.image-field {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
  position: relative;
}
.image-field input {
  display: none;
}
.image-field label {
  display: grid;
  place-items: center;
  position: absolute;
  top: 0;
  left: 0;
  color: transparent;
  right: 0;
  bottom: 0;
  transition: background 0.2s;
  cursor: pointer;
}
.image-field label:after {
  content: "Foto do estudante";
  font-weight: 900;
  text-transform: uppercase;
  color: white;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 1rem;
  border-radius: 0.5rem;
}
.image-field label:hover {
  background: rgba(0, 0, 0, 0.1);
}
.image-field img {
  height: 100% !important;
  object-fit: cover;
}

.image-button {
  background-size: contain;
  border-radius: 0.25rem;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s;
  background-repeat: no-repeat;
  background-position: center;
}
.image-button:hover {
  filter: brightness(1.1);
}

.footer {
  align-items: center;
  background: var(--white);
  border-top: 1px solid #eee;
  display: flex;
  grid-column: 1/3;
  justify-content: center;
  text-align: center;
}

.header {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}
.header div {
  padding: 1rem;
}
.header h1 {
  font-size: 2rem;
  line-height: 1;
  color: #000;
}
.header p {
  margin: 0;
}

.simple-layout {
  background: url(/images/back.jpg) no-repeat center;
  background-size: cover;
  display: grid;
  height: 100vh;
  place-items: center;
}

.dashboard-layout {
  background: var(--light);
  display: grid;
  grid-template-columns: 5rem 1fr;
  grid-template-rows: 90vh 10vh;
}
.dashboard-layout .dashboard-content {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  overflow-y: scroll;
}

.stats-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0.5rem;
}
.stats-bar div {
  border-right: 1px dashed #eee;
}
.stats-bar div:last-child {
  border: 0;
}

.toast {
  align-items: center;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  position: absolute;
  text-align: center;
  transition: opacity 0.5s;
  width: 100%;
}
.toast.error {
  background: var(--red);
}
.toast.info {
  background: var(--blue);
}
.toast.warning {
  background: var(--ocre);
}
.toast.success {
  background: var(--green);
}
.toast p {
  color: var(--white);
  font-size: 1.1rem;
  margin: 0 auto;
}
.toast button {
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 2rem;
}

.login-box {
  background: #fff;
  display: grid;
  place-items: center;
  height: 100vh;
  margin: auto;
  padding: 2rem 1rem;
  width: 20rem;
}
.login-box img {
  width: 100%;
}
.login-box button {
  text-transform: uppercase;
}
.login-box div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-bar {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
}
.filter-bar div {
  padding: 0;
  flex-grow: 1;
}
.filter-bar i {
  font-size: 1.8rem;
}

.export-page {
  background-image: repeating-linear-gradient(45deg, #004cbe 0, #004cbe 2px, transparent 0, transparent 50%);
  background-size: 32px 32px;
  background-color: #173359;
  height: 90vh;
  display: grid;
  place-items: center;
}
.export-page .dialog {
  align-items: center;
  background: var(--white);
  box-shadow: 0 0 40px #173359;
  border-bottom: 1px solid #eee;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  flex-direction: column;
  justify-content: center;
  width: 60vw;
  min-width: 30rem;
  margin: auto;
  position: relative;
}
.export-page .dialog:before {
  content: "Exportar CSV";
  font-size: 4vw;
  position: absolute;
  top: -1em;
  color: #fff;
  font-weight: bold;
}
.export-page .dialog div {
  padding: 0;
}
.export-page .dialog .download-button {
  background: var(--green);
  color: var(--white);
  padding: 1rem;
  margin: 0 1rem;
  font-size: 1.2rem;
  text-align: center;
  transition: filter 0.2s;
}
.export-page .dialog .download-button:hover {
  filter: brightness(1.1);
}
.export-page .dialog .tabs {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
}
.export-page .dialog .tabs button {
  border: 0;
  cursor: pointer;
  font-weight: bold;
  padding: 1rem;
  text-align: center;
  width: 100%;
}
.export-page .info {
  width: 60vw;
  margin: auto;
}
.export-page .info p {
  max-width: 90%;
  margin: auto;
  text-align: center;
}

[data-tooltip-bottom],
[data-tooltip-left],
[data-tooltip-right],
[data-tooltip-top] {
  position: relative;
}
[data-tooltip-bottom]::before,
[data-tooltip-left]::before,
[data-tooltip-right]::before,
[data-tooltip-top]::before {
  position: absolute;
  background: var(--blue);
  pointer-events: none;
  line-height: 1;
  font-weight: normal;
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10;
  transition: opacity 0.2s;
  opacity: 0;
  min-width: 6rem;
  max-width: 15rem;
  box-shadow: 0 0 10px var(--dark);
}
[data-tooltip-bottom]:hover::before,
[data-tooltip-left]:hover::before,
[data-tooltip-right]:hover::before,
[data-tooltip-top]:hover::before {
  opacity: 1;
}

[data-tooltip-right]::before {
  content: attr(data-tooltip-right);
  right: -1rem;
  text-align: left;
  transform: translateX(100%) translateY(-30%);
}

[data-tooltip-left]::before {
  content: attr(data-tooltip-left);
  left: -1rem;
  text-align: right;
  transform: translateX(-100%) translateY(-30%);
}

[data-tooltip-bottom]::before {
  content: attr(data-tooltip-bottom);
  bottom: -0.5rem;
  transform: translateY(100%);
}

[data-tooltip-top]::before {
  content: attr(data-tooltip-top);
  top: -0.5rem;
  transform: translateY(-100%);
}
