:root {
  /** Dark theme primary colors */
  --color-primary-a0: #70a4bc;
  --color-primary-a10: #81aec3;
  --color-primary-a20: #91b8cb;
  --color-primary-a30: #a1c2d2;
  --color-primary-a40: #b0ccd9;
  --color-primary-a50: #c0d6e1;

  /** Dark theme surface colors */
  --color-surface-a0: #121212;
  --color-surface-a10: #282828;
  --color-surface-a20: #3f3f3f;
  --color-surface-a30: #575757;
  --color-surface-a40: #717171;
  --color-surface-a50: #8b8b8b;

  /** Dark theme mixed surface colors */
  --color-surface-mixed-a0: #3f5660;
  --color-surface-mixed-a10: #536770;
  --color-surface-mixed-a20: #677981;
  --color-surface-mixed-a30: #7b8b92;
  --color-surface-mixed-a40: #909da3;
  --color-surface-mixed-a50: #a5b0b5;
  --white: #FFFFFF;
  --secondary-a0: #e9eaed;
  --secondary-text-a0: #5f5f61;
  --primary: #003caa;
  --primary_dark: #093688;
  --instagram: #C13584;
}

.message-container svg {
  display: inline-block !important;
  margin: 0px !important;
  padding: 0px !important;
}

.message-container {
  display: flex;
  justify-content: space-between;
}

.login .btn-secondary {
  border-color: var(--secondary-a0);
  background: #FFF;
  color: var(--secondary-txt-a10);
  font-size: 1rem;
  height: 3rem;
}

.btn-secondary:hover {
  background: #f3f3f3;
  color: var(--color-surface-a10);
  border-color: #BBB;
}

.btn-primary.btn-login {
  height: 3rem !important;
  font-size: 1.1rem;
}

.form-group input {
  height: 3rem;
}

#toggleDarkMode {
  background: var(--secondary-a0);
  border-color: var(--secondary-a0);
  color: var(--secondary-text-a0);
}

#mensagens {
  position: absolute;
  top: 20%;
  right: 2rem;
  max-width: 20%;
}

#cookie div span {
  font-size: .8rem;
  text-align: justify !important;
  width: max-content;
}

#cookie {
  min-width: 100%;
  color: #000;
  background-color: #FFF;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 5px 5px 5px 0px rgba(161, 163, 164, 0.3);
  position: fixed;
  bottom: 0;
  left: 0;
}

#cookie button.btn {
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  float: right;
  padding: .4rem 10px;
  background: var(--primary);
  color: #FFF;
}

#eye-icon.dark {
  border-color: var(--color-surface-a50);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 64px;
  background: var(--primary_dark);
  transition: width 0.4s;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);
}

.sidebar nav {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar.show nav {
  justify-content: flex-start !important;
}

.sidebar.show nav {
  padding: 0 8px;
}

.header h1,
.sidebar a p {
  position: absolute;
  top: 45%;
  left: 42px;
  translate: 0 -50%;
  margin: 0;
  white-space: nowrap;
  transition: 0.175s;
  color: var(--white);
}

.sidebar a p {
  font-size: .9rem;
}

.header h1 {
  font-size: 1.2rem;
  font-weight: 700 !important;
}

.header label {
  font-size: .8rem;
  color: #CCC;
  display: none;
}

.sidebar i {
  font-size: 1.4rem;
  color: var(--white);
  transition: 0.2s;
}

.sidebar.show i {
  font-size: 1.1rem;
}

.sidebar nav a p {
  display: none;
}

.sidebar.show nav a p {
  display: flex;
}

.header h1 {
  left: 75px;
  font-weight: normal;
  font-size: 16px;
  display: none;
}

.sidebar.show {
  width: 20%;
}

.sidebar.show .header h1,
.sidebar.show .header label {
  display: flex;
}

.sidebar .header .logo_icon {
  width: 90%;
  height: auto;
  margin-left: 15%;
  display: flex;
}

.sidebar.show .header .logo {
  width: 50%;
  height: auto;
  padding: 10px 0px;
  margin-left: 14px;
  display: flex;
}

.sidebar .header .logo {
  display: none;
}

.sidebar.show .header .logo_icon {
  width: 11% !important;
  margin-left: 14px;
  display: none;
}

.sidebar.show .header {
  height: 13vh;
}

.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 9vh;
  padding: 0 20px 0 8px;
  background: rgb(0 0 0 / 10%);
}

.sidebar.show .header {
  padding: 0 20px 0 1rem;
}

.sidebar.show .header svg {
  width: 0%;
}

.sidebar.show nav {
  height: 100%;
  justify-content: space-between;
  justify-items: center;

}

.sidebar.show~main {
  width: 100%;
}

.sidebar a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  width: 100%;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  padding: 0 0 0 16px;
  opacity: 0.75;
  cursor: pointer;
}

.sidebar a:hover {
  background: rgb(0 0 0 / 20%);
  opacity: 1;
}

.close-menu {
  margin-top: auto;
}

.close-menu i {
  font-size: 1rem !important;
}

.sidebar.show nav .close-menu {
  justify-content: start;
  justify-items: center;
  width: 95%;

}

.sidebar.show nav .close-menu i {
  margin-right: 1rem;
}

.nav-header {
  position: fixed;
  width: 100vw;
  background: url('../img/background.jpg') top right no-repeat;
  background-size:100% ;
  z-index: 99;
}

.high-contrast .nav-header {
  background: #000;
}

.high-contrast .nav-header .nav-header-item a {
  color: var(--primary);
}

.high-contrast .nav-header .nav-header-item i,
.high-contrast .nav-header .nav-header-item a {
  color: #fff;
}

.nav-header .nav-header-item {
  display: flex;
  align-items: center !important;
  text-align: center;
  justify-content: center;
  justify-items: center;
  height: 5rem;
  /* Ocupa toda a altura do container */
  min-width: 4rem;
  text-decoration: none;
  color: inherit;
  padding: .5rem 1rem !important;
  border: none;
}

.nav-header-item {
  padding-bottom: 1rem;
}

.nav-header-item i {
  text-align: center !important;
}

.nav-header-item.user-dropdown i {
  font-size: 12px;
}

.user-dropdown img {
  margin-right: 8px;
}

.nav-header .nav-header-item:hover {
  background: rgb(0, 0, 0, 0.05);
}


.breadcrumb ol li {
  font-size: .9rem !important;
  color: #555;
}

.breadcrumb ol li a {
  text-decoration: none;
  color: #555;
}

#userDropdown {
  margin-right: .2rem !important;
}

.tooltip-inner {
  background-color: var(--primary_dark);
  /* Cor de fundo */
  color: #fff;
  /* Cor do texto */
  font-size: 14px;
}

.tooltip-arrow::before {
  border-top-color: var(--primary_dark);
  /* Cor da seta */
}

.sidebar.show .tooltip {
  display: none;
}


/* Estilos extras para o modal e o area de arraste */
#dropArea {
  border: 2px dashed var(--color-primary-a50) !important;
  cursor: pointer;
  min-height: 150px;
  display: flex;
  align-items: center;
}

#cropContainer img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: #FFF;
}


.profile-picture-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.edit-icon {
  background-color: rgba(0, 0, 0, 0.1);
  color: white;
  display: flex;
  cursor: pointer;
  opacity: 0;
  transition-duration: .2s;
  justify-content: center;
  align-items: center;
  justify-items: center;
  position: absolute;
  height: 100%;
  width: 16%;
  top: 0;
  left: 0;
}

.btn-small {
  padding: 2px 10px !important;
  font-size: 12px;
}

.card .btn-small {
  float: right;
}

.card-perfil {
  border: none
}

.profile-picture-container:hover .edit-icon {
  opacity: 1;
}

.card .card-body .card-text,
.card .card-body h5 {
  line-height: 25px !important;
  padding: 0px !important;
  margin: 0px !important;
}

.alert {
  display: flex;
  align-items: center;
  padding: 0px 20px;
  border-radius: 5px;
  margin-top: 10px;
  color: #fff;
}

.alert-success {
  background-color: #28a745;
  color: #fff;
}

.alert-danger {
  background-color: #dc3545;
  color: #fff;
}

.alert-info {
  background-color: #17a2b8;
  color: #fff;
}

.alert-warning {
  background-color: #ffc107;
  color: #000;
}

.alert-success .msg-close,
.alert-danger .msg-close,
.alert-info .msg-close {
  color: #FFF !important;
  fill: #FFF !important;
  font-size: 2rem;
  padding-left: 3rem;
}

.alert-warning .msg-close {
  color: #333 !important;
  fill: #333 !important;
  font-size: 2rem;
  padding-left: 3rem;
}

.input-group button {
  border: 1px solid #ced4da;
  border-radius: 0px 3px 3px 0px;
}

.bg-primary {
  background: var(--primary) !important;
}

.bg-secondary {
  background: var(--secondary-a0) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-gray {
  color: var(--color-surface-mixed-a50) !important;
}

.bg-primary_dark {
  background: var(--primary_dark) !important;
}

.text-primary_dark {
  color: var(--primary_dark) !important;
}

.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary_dark);
}

.btn-primary:hover {
  background: var(--primary_dark) !important;
}

.bg-cross {
  background: radial-gradient(circle, transparent 20%, #f0f0f0 20%, #f0f0f0 80%, transparent 80%, transparent) 0% 0% / 78px 78px, radial-gradient(circle, transparent 20%, #f0f0f0 20%, #f0f0f0 80%, transparent 80%, transparent) 39px 39px / 78px 78px, linear-gradient(#dddee6 3px, transparent 3px) 0px -1.5px / 39px 39px, linear-gradient(90deg, #dddee6 3px, #f0f0f0 3px) -1.5px 0px / 39px 39px #f0f0f0;
  background-size: 78px 78px, 78px 78px, 39px 39px, 39px 39px;
  background-color: #f0f0f0;
}

.content {
  min-height: 100vh;
  padding-top: 5rem;
}

.text-instagram {
  color: var(--instagram) !important;
}

html,
body {
  height: 100%;
  /* Garante que o body e o html ocupem 100% da altura da tela */
  margin: 0;
  /* Remove margens padrão */
  padding: 0;
  /* Remove preenchimento padrão */
}

.btn-home {
  padding: 15px 30px;
  font-size: 16px;
  border: 2px solid #333;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  cursor: pointer;
}

.btn-home.btn-primary {
  border: 2px solid var(--primary_dark);
  margin-left: 20px;
}

.opt-screen {
  width: fit-content;
  display: inline-block;
  padding: 2px 5px;
}

.bg-whatsapp {
  background: #128c7e !important;
  border: none;
}

.bg-whatsapp:hover {
  background: #0b695e !important;
}

.card.card-servicos h5 {
  font-size: 1rem;
}

.card.card-servicos p {
  font-size: .8rem;
}

.card.card-servicos{
  margin-top: .8rem;
}
.card.card-servicos a {
  font-size: .8rem;
  padding: .3rem .7rem;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  /* Oculto por padrão */
  width: 40px;
  height: 40px;
  background-color: #007bff;
  /* Cor do botão */
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 1000;
  font-size: 18px;
  justify-content: center;
  align-items: center;
  display: flex;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
  background-color: #0056b3;
  /* Cor ao passar o mouse */
}

#back-to-top:active {
  transform: scale(0.9);
  /* Efeito ao clicar */
}

#servidor {
  background: var(--secondary-a0);
}

#cidadao {
  background: #FFF;
}

.high-contrast #servidor,
.high-contrast #cidadao {
  background: #000;
}

.high-contrast #btn-cidadao {
  background: var(--secondary-a0);
  color: #000;
}

.high-contrast .card {
  background: #111 !important;
  color: #FFF;
}

.navbar-brand .logo {
  background: url("../img/logo2.webp") center no-repeat;
  background-size: 100%;
  width: 120px;
  height: 50px;
}

.high-contrast .navbar-brand .logo {
  background: url("../img/logo.webp") center no-repeat;
  background-size: 100%;
  width: 120px;
  height: 50px;
}

#servidor .card {
  background: #f8f8f8;
}

/* Estilos para telas de smartphones */
@media screen and (max-width: 768px) {
  body {
    text-align: justify;
  }

  .container h3{
    font-size: 1.2rem;
  }
  .container h6, p{
    font-size: .9rem;
  }

  .nav-header .nav-header-item {
    display: flex;
    align-items: center !important;
    text-align: center;
    justify-content: center;
    justify-items: center;
    height: 5rem;
    /* Ocupa toda a altura do container */
    min-width: 2rem;
    text-decoration: none;
    color: inherit;
    padding: .5rem .8rem !important;
    border: none;
  }

  .btn-home{
    width: 40vw;
    font-size: .8rem;
  }
}

/* Estilo para navegadores baseados em WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px; /* Largura da barra vertical */
  height: 8px; /* Altura da barra horizontal */
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary); /* Cor da barra de rolagem */
  border-radius: 10px; /* Cantos arredondados */
}

::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* Cor do fundo da trilha */
}

/* Estilo para Firefox */
html {
  scrollbar-width: thin; /* Deixa a barra fina */
  scrollbar-color: var(--primary) #f1f1f1; /* Cor da barra e do fundo */
}
.tooltip-inner {
  background: var(--color-surface-a10)!important;
  color: #DDD;
}


#cookie div span{
  font-size: .8rem;
  text-align: justify!important;
  width: max-content;
}
#cookie {
  min-width: 100%;
  color: #000;
  background-color: #FFF;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 5px 5px 5px 0px rgba(161, 163, 164, 0.3);
  position: fixed;
  bottom: 0;
  left: 0;
}

#cookie button.btn {
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  float: right;
  padding: .4rem 10px;
  background: var(--primary);
  color: #FFF;
  position: absolute;
  right: 5rem;
}

ul {
  display: flex;
  flex-wrap: wrap; /* Permitir itens quebrarem para a próxima linha */
  justify-content: space-between; /* Espaçamento uniforme entre os itens */
  gap: 10px; /* Espaçamento entre os itens */
  padding: 0;
  list-style: none; /* Remove bullets padrão */
}

ul a {
  flex: 1 1 calc(25% - 10px); /* Cada item ocupa 25% menos o gap */
  max-width: calc(25% - 10px); /* Limita o tamanho máximo ao valor calculado */
  box-sizing: border-box; /* Inclui padding e border no tamanho total */
  text-decoration: none;
  color: #333;
  cursor: pointer;
  width: 100%; /* Garante que o conteúdo preencha o item */
  padding: 10px 20px;
  background: #e9eaed;
  text-align: left; /* Centraliza o texto */
  border-radius: 4px; /* Opcional: bordas arredondadas */  
  font-size: .9rem
  ;
}

ul a button{
  line-height: 0px;
  float: right;
  background: #dadbdb!important;
  color: var(--color-surface-a20)!important;
}

ul a button i{
  font-size: 1.2rem!important;
}
.icon-file{
  font-size: 1.4rem!important;
}