table{
 border-collapse: collapse;
 width: 100%;
}
tr{
  border-left: 1px solid;
  border-right: 1px solid;
}
td{
  border-bottom: 1px solid;
  border-top: 1px solid;
  text-align: left;
  padding: 3px;
}
#titulo{
    text-transform: uppercase;
}

caption{
  background-color: #003566;
  color: white;
  text-align: center;

  padding: 14px 22px;
  text-transform: uppercase;
  caption-side: top;
}
#popup {
  height: 600px;
  margin: 0 auto;
  overflow: auto;
}

div {
  margin-bottom: 5px;
}

.btnAbrir{
  background-color: #003566;
  width: 100%;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
}

#autores, #localidade, #estado {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background-color: rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    max-width: 300px;
    overflow-x: hidden;
    overflow-y: auto;
}

#ano {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background-color: rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;

}

.containerSelecao{
  background-color: rgba(255,255,255,0.6);
  padding: 30px 25px 30px 25px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  border-radius: 5px;
}





#botaoTodos {
  width: 150px;
  margin-top: -10px;
  background-color: #4495CF;
}
#botaoDissertacao, #botaoTeses{
  width: 150px;
  margin-top: -10px;
  background-color: white;
  border: solid 2px #4495CF;
  color: #4495CF;
}

.btnExcluir{
  background-color: #CC0000;
  width: 100%;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
}
.btnEditar{
  background-color: #ff8000;
  width: 100%;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
}


/* Menu Principal - Estilo Compacto */
.layer-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 50px;
    width: 50px;
    
}

.layer-menu.open {
    max-height: 70vh;
    height: 70vh;
    width: 350px;
}

/* Botão Toggle - Estilo Moderno */
.menu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: black;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    z-index: 2;
   
    transition: all 0.3s ease;
}



/* Conteúdo do Menu */
.menu-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 60px 15px 15px 15px;
    height: calc(100% - 75px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(52, 152, 219, 0.5) transparent;
}

.menu-content::-webkit-scrollbar {
    width: 6px;
}

.menu-content::-webkit-scrollbar-track {
    background: transparent;
}

.menu-content::-webkit-scrollbar-thumb {
    background-color: rgba(52, 152, 219, 0.5);
    border-radius: 3px;
}

.layer-menu.open .menu-content {
    opacity: 1;
    visibility: visible;
}

/* Grupos de Camadas */
.layer-group {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.layer-item {
    display: flex;
    align-items: center;
    padding: 8px 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.layer-item:hover {
    background-color: #f8f9fa;
}

.layer-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.layer-item label {
    color: #2c3e50;
    cursor: pointer;
    font-weight: 500;
}

/* Filtros */


.filter-toggle button:hover {
    background: #2980b9;
}

.filter-form {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    max-height: 50vh;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 15px;
}

.filter-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.filter-section legend {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.filter-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.filter-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.filter-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.filter-buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
    transition: background-color 0.2s;
}

#applyFilters {
    background: #27ae60;
    color: white;
}

#applyFilters:hover {
    background: #219653;
}

#clearFilters {
    background: #e74c3c;
    color: white;
}

#clearFilters:hover {
    background: #c0392b;
}

/* Checkbox groups */
.filter-section > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.filter-section > div > div {
    display: flex;
    align-items: center;
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.filter-section input[type="checkbox"] {
    margin-right: 5px;
}

.loading {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
}