/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
  padding-top: 40px;
  padding-bottom: 50px;
  font-family: 'Roboto', sans-serif;
}


/*
 * Global add-ons
 */

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
  border: 0;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
  display: none;
}

@media (min-width: 768px) {
  .sidebar {
    position: fixed;
    top: 51px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    /* Scrollable contents if viewport is shorter than content. */
    background-color: #f5f5f5;
    border-right: 1px solid #eee;
  }
}

/* Sidebar navigation */
.nav-sidebar {
  margin-right: -21px;
  /* 20px padding + 1px border */
  margin-bottom: 20px;
  margin-left: -20px;
}

.nav-sidebar>li>a {
  padding-right: 20px;
  padding-left: 20px;
}

.nav-sidebar>.active>a,
.nav-sidebar>.active>a:hover,
.nav-sidebar>.active>a:focus {
  color: #fff;
  background-color: #428bca;
}


/*
 * Main content
 */

.main {
  padding: 20px;
  display: none;
}

.loader {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 999;
  background-color: rgb(249, 249, 249);
  background-image: url('../imagens/loader.gif');
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

body.theme-dark .loader {
  background-color: #0f172a;
}

@media (min-width: 768px) {
  .main {
    padding-right: 20px;
    padding-left: 20px;
  }
}

.main .page-header {
  margin-top: 0;

}


/*
 * Placeholder dashboard ideas
 */

.aluno {
  margin-bottom: 20px;
  text-align: center;
}

.aluno img {
  display: inline-block;
}

.turma-header {
  clear: both;
}

.table_formulario>tr>td {
  border: 1px solid #fff;
}

i {
  vertical-align: middle;
  margin: 0;
}

label {
  font-weight: 100;
}

h1 {
  font-size: 20px;
}

#myInput {
  margin-bottom: 5px;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] input[type=date] {
  -moz-appearance: textfield;
}

.material-icons {
  font-size: 15pt;
}

.bottom-menu {
  background: transparent;
  padding: 0 1.4rem calc(0.85rem + env(safe-area-inset-bottom));
  z-index: 1035;
  left: 0;
  right: 0;
  bottom: 0;
}

.bottom-menu .container-fluid {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(13, 77, 164, 0.12);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: calc(100vw - 2.8rem);
  max-width: 287px;
  min-height: 48px;
  margin: 0 auto;
  padding: 0.28rem 0.5rem;
}

.bottom-menu .bottom-menu-nav {
  min-height: 43px;
  margin: 0;
  gap: 0.5rem;
}

.bottom-menu .nav-item {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
}

.bottom-menu .nav-link {
  width: 88px;
  max-width: 88px;
  min-height: 43px;
  border-radius: 999px;
  color: #64748b;
  gap: 0.17rem;
  padding: 0.28rem 0.73rem;
  transition: all 0.2s ease;
}

.bottom-menu .nav-link .material-icons {
  font-size: 1.3rem;
  margin: 0;
}

.bottom-menu .nav-link small {
  font-size: 0.81rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.bottom-menu .nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #005bff 0%, #009aff 100%);
  box-shadow: 0 8px 18px rgba(0, 91, 255, 0.24);
}

.bottom-menu .nav-link:active,
.bottom-menu .nav-link:focus {
  color: #0d4da4;
  background: rgba(13, 77, 164, 0.08);
}

body.theme-dark .bottom-menu .container-fluid {
  background: rgba(17, 24, 39, 0.96);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

body.theme-dark .bottom-menu .nav-link {
  color: #cbd5e1;
}

body.theme-dark .bottom-menu .nav-link.is-active {
  color: #ffffff;
}

body.theme-dark .bottom-menu .nav-link:active,
body.theme-dark .bottom-menu .nav-link:focus {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.18);
}

body.page-ui-refresh #page-content-wrapper .container,
body.page-ui-refresh #page-content-wrapper .container-fluid {
  position: relative;
}

body.page-ui-refresh #page-content-wrapper h1 {
  color: #16324d;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

body.theme-dark.page-ui-refresh #page-content-wrapper h1 {
  color: #e2e8f0;
}

body.page-ui-refresh #page-content-wrapper h1.pb-1 {
  margin-bottom: 0.35rem !important;
}

body.page-ui-refresh #page-content-wrapper h1 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 0.45rem;
  border-radius: 999px;
  color: #0d4da4;
  background: rgba(13, 77, 164, 0.10);
  text-decoration: none;
  vertical-align: middle;
}

body.page-ui-refresh #page-content-wrapper h1 a:hover {
  background: rgba(13, 77, 164, 0.16);
}

body.theme-dark.page-ui-refresh #page-content-wrapper h1 a {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.14);
}

body.theme-dark.page-ui-refresh #page-content-wrapper h1 a:hover {
  background: rgba(96, 165, 250, 0.22);
}

body.page-ui-refresh #page-content-wrapper .btn {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 700;
  padding: 0.65rem 1rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

body.page-ui-refresh #page-content-wrapper .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.10);
}

body.page-ui-refresh #page-content-wrapper .btn-primary {
  background: linear-gradient(135deg, #0d4da4 0%, #1f6fd1 100%);
  border-color: #0d4da4;
}

body.page-ui-refresh #page-content-wrapper .btn-success {
  background: linear-gradient(135deg, #198754 0%, #27b36f 100%);
  border-color: #198754;
}

body.page-ui-refresh #page-content-wrapper .btn-danger {
  background: linear-gradient(135deg, #c62828 0%, #e05252 100%);
  border-color: #c62828;
}

body.page-ui-refresh #page-content-wrapper .btn-warning {
  background: linear-gradient(135deg, #f0ad00 0%, #ffcb45 100%);
  border-color: #f0ad00;
  color: #5c4300;
}

body.page-ui-refresh #page-content-wrapper .btn-outline-primary,
body.page-ui-refresh #page-content-wrapper .btn-outline-secondary,
body.page-ui-refresh #page-content-wrapper .btn-outline-success,
body.page-ui-refresh #page-content-wrapper .btn-outline-danger {
  background: #ffffff;
}

body.theme-dark.page-ui-refresh #page-content-wrapper .btn-outline-primary,
body.theme-dark.page-ui-refresh #page-content-wrapper .btn-outline-secondary,
body.theme-dark.page-ui-refresh #page-content-wrapper .btn-outline-success,
body.theme-dark.page-ui-refresh #page-content-wrapper .btn-outline-danger {
  background: #182235;
}

@media (max-width: 767.98px) {
  body.page-ui-refresh #page-content-wrapper h1 {
    font-size: 1.4rem;
  }

  body.page-ui-refresh #page-content-wrapper .btn {
    width: 100%;
  }
}

.btn-add {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 70px;
  height: 50px !important;
  width: 50px !important;
  padding: 6px !important;
  background-color: #fff;
}

.cross {
  width: auto !important;
  height: auto !important;
}

#sidebar-wrapper .dropdown .dropdown-menu {
  position: static !important;
  transform: none !important;
  float: none !important;
  width: calc(100% - 1rem) !important;
  margin: 0.45rem 0.5rem 0.55rem !important;
}

/******* Estilo dos Gabaritos *******/
.span-bolinha {
  display: flex;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 13px;
  color: red;
  border: 1px solid red;
}

.titulo-gab {
  margin: 0px 0px;
  padding: 0px 0px;
  color: red;
  border: 1px solid red;
}

td {
  border-top: 0px;
}

.toggle-password:hover {
  cursor: pointer;
}

.pull-refresh-indicator {
  position: fixed;
  top: var(--pull-refresh-spinner-top, 76px);
  left: 50%;
  z-index: 9999;
  width: 72px;
  height: 72px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -22px) scale(0.88);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.pull-refresh-indicator img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
}

body.pull-refresh-active .pull-refresh-indicator,
body.pull-refresh-ready .pull-refresh-indicator,
body.pull-refresh-loading .pull-refresh-indicator {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

body.pull-refresh-active #page-content-wrapper,
body.pull-refresh-ready #page-content-wrapper,
body.pull-refresh-loading #page-content-wrapper {
  transform: translateY(var(--pull-refresh-offset, 0px));
  transition: transform 0.18s ease;
  will-change: transform;
}

body.pull-refresh-active #page-content-wrapper,
body.pull-refresh-ready #page-content-wrapper {
  transition: none;
}
