* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #eef3f7;
  color: #1e2a44;
  transition: background 0.3s, color 0.3s;
  overscroll-behavior: none;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  appearance: auto;
}

body#pagina-inicio {
  background: transparent url(/img/fundo-inicio.webp) no-repeat center center /
    cover;
}

/* imagem de fundo para Safari, pois nao usam webp format */
@media not all and (min-resolution: 0.001dpcm) {
  body#pagina-inicio {
    background: transparent url(/img/fundo-inicio.jpg) no-repeat center center /
      cover;
  }
}

iframe {
  border: none;
  height: calc(100vh - 170px);
  width: 100vw;
  display: block;
  margin: 0px auto 0;
}

body#pagina-resultados {
  background: #eef3f7;
  color: #1e2a44;
  transition: background 0.3s, color 0.3s;
  overscroll-behavior: none;
  position: relative;
  overflow-x: hidden;
}

body#pagina-resultados .botao-pesquisar {
  width: 100%;
}

img#logo-top-nav {
  position: relative;
  top: -4px;
  width: 180px;
  left: 0px;
}

body:not(.light) {
  background: linear-gradient(135deg, #1e2a44, #3a4f7a);
  color: #ffffff;
}

body.high-contrast {
  background: #000000;
  color: #ffffff;
}

.container {
  text-align: center;
  padding: 20px 16px;
  max-width: 800px;
  width: 100%;
  height: 100%;
  padding-bottom: 60px;
  margin: 10px auto 15% auto;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.14);
  padding: 30px;
  border-radius: 10px;
  margin-top: 24px;
  /* backdrop-filter: blur(4px); */
}

#container-resultados {
  height: 100%;
  width: calc(100% - 32px);
  display: none;
  flex-direction: row;
  margin: 24px auto 100px auto;
  min-height: 100vh;
}

div#mostra-palavras-chave {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-content: center;
  justify-content: center;
  width: calc(100% - 16px);
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 0;
}

@keyframes fade {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes rotateWithPause {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(0deg);
  } /* Pausa por 1 segundo */
  100% {
    transform: rotate(360deg);
  } /* Roda 360º no sentido horário */
}

/* Logo animacao */

#pagina-palavras-chave img#logo {
  margin-bottom: 20px;
  width: 100px; /* Ajusta o tamanho conforme necessário */
  height: auto;
  /* animation: pulse 1.5s infinite ease-in-out, fade 3s infinite ease-in-out,
    rotateWithPause 1s infinite ease-in-out; */
}

/* Professor animacao */
.pulse-container {
  width: 127px;
  height: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  position: absolute;
  top: 80px;
  right: 10px;
}

/* Skeleton preloading animacao */
.skeleton {
  background: linear-gradient(100deg, #e0e0e0 30%, #f0f0f0 50%, #e0e0e0 70%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 4px;
  margin-bottom: 12px;
}

.skeleton-card {
  width: 300px;
  padding: 16px;
  background: white;
  border-radius: 10px;
}

#avatar {
  width: 90px;
  height: 90px;
  color: white;
  background-color: #004ada;
  border-radius: 100%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 30px;
}

.skeleton.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.skeleton.title {
  width: 80%;
  height: 20px;
}

.skeleton.text {
  width: 100%;
  height: 12px;
}
/* Animacao do thumbnail preloading em shimer */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Animacao do thumbnail preloading  com 3 pontinhos */
.loader-container {
  background-color: transparent;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  min-width: 200px;
  width: 25%;
  height: 200px;
  border-radius: 10px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #007bff; /* azul */
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dot1 {
  animation-delay: -0.32s;
}
.dot2 {
  animation-delay: -0.16s;
}
.dot3 {
  animation-delay: 0;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

#pagina-palavras-chave .skeleton-card {
  width: 100%;
  padding: 60px 40px 40px 40px;
  background: white;
  border-radius: 8px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  transition: color 0.3s, font-size 0.3s;
}

body#pagina-palavras-chave .text {
  width: 50%;
  height: 20px;
  margin-bottom: 20px;
}

body#pagina-palavras-chave .title {
  margin-bottom: 20px;
  letter-spacing: 1px;
  transition: color 0.3s, font-size 0.3s;
}

body#pagina-palavras-chave .title:last-child {
  margin-bottom: 0px;
}

body#pagina-palavras-chave .skeleton {
  background: linear-gradient(226deg, #f2f2f2 30%, #eef3f7 70%, #ffffff 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
  border-radius: 4px;
  margin-bottom: 12px;
}

body#pagina-palavras-chave .skeleton.title {
  width: 100%;
  height: 40px;
}
.logo-carregando-mensagem {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  align-items: center;
}
#pagina-palavras-chave .filtro-resultados {
  position: relative;
  border: none;
  margin: 40px 0 0 0;
  padding: 40px;
}

#pagina-palavras-chave .filtro-resultados p {
  text-align: left;
  font-size: 14px;
  padding-left: 5px;
}

#pagina-palavras-chave p {
  text-align: center;
  font-family: poppins;
  font-size: 16px;
  width: 100%;
  max-width: 660px;
}

#pagina-palavras-chave p span.highlighted {
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: #1046e3ff;
  text-underline-offset: 2px;
  text-decoration-thickness: 3px;
}

span.highlighted {
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: #1046e3ff;
  text-underline-offset: 2px;
  text-decoration-thickness: 3px;
}
.filtro-resultados {
  margin-right: 24px;
  padding: 24px;
  width: auto;
  min-width: 312px;
  height: fit-content;
  border-radius: 10px;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: rgba(0, 0, 0, 0.14) 0 4px 4px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 30px;
}

.filtro-resultados h3 {
  margin-bottom: 16px;
}

.filtro-resultados fieldset {
  display: flex;
  flex-direction: column;
  border: none;
  max-width: 100%;
}

.filtro-resultados label {
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 8px;
}

.filtro-resultados select {
  padding: 8px 36px 8px 16px;
  display: flex;
  margin-bottom: 16px;
  font-size: 14px;
  border-radius: 5px;
  width: 100%;
  border: 1px solid black;
  color: black;
}

.filtro-resultados input[type="text"] {
  padding: 6px 16px;
  padding-left: 16px;
  display: flex;
  margin-bottom: 16px;
  font-size: 14px;
  border-radius: 5px;
  background: transparent url(/img/lupa-pesquisar.svg) no-repeat 10px center;
  padding-left: 34px;
  color: black;
  width: 100%;
  border: 1px solid black;
}

.filtro-resultados h4 {
  font-size: 14px;
  font-weight: bold;
  padding-left: 0px;
}

#pagina-palavras-chave .filtro-resultados h4 {
  font-size: 16px;
}

#pagina-palavras-chave .filtro-resultados .lista-palavras-chave {
  border: none;
  height: 325px;
}

.filtro-resultados .lista-palavras-chave {
  margin-top: 24px;
  padding: 24px;
  border-radius: 10px;
  background-color: #f2f2f2;
  height: 529px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.filtro-resultados ul {
  list-style-type: none;
}

.filtro-resultados ul > li {
  padding: 14px;
  background-color: white;
  margin-bottom: 10px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
  transition: 0.3s;
  box-shadow: rgba(0, 0, 0, 0.14) 0 2px 2px 0;
  border: 1px solid #e9e9e9;
}

.filtro-resultados ul > li:hover {
  background-color: #d6e4ee;
  cursor: pointer;
}

.filtro-resultados ul > li > a {
  text-decoration: none;
  color: black;
}

#pagina-palavras-chave .numero-resultados {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin-top: 24px;
  margin-bottom: 0px;
  padding-top: 24px;
  padding-bottom: 0px;
  font-size: 14px;
}

.numero-resultados {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin-top: 24px;
  margin-bottom: 0px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
}

.palavras-chave {
  font-size: 14px;
  padding-top: 24px;
}
.span-breadcrumb {
  padding: 0 5px;
  color: #1903e5;
  font-weight: bold;
}

.footer-span-space {
  padding: 0 10px;
}

.breadcrumb-and-view-options {
  width: 100%;
  font-size: 14px;
  height: 20px;
  margin: 24px 0;
  padding: 0 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  display: none;
}

.breadcrumb-and-view-options p > a {
  text-decoration: none;
  color: #000;
}

.breadcrumb-and-view-options p > a:hover {
  text-decoration: underline;
  color: #1903e5;
}

.wrap-layout-view {
  display: flex;
  gap: 4px;
}

.wrap-layout-view p {
  padding-right: 10px;
}

.layout-view {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: none;
  background: transparent;
}

.grid-view {
  background: #d6e6f3 url(/img/grid-view.svg) no-repeat center center;
  background-size: inherit;
  width: 22px;
  height: 22px;
  outline: 1px solid #1046e3;
}

.grid-view:hover {
  cursor: pointer;
  background: #aad5f3 url(/img/grid-view.svg) no-repeat center center;
}

.list-view {
  background: #d6e6f3 url(/img/list-view.svg) no-repeat center center;
  background-size: inherit;
  width: 32px;
  height: 22px;
}

.list-view:hover {
  background: #aad5f3 url(/img/list-view.svg) no-repeat center center;
  cursor: pointer;
}

#contexto {
  position: relative;
  margin: 0 0 24px 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: rgba(0, 0, 0, 0.14) 0 4px 4px 0;
  flex: 1 0 calc(50% - 12px);
  box-sizing: border-box;
  border-radius: 6px;
  background: white url(../img/image-background-card.svg) no-repeat right top /
    contain;
}

#contexto h1 {
  font-size: 24px;
  font-weight: bold;
  padding: 0 0 16px 0;
}

#contexto h3 {
  margin-bottom: -20px;
}

#wrap-contexto-image {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
}

#wrap-contexto-image p {
  padding-right: 0px;
}

#contexto img {
  position: absolute;
  top: -81px;
  right: 0px;
  animation: pulse 1.5s infinite;
  width: 160px;
  height: 160px;
}

#resultados {
  width: 100%;
  display: flex;
}

.all-cards-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 100%;
}

.card-wrap {
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.14) 0 4px 4px 0;
  padding: 40px 0px 0 0px;
  background-color: white;
  width: auto;
  display: flex;
  height: auto;
  margin: 0 0 0 0;
  flex-direction: row;
  flex-wrap: wrap;
  background: white url(../img/image-background-card.svg) no-repeat right top;
  flex: 1 0 calc(50% - 12px);
  box-sizing: border-box;
  border-radius: 6px;
}

.card {
  width: calc(100%);
  display: flex;
  justify-content: start;
  gap: 40px;
  height: auto;
}

.titulo-paragrafo-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
}

.titulo-paragrafo-wrap h2 {
  font-size: 20px;
  line-height: 1.4em;
}

.img-card-wrapper {
  min-width: 200px;
  width: 25%;
  margin: 0 0 0 40px;
  height: 200px;
  border: 1px solid #000000;
  margin-left: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  position: relative;
}

.paragrafo-card {
  max-width: 100%;
  padding-right: 40px;
}

.info-pagina-data-gravacao {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  gap: 32px;
  row-gap: 32px;
  justify-content: space-between;
}

.wrap-botoes-card {
  display: flex;
  gap: 16px;
  flex-grow: 1;
  flex-shrink: 1;
  justify-content: flex-end;
}

.wrap-info-pagina-card {
  display: flex;
  flex-direction: column;
}

.info-pagina-data-gravacao p {
  font-size: 14px;
  font-weight: bold;
}

.info-pagina-data-gravacao small {
  font-size: 12px;
  font-style: italic;
  color: rgba(0, 0, 0, 0.7);
}

.card-info-botoes {
  margin-top: 40px;
  padding: 32px 40px;
  border-radius: 0 0 10px 10px;
  width: 100%;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
}

/* Overlay para opacidade no resto da tela */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block;
}

/* Menu Lateral (Sidebar) */

.sidebar-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100vh;
  background: rgba(255, 255, 255, 1);
  padding: 20px 25px 15px 25px;
  display: block;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 0 5px 5px 0px;
}

body:not(.light) .sidebar-menu {
  background: rgb(41 62 107);
}

body.high-contrast .sidebar-menu {
  background: #000000;
  border-right: 1px solid white;
}

.sidebar-menu.active {
  transform: translateX(
    250px
  ); /* Animação para deslizar da esquerda para a direita */
}

#pagina-inicio h1 {
  font-size: medium;
  font-weight: 100;
  padding: 20px 24px 30px;
}

h1 {
  font-size: medium;
  font-weight: 100;
  padding: 20px 0 20px 0;
  line-height: 1.4em;
}

#pagina-inicio h2 {
  padding: 0px 0px 10px 0;
  font-size: 20px;
}

h2 {
  padding: 0px 40px 10px 0;
}

.sidebar-menu a {
  color: #000000;
  text-decoration: none;
  font-size: 16px;
  padding: 12px 0 12px 0;
  text-align: left;
  transition: color 0.3s;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sidebar-menu a:hover {
  text-decoration: underline;
}

.sidebar-menu a.sidebar-tema-usabilidade:hover {
  text-decoration: none;
  color: black;
  cursor: default;
}

body:not(.light) .sidebar-menu a {
  color: #ffffff;
}

body.high-contrast .sidebar-menu a {
  color: #ffffff;
}

.sidebar-menu a:hover,
.sidebar-menu a:focus {
  color: #1903e5;
}

.sidebar-menu .home-icon {
  background: transparent url(/img/home-icon.svg) no-repeat 0 13px;
  padding-left: 23px;
  background-size: 18px;
  display: block;
}

/* Botão de Fechar no Topo Direito do Sidebar */
.sidebar-close {
  position: absolute;
  top: 15px;
  right: 17px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e2a44;
  transition: color 0.3s;
}

body:not(.light) .sidebar-close {
  color: #ffffff;
}

body.high-contrast .sidebar-close {
  color: #ffffff;
}

.sidebar-close svg {
  width: 20px;
  height: 20px;
}

.sidebar-close:hover,
.sidebar-close:focus {
  color: #60a5fa;
  /* outline: 2px solid #60a5fa; */
}

/* Botão para abrir o menu lateral (com "Menu" sempre visível no desktop, apenas ícone em mobile) */

#logged-in .sidebar-toggle {
  position: absolute;
  top: 42px;
  left: 30px;
  background: none;
  border: none;
  cursor: pointer;
  width: auto;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

body#pagina-resultados #logged-in .sidebar-toggle {
  position: absolute;
  top: 26px;
}

body#pagina-resultados .keyword-btn button {
  padding: 0;
}

#logged-in .sidebar-toggle span {
  font-size: 16px;
  color: #000;
  transition: color 0.3s;
}

body:not(.light) #logged-in .sidebar-toggle span {
  color: #ffffff;
}

body.high-contrast #logged-in .sidebar-toggle span {
  color: #ffffff;
}

#not-logged-in {
  position: relative;
}

#not-logged-in .top-menu a {
  margin-left: 0px;
}

#faq-container {
  display: none;
  position: fixed;
  right: 17px;
  bottom: 115px;
  padding: 13px 9px 5px 13px;
  border-radius: 10px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.14);
  transition: 0.3s;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
}

#faq-container:hover img {
  width: 45px;
  transition: 0.3s;
}

#faq-container img {
  width: 40px;
  transition: 0.3s;
}

hr {
  opacity: 0.2;
}

.span-space {
  padding: 0 10px;
  font-weight: 100;
}

.menu-links .home-icon {
  background: transparent url(/img/home-icon.svg) no-repeat 0 7px;
  padding-left: 23px;
  background-size: 18px;
}

/* Gerir conta */
.wrap-input-usuario {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px 32px 32px 32px;
  border-radius: 10px;
  background-color: #f4f4f4;
}

/* Desktop */

@media (max-width: 909px) {
  #logged-in .sidebar-toggle {
    width: 30px; /* Apenas o ícone em mobile */
  }
  #logged-in .sidebar-menu .theme-toggle {
    width: 20px;
  }
}
/* Wrap top nav: esconde conteudo ao fazer scrolling */
#wrap-top-nav {
  height: auto;
  padding: 0 0;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: calc(100% - 32px);
  background: rgba(255, 255, 255, 0.8);
  margin: 0 auto;
  margin-top: 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
}

/* Menu Superior (Top) */
.top-menu {
  position: relative;
  left: 0;
  width: 100%;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
  z-index: 2;
  width: 100%;
  right: 0;
  margin: 0 auto;
  border-radius: 10px;
}

body:not(.light) .top-menu {
  background: rgba(255, 255, 255, 0.1);
}

body.high-contrast .top-menu {
  background: #000000;
}

#top-nav-right-menu-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.wrap-registar-entrar-botoes {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logado-conta-normal {
  width: 34px;
  height: 34px;
  color: white;
  background-color: #004ada;
  border-radius: 100%;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Botoes registo e entrar*/

.entrar {
  border: 1px solid #1046e3ff;
  background-color: #1046e3ff;
  color: #fff;
  transition: 0.3s;
}

.entrar:hover {
  border: 1px solid #1046e3ff;
  background-color: transparent;
  color: #1046e3ff;
}

.entrar:active {
  border: 1px solid #1046e3ff;
  background-color: #06206d;
  color: #fff;
}

.registar {
  background-color: #000;
  border: 1px solid #000;
  transition: 0.3s;
  color: white;
}

.registar:hover {
  background-color: transparent;
  color: black;
}
.registar:active {
  background-color: #000;
  border: 1px solid #000;
  color: #fff;
}

.registar,
.entrar {
  padding: 6px 10px;
  font-size: 14px;
  transition: 0.3s;
}

/* Comeca Botoes individuais */

.partilhar-pagina {
  background: transparent url(/img/icone-partilhar.svg) no-repeat 16px center;
  color: black;
  border: 1px solid black;
  padding-left: 32px;
}

.partilhar-pagina:hover {
  background: black url(/img/icone-partilhar-branco.svg) no-repeat 16px center;
  color: #fff;
  border: 1px solid black;
}

.partilhar-pagina:active {
  background: transparent url(/img/icone-partilhar.svg) no-repeat 16px center;
  border: 1px solid black;
  color: black;
}

.pagina-arquivo-pt {
  background: #1046e3ff url(/img/icone-pagina.svg) no-repeat 16px center;
  color: rgb(255, 255, 255);
  border: 1px solid #1046e3ff;
  padding-left: 32px;
}

.pagina-arquivo-pt:hover {
  background: transparent url(/img/icone-pagina-azul.svg) no-repeat 16px center;
  color: #1046e3ff;
  border: 1px solid #1046e3ff;
}

.pagina-arquivo-pt:active {
  background: #1046e3ff url(/img/icone-pagina.svg) no-repeat 16px center;
  border: 1px solid #1046e3ff;
  color: #fff;
}

.pagina-original {
  background: rgb(0, 0, 0) url(/img/icone-pagina.svg) no-repeat 16px center;
  color: rgb(255, 255, 255);
  border: 1px solid black;
  padding-left: 32px;
}

.pagina-original:hover {
  background: transparent url(/img/icone-pagina-preto.svg) no-repeat 16px center;
  color: #000;
  border: 1px solid black;
}
.pagina-original:active {
  background: rgb(0, 0, 0) url(/img/icone-pagina.svg) no-repeat 16px center;
  border: 1px solid black;
  color: #fff;
}

.transferir-dados {
  background: #d9d9d9 url(/img/icone-transferir.svg) no-repeat 16px center;
  color: rgb(0, 0, 0);
  border: 1px solid black;
  padding-left: 32px;
}

.transferir-dados:hover {
  background: #000 url(/img/icone-transferir-branco.svg) no-repeat 16px center;
  color: #fff;
  border: 1px solid black;
}

.transferir-dados:active {
  background: #d9d9d9 url(/img/icone-transferir.svg) no-repeat 16px center;
  color: rgb(0, 0, 0);
  border: 1px solid black;
}

/* Termina Botoes individuais */

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0; /* Remove margem, já justificado à esquerda */
}

#logged-in #logo-top-nav {
  padding-left: 0px;
  width: auto;
  position: relative;
  top: -4px;
  left: 80px;
  width: 180px;
}

#logo-landing {
  width: 26%;
  min-width: 230px;
}

.logo {
  width: 60px;
  height: 60px;
}

.logo-text {
  font-size: 20px;
  font-weight: 300;
  color: #1e2a44;
  transition: color 0.3s;
}

body:not(.light) .logo-text {
  color: #ffffff;
}

body.high-contrast .logo-text {
  color: #ffffff;
}

.menu-links {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end; /* Justificado à direita */
}

.menu-links a {
  color: #000;
  text-decoration: none;
  font-size: 16px;
  text-align: left;
  transition: color 0.3s;
  padding: 5px;
}

body:not(.light) .menu-links a,
body:not(.light) .menu-links button {
  color: #ffffff;
}

body.high-contrast .menu-links a,
body.high-contrast .menu-links button {
  color: #ffffff;
}

.menu-links a:hover {
  color: #1903e5;
  text-decoration: underline;
}

#theme-icon {
  width: 20px;
}

#theme-icon-sidebar {
  width: 20px;
  margin: 0px 0;
}

#theme-icon-sidebar-dark {
  width: 14px;
  opacity: 0.5;
  transition: 0.3s;
}

#theme-icon-sidebar-dark:hover {
  width: 14px;
  opacity: 1;
}

#theme-icon-sidebar-light {
  width: 20px;
}

#theme-accessaibility-left-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  border-radius: 5px;
  padding: 8px 24px;
  margin-bottom: 16px;
  display: none;
}

#accessibility-icon-sidebar {
  width: 18px;
  margin: 0px 0;
  transition: 0.3s;
  display: none;
}

#accessibility-icon-sidebar:hover {
  width: 18px;
  margin: 0px 0;
  opacity: 1;
}

.theme-toggle,
.accessibility-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 20px;
  height: 20px;
  position: relative;
}

/* Menu de Acessibilidade */
.accessibility-menu {
  display: none;
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

#sidebar-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-wrap-registar-entrar-botoes {
  border-radius: 10px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: normal;
  gap: 16px;
}

body.light .accessibility-menu {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.14);
  padding: 20px;
  border-radius: 7px;
  backdrop-filter: blur(4px);
  position: absolute;
  position: absolute;
  top: 98px;
  right: 142px;
  font-size: 16px;
}

body:not(.light) .accessibility-menu {
  background: rgba(255, 255, 255, 0.9);
  color: #1e2a44;
}

body.high-contrast .accessibility-menu {
  background: #000000;
  color: #ffffff;
}

.accessibility-menu.active {
  display: block;
}

.accessibility-menu button {
  display: block;
  width: 100%;
  padding: 8px;
  background: none;
  border: none;
  color: #1e2a44;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s;
}

body.light .accessibility-menu button,
body:not(.light) .accessibility-menu button {
  color: #000;
  font-size: 16px;
}

body.high-contrast .accessibility-menu button {
  color: #ffffff;
}

.accessibility-menu button:hover,
.accessibility-menu button:focus {
  background: rgba(0, 0, 0, 0.1);
  outline: 2px solid #60a5fa;
}

body.light .title {
  color: #1e2a44;
}

body:not(.light) .title {
  color: #ffffff;
}

body.high-contrast .title {
  color: #ffffff;
}

.dropdowns {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex: 1;
}

.dropdowns .fieldset-wrapper {
  flex: 1;
}

fieldset {
  width: 100%;
  border-radius: 5px;
  border: 1px solid #000;
}

legend {
  padding: 11px 10px 0px 10px;
  font-weight: bold;
  font-size: initial;
  text-align: left;
  margin-left: 15px;
}

.dropdown {
  width: 100%;
  padding: 6px 30px 15px 25px;
  border: none;
  border-radius: 10px;
  color: #1e2a44;
  font-size: 16px;
  cursor: pointer;
  /* transition: background 0.3s, color 0.3s, font-size 0.3s; */
  display: flex;
  flex-grow: 1;
  appearance: none;
}

.dropdown:hover,
.dropdown:active,
.dropdown:focus-visible {
  background-color: none;
  border: none;
  outline: none;
}

body:not(.light) .dropdown {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.high-contrast .dropdown {
  background: #000000;
  color: #ffffff;
  border: 1px solid #ffffff;
}

select {
  padding-right: 30px;
  appearance: none;
  background: url(/img/seta.svg) no-repeat 95% 12px;
  background-size: 12px;
}

.search-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
  border-radius: 5px;
  padding: 0;
  border: 1px solid #000;
  transition: 0.3s;
  padding: 0px 12px 0px 0px;
}

.search-container input {
  flex-grow: 1;
  border: none;
  outline: none;
  font-size: 18px;
  margin-left: 0px;
  color: rgb(0, 0, 0);
  width: 100%;
  border-radius: 10px;
  max-width: 100%;
  padding: 0px 0px 0px 57px;
  height: 64px;
  background: transparent url(/img/lupa-pesquisar.svg) no-repeat 16px center;
  background-size: 30px;
}

#voice-search-button {
  background: transparent url(/img/microphone.svg) no-repeat center center;
  background-size: inherit;
  width: auto;
  height: auto;
  border: none;
  margin: 0 5px;
  border-radius: 5px;
  transition: 0.1s;
  padding: 20px;
}
#voice-search-button:hover {
  background: #e7f1f6 url(/img/microphone.svg) no-repeat center center;
  background-size: inherit;
  width: auto;
  height: auto;
  border: none;
  margin-right: 5px;
  border-radius: 5px;
  cursor: pointer;
}

#voice-search-button:active {
  background: #ccdbe2 url(../img/microphone.svg) no-repeat center center;
  background-size: inherit;
  width: auto;
  height: auto;
  border: none;
}

.search-input {
  width: 400px;
  padding: 12px 10px 12px 40px; /* Espaço para lupa à esquerda */
  background: rgba(0, 0, 0, 0.1) url(/img/lupa-pesquisar.svg) no-repeat 10px
    center;
  border: none;
  border-radius: 10px;
  color: #1e2a44;
  font-size: 16px;
  transition: background 0.3s, color 0.3s, font-size 0.3s;
  display: flex;
  flex-grow: 1;
}

.botao-pesquisar {
  background-color: #1903e5;
  border: 1px solid #1903e5;
  color: white;
  font-size: 16px;
  padding: 6px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  width: 120px;
}

.botao-pesquisar:hover {
  background-color: transparent;
  color: #1903e5;
  border: 1px solid #1903e5;
}

.botao-pesquisar:active {
  background-color: rgb(6, 32, 109);
  color: white;
}

.botoes-registar-entrar {
  border-radius: 5px;
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 6px 16px;
  font-size: 14px;
  transition: 0.3s;
  flex-grow: 1;
}

.botoes-card {
  border-radius: 5px;
  width: 100%;
  min-width: 160px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 6px 16px;
  font-size: 14px;
  transition: 0.3s;
  flex-grow: 1;
  text-decoration: none;
}

body:not(.light) .search-box {
  background: rgba(0, 0, 0, 0.1) url(/img/lupa-pesquisar.svg) no-repeat 10px
    center;
  color: #ffffff;
}

body.high-contrast .search-box {
  background: rgba(0, 0, 0, 0.1) url(/img/lupa-pesquisar.svg) no-repeat 10px
    center;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.search-box::placeholder {
  color: #a1a1aa;
}

.search-box:focus {
  /* outline: 2px solid #60a5fa;
  border-radius: ; */
}

body:not(.light) .search-box:focus {
  background-color: rgba(255, 255, 255, 0.3);
}

body.high-contrast .search-box:focus {
  background: #333333;
}

.voice-btn,
.search-btn {
  padding: 12px 30px;
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, font-size 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-btn svg,
.search-btn svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

body:not(.light) .voice-btn,
body:not(.light) .search-btn {
  background: #3b82f6;
  color: #ffffff;
}

body.high-contrast .voice-btn,
body.high-contrast .search-btn {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

.voice-btn:hover,
.search-btn:hover {
  background: #60a5fa;
}

body.high-contrast .voice-btn:hover,
body.high-contrast .search-btn:hover {
  background: #cccccc;
}

.voice-btn:focus,
.search-btn:focus {
  outline: 2px solid #60a5fa;
}

/* Footer */
footer {
  width: calc(100% - 32px);
  margin: 100px auto 16px auto;
  background: rgba(255, 255, 255, 0.8);
  padding: 30px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(5px);
  font-size: 12px;
  transition: background 0.3s, font-size 0.3s;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.14);
}

/* Poe o footer em coluna paara as palavras nao ficarem encavalitadas */
@media screen and (max-width: 832px) {
  footer div > ul {
    flex-direction: column !important;
    line-height: 2em;
  }
  footer div > ul li {
    padding: 0;
  }
}

body:not(.light) footer {
  background: rgba(255, 255, 255, 0.1);
}

body.high-contrast footer {
  background: #000000;
}

footer a {
  color: #1e2a44;
  text-decoration: none;
  margin-left: 10px;
  transition: color 0.3s;
  display: contents;
  padding-right: 20px;
}

footer a:hover {
  text-decoration: underline;
}

footer span {
  display: contents;
}

.paginacao {
  display: flex;
  width: calc(100% + 312px);
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}

footer ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 0;
}
footer ul li {
  padding-left: 20px;
}

footer ul li:hover {
  background-color: transparent;
}

footer ul.footer-left-links li:first-child {
  padding-left: 0;
  font-weight: 700;
}
footer ul.footer-right-links li span {
  padding-left: 0;
  font-weight: 700;
}

.paginacao .botoes-meio {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 35%;
  margin: 0 auto;
  max-width: 40px;
}

.botoes-meio button {
  padding: 10px 16px;
  cursor: pointer;
  background-color: #d6e6f3;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
}

.botoes-meio button:hover {
  padding: 10px 16px;
  cursor: pointer;
  background-color: #bbe1ff;
  border: 1px solid#0c2e94;
  border-radius: 5px;
}

.botoes-meio button:active {
  background-color: #d6e6f3;
}

.botao-anterior-seguinte {
  padding: 10px;
  background: transparent;
  border: none;
  font-size: 14px;
  transition: 0.3s;
  color: black;
}

.botao-anterior {
  background: url("/img/seta-paginacao-esquerda.svg") no-repeat left center /
      auto,
    url("/img/linha-paginacao.svg") no-repeat right center / auto;
  padding-right: 60px;
  padding-left: 18px;
}

.botao-seguinte {
  background: url("/img/seta-paginacao-direita.svg") no-repeat right center /
      auto,
    url("/img/linha-paginacao.svg") no-repeat left center / auto;
  padding-left: 60px;
  padding-right: 18px;
}

.botao-anterior-seguinte:hover {
  cursor: pointer;
  color: #004ada;
}

body:not(.light) .footer a {
  color: #ffffff;
}

body.high-contrast .footer a {
  color: #ffffff;
}

.footer a:hover,
.footer a:focus {
  color: #1903e5;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
}

.footer-left span.copyright,
.footer-right span.design {
  font-weight: 600;
  display: contents;
}

.footer-left .span-space,
.footer-right .span-space {
  font-weight: normal;
}

.ferramentas-pagina-iframe {
  position: fixed;
  bottom: 0px;
  margin: 0 auto;
  left: 0;
  right: 0;
  width: calc(100%);
  margin: 0px auto 0px auto;
  background: #fff;
  padding: 30px 60px 60px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(5px);
  font-size: 12px;
  transition: background 0.3s, font-size 0.3s;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 0px 0px 0 0;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.14);
}

.ferramentas-pagina-iframe .wrap-info-pagina-card {
  background-color: transparent;
  width: auto;
}

.ferramentas-pagina-iframe .wrap-info-pagina-card a {
  text-decoration: none;
}

.ferramentas-pagina-iframe .card-info-botoes {
  margin: 0;
  padding: 0;
  background-color: transparent;
}

.ferramentas-pagina-iframe .botoes-card {
  justify-content: center;
  width: 145px;
}

/* Ajusta o tamanho do iframe da barra de ferramentas para se puder fazer scroll e ver todo o iframe*/

@media screen and (min-width: 630px) and (max-width: 886px) {
  iframe {
    border: none;
    height: calc(100vh - 238px);
    width: 100vw;
    display: block;
  }
  .ferramentas-pagina-iframe .botoes-card {
    justify-content: center;
    max-width: 100%;
    text-decoration: none;
  }
  .wrap-botao-transferir ul#painel-transferir {
    right: 60px;
    top: -90px;
  }
}

@media screen and (min-width: 886px) {
  .ferramentas-pagina-iframe .botoes-card {
    max-width: 145px;
  }
}

@media screen and (max-width: 629px) {
  iframe {
    border: none;
    height: calc(100vh - 338px);
    width: 100vw;
    display: block;
  }
  .ferramentas-pagina-iframe .wrap-botoes-card .botoes-card {
    width: 100%;
  }
  .wrap-botao-transferir ul#painel-transferir {
    right: 0px;
    top: -70px;
    width: calc(100% - 120px);
    margin: 0 auto;
    left: 0;
  }
  .botao-anterior {
    margin: 0 auto;
  }
  .botao-seguinte {
    margin: 0 auto;
  }
  .footer {
    justify-content: center;
  }
}
.sidebar-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100vh;
  background: rgba(255, 255, 255, 1);
  padding: 20px 25px 15px 25px;
  display: block;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.3s ease-in-out;
  z-index: 3;
  /* overflow-x: hidden; */
  display: flex;
  flex-direction: column;
  border-radius: 0 5px 5px 0px;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(15px);
}
.wrap-sidebar-logged-user-and-settings {
  margin: 40px 0 20px 0px;
  padding: 0px;
  background-color: transparent;
  border-radius: 0px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-weight: bold;
}

.wrap-sidebar-logged-user-and-settings img {
  cursor: pointer;
}
ul {
  list-style-type: none;
  line-height: 1.4em;
  margin-top: -12px;
}

li:hover,
li:active {
  background-color: #eee;
  border-radius: 5px;
}

ul#sidebar-logged-user-historico {
  overflow: inherit;
  height: 200px;
  border-bottom: 1px solid #ccc;
}

.historico-search-results {
  position: initial;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-right: 10px;
}

li {
  padding-left: 14px;
}
.sair {
  background: #000 url(/img/icone-sair-conta-branco.svg) no-repeat 25px center;
  background-size: inherit;
  color: white;
  border: 1px solid #000;
  border: 1px solid #000;
}

.sair:hover {
  background: transparent url(/img/icone-sair-conta.svg) no-repeat 25px center;
  background-size: inherit;
  color: #000;
  border: 1px solid #000;
}
.sair:active {
  background: #000 url(/img/icone-sair-conta-branco.svg) no-repeat 25px center;
  background-size: inherit;
  color: white;
}

.wrap-botoes-card > div {
  width: auto;
}

.ferramentas-pagina-iframe .transferir-dados {
  width: 145px;
  height: 100%;
}

body#iframe-page .wrap-botoes-card {
  justify-content: end;
}

ul#painel-transferir {
  position: absolute;
  right: 59px;
  top: -122px;
  z-index: 1;
  background: white;
  padding: 10px 20px 16px 20px;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.25) 0 4px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  transition: 0.3s;
  align-items: baseline;
  width: 147px;
}
/* Icones partilhar / apagar */
#painel-partilhar-apagar li.icone-partilhar {
  background: transparent url(/img/icone-partilhar.svg) no-repeat left 3px;
  background-size: auto;
  padding-left: 20px;
  margin-top: 5px;
  padding-bottom: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
}
#painel-partilhar-apagar li.icone-apagar {
  background: transparent url(/img/icone-apagar.svg) no-repeat left 3px;
  background-size: auto;
  padding-left: 20px;
  margin-top: 10px;
  padding-bottom: 0px;
  cursor: pointer;
}
/* Icones transferir */

#painel-transferir li.icone-doc {
  background: transparent url(/img/icone-pagina-preto.svg) no-repeat left 0px;
  background-size: auto;
  padding-left: 22px;
  margin-top: 10px;
  padding-bottom: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
}
#painel-transferir li.icone-pdf {
  background: transparent url(/img/icone-pdf.svg) no-repeat left 0px;
  background-size: 17px;
  padding-left: 22px;
  margin-top: 10px;
  padding-bottom: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
}

#painel-transferir li.icone-img {
  background: transparent url(/img/icone-image.svg) no-repeat left 0px;
  background-size: 16px;
  padding-left: 22px;
  margin-top: 10px;
  padding-bottom: 0px;
  cursor: pointer;
}

#painel-transferir li {
  font-size: 14px;
  width: 100%;
}

.wrap-botao-transferir {
  height: 100%;
}

.sidebar-tema-usabilidade {
  margin-top: 10px;
}

img.icone-tres-pontinhos {
  cursor: pointer;
  position: relative;
  z-index: 0;
}

li:hover img {
  display: block;
}

.partilhar-box {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
  top: 0;
}
.partilhar-box > div {
  background: white;
  padding: 25px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.4) 0 4px 4px 0;
  margin: 0 20px;
  width: 100%;
  max-width: 500px;
}

.partilhar-box > div p {
  font-weight: bold;
  padding: 0px 20px 14px 0px;
  text-align: left;
}

#info-partilhar-box-iframe > div,
#info-partilhar-box > div {
  position: relative;
}

#info-partilhar-box-iframe > div button.sidebar-close,
#info-partilhar-box > div button.sidebar-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e2a44;
  transition: color 0.3s;
}

.partilhar-box > div div {
  display: flex;
  flex-direction: row;
  justify-content: left;
  gap: 16px;
}

.partilhar-box > div button {
  width: 32%;
  padding: 6px 16px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
}
.partilhar-box > div button.sim {
  color: white;
  background-color: #ff4d4d;
  border: 1px solid #ff4d4d;
}
.partilhar-box > div button.sim:hover {
  background-color: transparent;
  color: #d94141;
  border: 1px solid #d94141;
}
.partilhar-box > div button.sim:active {
  color: white;
  background-color: #ff4d4d;
  border: 1px solid #ff4d4d;
}

.partilhar-box > div button.nao {
  color: white;
  background-color: #1046e3;
  border: 1px solid #1046e3;
}
.partilhar-box > div button.nao:hover {
  color: #1046e3;
  background-color: transparent;
  border: 1px solid #1046e3;
}
.partilhar-box > div button.nao:active {
  color: white;
  background-color: #1046e3;
  border: 1px solid #1046e3;
}

.partilhar-box .circulo-social-media {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  align-items: center;
  gap: 4px;
}

.partilhar-box .circulo-social-media small {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.6);
}

.partilhar-box .circulo-whatsapp {
  display: flex;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 100%;
  background: transparent url(/img/logo-whatsapp.svg) no-repeat center center;
  background-size: contain;
}

.partilhar-box .circulo-whatsapp:hover {
  border: none;
}

.partilhar-box .circulo-instagram {
  display: flex;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 100%;
  background: transparent url(/img/logo-instagram.svg) no-repeat center center;
  background-size: contain;
}

.partilhar-box .circulo-instagram:hover {
  border: none;
}

.partilhar-box input[type="text"] {
  padding: 0 5px;
  width: 80%;
}

.partilhar-box button {
  color: white;
  background-color: #1046e3;
  border: 1px solid #1046e3;
}

.partilhar-box button:hover {
  color: #1046e3;
  background-color: transparent;
  border: 1px solid #1046e3;
}
.partilhar-box button:active {
  color: white;
  background-color: #1046e3;
  border: 1px solid #1046e3;
}

/* Apagar box */
#info-apagar-box > div {
  position: relative;
}

#info-partilhar-box-iframe > div > button,
#info-partilhar-box > div > button,
#info-apagar-box > div > button,
#confirmacao-apagar-box > div > button,
#confirmacao-info-apagar-box > div > button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e2a44;
  transition: color 0.3s;
}

#info-partilhar-box-iframe > div > button:hover,
#info-partilhar-box > div > button:hover,
#info-apagar-box > div > button:hover,
#confirmacao-apagar-box > div > button:hover,
#confirmacao-info-apagar-box > div > button:hover {
  background-color: #eef3f7;
}

#info-partilhar-box-iframe > div > button:active,
#info-partilhar-box > div > button:active,
#info-apagar-box > div > button:active,
#confirmacao-apagar-box > div > button:active,
#confirmacao-info-apagar-box > div > button:active {
  background-color: #fcfeff;
}

.apagar-box {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}
.apagar-box > div {
  background: white;
  padding: 35px 25px 25px 25px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.4) 0 4px 4px 0;
  margin: 0 20px;
}
.apagar-box > div p {
  font-weight: bold;
  padding: 10px 20px 25px 20px;
  text-align: center;
}

.apagar-box > div div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
}

.apagar-box > div button {
  width: 100%;
  padding: 6px 16px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}
.apagar-box > div button.sim {
  color: white;
  background-color: #ff4d4d;
  border: 1px solid #ff4d4d;
}
.apagar-box > div button.sim:hover {
  background-color: transparent;
  color: #d94141;
  border: 1px solid #d94141;
}
.apagar-box > div button.sim:active {
  color: white;
  background-color: #ff4d4d;
  border: 1px solid #ff4d4d;
}

.apagar-box > div button.nao {
  color: white;
  background-color: #1046e3;
  border: 1px solid #1046e3;
}
.apagar-box > div button.nao:hover {
  color: #1046e3;
  background-color: transparent;
  border: 1px solid #1046e3;
}
.apagar-box > div button.nao:active {
  color: white;
  background-color: #1046e3;
  border: 1px solid #1046e3;
}

/* Confirmacao */

.apagar-box > div button {
  width: 100%;
  padding: 6px 16px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

.apagar-box > div button.fechar-confirmacao {
  color: white;
  background: #1046e8;
  background-size: auto;
  border: 1px solid #1046e3;
  width: 65%;
}
.apagar-box > div button.fechar-confirmacao:hover {
  color: #1046e3;
  background: transparent;
  border: 1px solid #1046e3;
}
.apagar-box > div button.fechar-confirmacao:active {
  background: #1046e8;
  color: white;
  background-color: #1046e3;
  border: 1px solid #1046e3;
}

/* Erros */
.apagar-box > div p.erro-nao-encontrado {
  background: transparent url(/img/icone-erro-atencao.svg) no-repeat center -2px;
  padding-top: 52px;
  background-size: 30px;
}
.apagar-box > div p.erro-sugestao-termo {
  background: transparent url(/img/icone-erro-sugestao.svg) no-repeat center -2px;
  padding-top: 52px;
  background-size: 30px;
}
.apagar-box > div p.erro-servidor {
  background: transparent url(/img/icone-erro-servidor.svg) no-repeat center 0px;
  padding-top: 52px;
  background-size: 30px;
}

.apagar-box > div p a:hover {
  color: #06206d;
}
.apagar-box > div p a:active {
  color: #1046e3ff;
}

/* Botao para fechar alertas */
button.sidebar-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e2a44;
  transition: color 0.3s;
}
button.sidebar-close:hover {
  background-color: #eef3f7;
}
button.sidebar-close:active {
  background-color: #fcfeff;
}
#not-logged-in .sidebar-toggle {
  display: none;
}

/*****************************************************************/
/* Responsividade */
@media (max-width: 948px) {
  #logo-top-nav {
    width: 210px;
    top: -2px;
  }
  .container {
    padding: 25px 20px 20px; /* Mais espaço em mobile para o footer */
    height: 100%;
    margin-top: 16px;
    max-width: calc(100% - 32px);
  }

  #container-resultados {
    flex-direction: column;
  }

  .filtro-resultados {
    margin-right: 0px;
    margin-bottom: 24px;
    box-shadow: none;
    position: relative;
    top: auto;
  }

  .paginacao {
    width: 100%;
  }
  footer {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    padding: 30px 18px;
    text-align: center;
  }

  footer span {
    display: contents;
  }

  .search-box {
    width: 100%;
  }

  .voice-btn,
  .search-btn {
    width: 100%;
  }

  #logged-in .sidebar-toggle {
    display: flex;
    gap: 10px; /* Mostra o botão hamburger em mobile */
  }

  .top-menu {
    justify-content: end; /* Ajusta o layout do menu superior em mobile */
  }

  .logo-container {
    display: flex; /* Mostra o logo em mobile */
    margin-left: 0; /* Remove margem em mobile */
  }

  #top-nav-right-menu-links {
    display: none; /* Oculta os links e botões no top menu em mobile */
  }

  .dropdowns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    flex-direction: column;
  }
  body.light .sidebar-menu .accessibility-menu {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.14);
    padding: 20px;
    border-radius: 5px;
    backdrop-filter: blur(4px);
    position: absolute;
    top: 273px;
    right: 25px;
    width: 200px;
    font-size: 16px;
  }
  select {
    background: url(/img/seta.svg) no-repeat 97% 12px;
    background-size: 12px;
  }

  .breadcrumb-and-view-options {
    width: calc(100% - 32px);
    margin: 48px auto 24px auto;
  }
  .card-wrap {
    padding: 0px 0px 0 0px;
    flex-wrap: wrap;
  }
  .card {
    width: calc(1000%);
    display: flex;
    justify-content: start;
    gap: 40px;
    flex-direction: column;
    padding: 40px;
  }
  .img-card {
    margin: 0 0 0 0px;
  }
  .card-info-botoes {
    margin: 0px;
  }
  .botoes-card {
    border-radius: 5px;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 6px 16px;
    font-size: 14px;
    transition: 0.3s;
    flex-grow: 1;
  }
  #logged-in #logo-top-nav {
    left: 0px;
  }
  #not-logged-in .sidebar-toggle {
    position: absolute;
    top: 24px;
    left: 30px;
    background: none;
    border: none;
    cursor: pointer;
    width: auto;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
  }
  #not-logged-in .sidebar-toggle span {
    font-size: 16px;
    color: #000;
    transition: color 0.3s;
  }
  .ferramentas-pagina-iframe {
    padding: 30px 60px 30px 60px;
  }
}
button {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 5px;
  transition: 0.3s;
  box-sizing: border-box;
  border: 1px solid #000;
  width: 100%;
}

/* Mostra a palavra "Menu" apenas em mobile */
@media (min-width: 769px) {
  .sidebar-toggle {
    position: absolute;
    top: 24px;
    left: 30px;
    background: none;
    border: none;
    cursor: pointer;
    width: auto;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
  }
  #logged-in .sidebar-toggle span {
    display: block;
  }
  #logged-in .sidebar-toggle {
    display: flex;
  }
  #logged-in #logo-top-nav {
    margin-left: 20px;
  }
}

/* Mobile medio */
@media (max-width: 629px) {
  .wrap-botoes-card {
    flex-direction: column;
  }
  .info-pagina-data-gravacao {
    flex-direction: column;
  }
  .filtro-resultados input[type="text"] {
    margin-top: 20px;
  }
  .numero-resultados {
    margin-top: 40px;
  }
  #contexto {
    margin-top: 24px;
  }
  .paginacao {
    flex-direction: column;
    margin-top: 40px;
    gap: 30px;
  }
  #wrap-contexto-image {
    flex-direction: column-reverse;
  }
  #wrap-contexto-image p {
    padding-right: 0px;
  }
  #contexto img {
    margin-bottom: 24px;
  }
  .paragrafo-card {
    padding-right: 0px;
  }
  #contexto img {
    width: 100%;
    max-width: 127px;
  }
}

/* Mobile pequeno */
@media (max-width: 375px) {
  .top-menu {
    padding: 25px 30px;
  }
  img#logo-top-nav {
    top: -1px;
    width: 160px;
  }
  #logo-landing {
    width: 26%;
    min-width: 170px;
  }

  #pagina-inicio h1 {
    font-size: 15px;
  }

  #pagina-inicio h2 {
    font-size: 16px;
  }
  .dropdown {
    font-size: 14px;
  }
  .botao-pesquisar {
    font-size: 14px;
  }
  .search-wrapper .search-box {
    font-size: 14px;
    background-size: 22px;
    padding: 0px 0px 0px 50px;
  }

  legend {
    font-size: 14px;
  }
  .wrap-botoes-card {
    flex-direction: column;
  }
  .footer {
    margin-top: 40px;
  }
}

.grade-level-fieldset--invalid,
.subject-fieldset--invalid,
.term--invalid {
  border-color: red !important;
}

.fieldset-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#grade-level-return,
#subject-return,
#term-return {
  display: none;
}

.img-card-wrapper .img-card {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.wrap-registar-entrar-botoes {
  display: flex;
  align-items: center;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
}

#user-hello {
  font-weight: bold;
  margin-bottom: 0;
}

.input--invalid {
  border-color: red !important;
  outline: red !important;
}

.input--valid {
  border-color: initial;
}

.return--invalid {
  display: block;
  color: red;
}

.return--valid {
  display: none;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
  border-radius: 5px;
  padding: 0;
  border: 1px solid #000;
  transition: 0.3s;
  padding: 0px 12px 0px 0px;
}

.search-wrapper input {
  flex-grow: 1;
  border: none;
  outline: none;
  font-size: 18px;
  margin-left: 0px;
  color: rgb(0, 0, 0);
  width: 100%;
  border-radius: 10px;
  max-width: 100%;
  padding: 0px 0px 0px 57px;
  height: 64px;
  background: transparent url(/img/lupa-pesquisar.svg) no-repeat 16px center;
  background-size: 30px;
}

.keyword-btn button {
  background-color: transparent;
  outline: none;
  border: none;
  cursor: pointer;
  text-align: start;
  color: black;
  font-weight: bold;
  font-size: 14px;
}

.paragrafo-card {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 948px) {
  .img-card-wrapper {
    margin: 0 0 0 0px;
  }
}

.top-menu > div,
.top-menu a {
  margin-left: 0px;
}

.wrap-sidebar-logged-user-and-settings {
  margin: 40px 0 20px 0px;
  padding: 0px;
  background-color: transparent;
  border-radius: 0px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-weight: bold;
}

.wrap-sidebar-logged-user-and-settings img {
  cursor: pointer;
}
ul {
  list-style-type: none;
  line-height: 1.4em;
  margin-top: -12px;
}

li:hover,
li:active {
  background-color: #eee;
  border-radius: 5px;
}

footer li:hover,
footer li:active {
  background-color: transparent;
  border-radius: 0px;
}

ul#sidebar-logged-user-historico {
  display: block;
  overflow: inherit;
  height: 200px;
  border-bottom: 1px solid #ccc;
}

ul#sidebar-logged-user-historico li {
  margin-bottom: 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
  cursor: pointer;
  padding: 0px 20px;
}

.historico-search-results {
  position: initial;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-right: 10px;
}

li {
  padding-left: 14px;
}
.sair {
  background: #000 url(/img/icone-sair-conta-branco.svg) no-repeat 25px center;
  background-size: inherit;
  color: white;
  border: 1px solid #000;
  border: 1px solid #000;
}

.sair:hover {
  background: transparent url(/img/icone-sair-conta.svg) no-repeat 25px center;
  background-size: inherit;
  color: #000;
  border: 1px solid #000;
}
.sair:active {
  background: #000 url(/img/icone-sair-conta-branco.svg) no-repeat 25px center;
  background-size: inherit;
  color: white;
}

ul > li > ul {
  position: absolute;
  right: 23px;
  top: 220px;
  z-index: 1;
  background: white;
  padding: 10px 20px 0px 20px;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.25) 0 4px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  transition: 0.3s;
  width: 81%;
}
li.icone-partilhar {
  background: transparent url(/img/icone-partilhar.svg) no-repeat left 3px;
  background-size: auto;
  padding-left: 20px;
  margin-top: 5px;
  padding-bottom: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
}
li.icone-apagar {
  background: transparent url(/img/icone-apagar.svg) no-repeat left 3px;
  background-size: auto;
  padding-left: 20px;
  margin-top: 10px;
  padding-bottom: 0px;
  cursor: pointer;
}

.sidebar-tema-usabilidade {
  margin-top: 10px;
}

li:hover img {
  display: block;
}

/* Apagar box */
#info-apagar-box > div {
  position: relative;
}

#info-apagar-box > div > button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e2a44;
  transition: color 0.3s;
}

.apagar-box {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
  top: 0;
}
.apagar-box > div {
  background: white;
  padding: 35px 25px 25px 25px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.4) 0 4px 4px 0;
  margin: 0 20px;
}
.apagar-box > div p {
  font-weight: bold;
  padding: 10px 20px 25px 20px;
  text-align: center;
}

.apagar-box > div div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
}

.apagar-box > div button {
  width: 100%;
  padding: 6px 16px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}
.apagar-box > div button.sim {
  color: white;
  background-color: #ff4d4d;
  border: 1px solid #ff4d4d;
}
.apagar-box > div button.sim:hover {
  background-color: transparent;
  color: #d94141;
  border: 1px solid #d94141;
}
.apagar-box > div button.sim:active {
  color: white;
  background-color: #ff4d4d;
  border: 1px solid #ff4d4d;
}

.apagar-box > div button.nao {
  color: white;
  background-color: #1046e3;
  border: 1px solid #1046e3;
}
.apagar-box > div button.nao:hover {
  color: #1046e3;
  background-color: transparent;
  border: 1px solid #1046e3;
}
.apagar-box > div button.nao:active {
  color: white;
  background-color: #1046e3;
  border: 1px solid #1046e3;
}

/* Confirmacao */

.apagar-box > div button {
  width: 100%;
  padding: 6px 16px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

#confirmacao-info-apagar-box > div {
  position: relative;
}

#confirmacao-info-apagar-box > div > button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e2a44;
  transition: color 0.3s;
}

.apagar-box > div button.fechar-confirmacao {
  color: white;
  background: #1046e8;
  background-size: auto;
  border: 1px solid #1046e3;
  width: 65%;
}
.apagar-box > div button.fechar-confirmacao:hover {
  color: #1046e3;
  background: transparent;
  border: 1px solid #1046e3;
}
.apagar-box > div button.fechar-confirmacao:active {
  background: #1046e8;
  color: white;
  background-color: #1046e3;
  border: 1px solid #1046e3;
}

#loader-principal,
#loader-resultados,
.loader {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 240px);
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

#loader-principal {
  display: none;
}

#loader-resultados {
  display: flex;
  flex-direction: column;
  height: 40vh;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fade {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes rotateWithPause {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(0deg);
  } /* Pausa por 1 segundo */
  100% {
    transform: rotate(360deg);
  } /* Roda 360º no sentido horário */
}

.loader img {
  margin-bottom: 20px;
  width: 60px; /* Ajusta o tamanho conforme necessário */
  height: auto;
  animation: pulse 1.5s infinite ease-in-out, fade 3s infinite ease-in-out,
    rotateWithPause 1s infinite ease-in-out;
}
.loader p {
  text-align: center;
  font-family: poppins;
  font-size: 16px;
  width: 65%;
}

.current-target {
  padding: 10px 16px;
  cursor: pointer;
  background-color: #bbe1ff;
  border: 1px solid#0c2e94;
  border-radius: 5px;
}

#pagination {
  display: none;
}

.cookie-modal {
  display: none; /*TEMPORARIO*/
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.14);
  z-index: 9999;
  max-height: 95vh;
  overflow-y: auto;
  padding: 0px 32px 32px 32px;
  margin: 0 auto 32px auto;
  width: calc(100% - 96px);
  max-width: 800px;
}

.tabs-header {
  display: flex;
  border-bottom: 2px solid #0052cc;
}

.tab-button {
  flex: 1;
  text-align: center;
  padding: 16px 0 10px 0;
  font-weight: bold;
  cursor: pointer;
  background: white;
  border-bottom: 3px solid transparent;
}

.tab-button.active {
  border-bottom: 3px solid #0052cc;
  color: #0052cc;
}

.tab-content {
  display: none;
  padding: 20px;
  padding-top: 0;
}

#tab-sobre p {
  padding-top: 0px;
  margin-bottom: 10px;
  margin-top: 0;
}

#tab-sobre h2 {
  padding-top: 10px;
  padding-bottom: 0px;
  font-size: 20px;
  margin-bottom: 10px;
}

#tab-gestao {
  padding-bottom: 0;
}

.tab-content.active {
  display: block;
}

.section {
  border-top: 1px solid #ccc;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.section-content {
  max-width: 85%;
}

.section h3 {
  margin: 0 0 5px;
  margin: 0 0 5px;
  font-size: 16px;
}

.section p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #333;
}

.toggle-cookies {
  font-size: 0.9rem;
  color: #1046e3ff;
  cursor: pointer;
  margin-top: 0px;
  display: inline-block;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.9rem;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 8px;
}

table thead {
  background-color: #eee;
}

.hidden {
  display: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.4s;
}

.slider::before {
  content: "✔";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #aaa;
  color: white;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  transition: 0.4s;
}

.switch input:checked + .slider {
  background-color: #1046e3ff;
}

.switch input:checked + .slider::before {
  transform: translateX(18px);
  background-color: #0052cc;
}

.buttons {
  display: flex;
  gap: 16px;
  padding: 36px 0 10px;
  border-top: 1px solid #ccc;

  flex-wrap: wrap;
}

.buttons button {
  border-radius: 5px;
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 14px;
  transition: 0.3s;
  flex-grow: 1;
  transition: 0.3s;
}

.aceitar-cookies {
  background: #1046e3ff;
  color: rgb(255, 255, 255);
  border: 1px solid #1046e3ff;
}

.aceitar-cookies:hover {
  background: transparent;
  color: #1046e3ff;
  border: 1px solid #1046e3ff;
}

.aceitar-cookies:active {
  background: #06206d;
  color: white;
  border: 1px solid #06206d;
}

.accept {
  background-color: #0052cc;
  color: white;
}

.reject {
  background-color: #000;
  color: white;
}
.reject:hover {
  background: transparent;
  color: #000;
  border: 1px solid #000;
}
.reject:active {
  background-color: #000;
  color: white;
  border: 1px solid #000;
}

.save {
  background-color: #1046e3ff;
  color: white;
}

a {
  color: #0052cc;
}

.sidebar-toggle {
  display: none;
}

#logged-in .sidebar-toggle {
  display: flex !important;
}

#not-logged-in .sidebar-toggle {
  display: none !important;
}

@media (max-width: 948px) {
  #not-logged-in .sidebar-toggle,
  .sidebar-toggle {
    display: flex !important;
  }
}
