* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
}

.content {
  position: relative;
  display: flex;
  flex: 1;
  width: 100%;
}


.header {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem;
  padding-left: 1.5rem; 
}

.menu .logo .dsc {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.menu-buttons {
  display: flex;
  align-items: center;
  padding-right: 1.5rem; 
}

.menu-button {
background-color: #6c63ff;
border: none;
color: white;
text-align: center;
text-decoration: none;
font-size: 16px;
margin: 4px 2px;
padding: 8px 16px;
border-radius: 50px;
cursor: pointer;
transition: background-color 0.3s;
}

.menu-button:hover {
background-color: #4b47e6;
}

.menu-search {
  display: flex;
  align-items: center;
}

#search {
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid #ccc;
  font-size: 14px;
  margin-right: 8px;
}

.menu-separator {
height: 1px;
background-color: #e5e5e5;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}

.map-container {
  position: relative;
  flex-grow: 1;
}

#map {
    height: 100%;
    width: 100%;
}

.legend {
    position: absolute;
    /*z-index: 5*/
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    bottom: 30px;
    left: 10px;
}

.pin {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 5px;
}

.pin-blue {
    background-color: blue;
}

.pin-red {
    background-color: red;
}

.pin-green {
    background-color: green;
}

.pin-yellow {
    background-color: yellow;
}

.pin-gray {
  background-color: orange;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s; /* Adiciona transição */
} 

.modal-content {
  width: 80%;
  max-height: 70%;
  overflow-y: auto;
  box-sizing: border-box;
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  max-width: 1200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adiciona sombra */
  transition: transform 0.3s; /* Adiciona transição */
  position: relative; /* Adiciona posição relativa para posicionar o botão de fechar corretamente */
}

.modal-content::-webkit-scrollbar {
  width: 10px;
  background-color: #f5f5f5;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.modal-content:hover {
  transform: translateY(-5px);
}

@media (min-width: 768px) {
  .modal-content {
    margin: 10% auto;
    width: 50%;
  }
}


.close {
  color: #aaaaaa;
  position: absolute; /* Posiciona o botão de fechar dentro do modal */
  top: 10px; /* Ajusta a posição do botão de fechar */
  right: 10px;
  font-size: 28px;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.5); /* Adiciona um fundo semitransparente */
  border-radius: 50%; /* Arredonda o botão */
  width: 40px; /* Ajusta o tamanho do botão */
  height: 40px;
  display: flex; /* Centraliza o ícone de fechar */
  justify-content: center;
  align-items: center;
  transition: color 0.3s, background-color 0.3s; /* Adiciona transição */
}

.close:hover,
.close:focus {
  color: #ffffff; /* Altera a cor do "X" para branco ao passar o mouse */
  background-color: rgba(255, 0, 0, 0.4); /* Altera a cor do fundo para vermelho mais transparente ao passar o mouse */
  text-decoration: none;
  cursor: pointer;
}

  /* Adicione essas regras ao seu arquivo styles.css */
  .sidebar {
    position: sticky;
    top: 0;
    width: 120px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adicione a sombra igual a do header */
    transition: width 0.5s ease-in-out;
  }
  
  .wrapper {
    display: flex;
    height: calc(100% - 69px);
  }
  
  .sidebar-menu {
    display: flex;
    flex-direction: column;
    padding-top: 10px; /* Ajuste o valor conforme necessário */
  }
  
  .sidebar-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .sidebar-menu li {
    margin-bottom: 1rem;
  }
  
  .sidebar-menu a {
    display: block;
    text-decoration: none;
    color: blue;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: background-color 0.3s;
  }
  
  .sidebar-menu a:hover {
    background-color: rgb(105, 105, 241);
  }

/* Estilos para a div ai-airportinfo e service-template */
.ai-container {
  width: 80%;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ai-airportinfo h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.ai-title {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.ai-list {
  list-style-type: none;
}

.ai-list li {
  margin-bottom: 0.5rem;
}

/* Estilos para o template service-template */
.ai-service-category {
  font-size: 1.3rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.ai-service-category:not(:first-child) {
  margin-top: 2rem;
}

.ai-list li {
  margin-bottom: 0.5rem;
}


.provider-name,
.provider-email,
.provider-phone,
.provider-frequency,
.provider-emergency-phone,
.provider-description {
  font-weight: 400;
  margin-left: 0.5rem;
}

.aside .app-info {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.5rem;
  font-size: 0.8rem;
  text-align: left;
  color: #888; /* Adicione a cor cinza claro aqui */
}

.aside .app-info a {
  color: inherit;
  text-decoration: none;
}

.aside .app-info a:hover {
  text-decoration: underline;
}

.sidebar-button,
.sidebar-button:link,
.sidebar-button:visited {
  background-color: #6c63ff;
  color: white;
  border: none;
  padding: 6px 12px;
  margin: 5px;
  cursor: pointer;
  width: calc(100% - 10px);
  text-align: center;
  font-size: 14px;
  border-radius: 50px;
  transition: background-color 0.3s;
  display: inline-block;
  text-decoration: none;
  font-family: Arial, sans-serif;
}

.sidebar-button:hover,
.sidebar-button:active,
.sidebar-button:link:hover,
.sidebar-button:link:active,
.sidebar-button:visited:hover,
.sidebar-button:visited:active {
  background-color: #5a51ff;
}


.version {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
}

.forgot-password {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #007bff;
  text-align: right;
}

.forgot-password:hover {
  text-decoration: underline;
}

.alert-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.close-alert {
  cursor: pointer;
  font-weight: bold;
  float: right;
  margin-left: 10px;
}

.bold-warning {
  font-weight: bold;
}

.logo-img {
  width: 250px; /* ajuste o tamanho conforme necessário */
  height: auto;
}

.toggle-sidebar {
  position: absolute;
  top: calc(50%);
  right: -30px; /* Ajuste a posição do botão para acompanhar o aside */
  z-index: 3;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  border-radius: 0 4px 4px 0;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: width 0.5s ease-in-out;  /* Adicione a transição para acompanhar o aside */
}

.sidebar {
  position: relative;
  top: 0;
  height:100%;
  width: 120px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adicione a sombra igual a do header */
  transition: width 0.5s ease-in-out;
}

.sidebar.collapsed {
  width: 0;
  border-right: none;
  transition: width 0.5s; /* Adicione a transição para o aside */
}

.map-container.expanded {
  width: calc(100% - 0px);
  margin-left: 0;
}

.toggle-sidebar.collapsed {
  right: 0;
  transform: translateY(-50%);
}

aside {
  position: absolute;
  top: 65px; /* ou qualquer valor que desejar para ajustar a posição vertical */
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.24);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

aside:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); /* Ajuste os valores de sombra aqui */
}

/* CSS para dispositivos móveis */
@media (max-width: 767px) {


  .mobile-menu {
    display: none;
  }

  .logo-img {
    width: 130px; /* ajuste o tamanho conforme necessário */
    height: auto;
  }

}

@media (max-width: 768px) {
  .menu-search {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
}

@media (max-width: 767px) {
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive tr,
  .table-responsive th,
  .table-responsive td {
    display: block;
  }

  .table-responsive tr {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
  }

  .table-responsive th,
  .table-responsive td {
    border: none;
    border-bottom: 1px solid #ddd;
  }

  .table-responsive th {
    font-weight: bold;
  }

  .table-responsive th,
  .table-responsive td {
    text-align: left;
  }

  .table-responsive td:nth-of-type(1):before {
    content: attr(data-th) " ";
    font-weight: bold;
  }

 /* .table-responsive th:nth-of-type(4),
  .table-responsive td:nth-of-type(4),
  .table-responsive th:nth-of-type(5),
  .table-responsive td:nth-of-type(5),
  .table-responsive th:nth-of-type(6),
  .table-responsive td:nth-of-type(6),
  .table-responsive th:nth-of-type(7),
  .table-responsive td:nth-of-type(7),
  .table-responsive th:nth-of-type(8),
  .table-responsive td:nth-of-type(8) {
    display: none;
  }*/
}

.menu-auth {
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.menu-button {
  display: inline-block;
  margin-left: 10px;
  margin-right: 10px;
}


/* Estilos dos ícones Font Awesome */
.menu-button i {
  display: none;
}

/* Media query para dispositivos móveis */
@media screen and (max-width: 768px) {
  .menu-button {
    font-size: 0;
  }

  .menu-button i {
    display: inline-block;
    font-size: 1rem;
  }
}