* {
  overflow-x: hidden;
  box-sizing: border-box; /* Garante layout consistente */
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f0f0f0;
  margin: 40px;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1em;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

thead {
  background-color: #007bff;
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
}

thead th {
  padding: 15px;
  text-align: left;
}

thead th:not(:first-of-type) {
  text-align: center;
}

tbody tr {
  border-bottom: 1px solid #ddd;
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: #f1f1f1;
  cursor: pointer;
}

tbody td {
  padding: 15px;
  color: #333;
  text-align: left;
}

tbody td:not(:first-of-type) {
  text-align: center;
}

tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

/* Estilo do container do filtro */
.filter-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

/* Estilo do label */
.filter-label {
  font-size: 1em;
  font-weight: bold;
  color: #333;
}

/* Estilo do dropdown */
#filter-key {
  padding: 8px 12px;
  font-size: 1em;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.3s;
}

#filter-key:focus {
  border-color: #007bff;
  outline: none;
}

/* Estilo do botão */
.filter-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.w3-icon.fa-search {
  font-size: 1.5em;
  color: black;
  transition: color 0.3s;
}

.w3-icon.fa-search:hover {
  color: #0056b3;
}

#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#modal-container {
  background: #fff;
  border-radius: 10px;
  padding: 30px; /* Margens maiores */
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.3s ease-out;
}

#modal-title {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #333;
}

#modal-content {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6; /* Melhor espaçamento entre linhas */
}

#modal-close-button {
  background: #007bff;
  color: #fff;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

#modal-close-button:hover {
  background: #0056b3;
  transform: scale(1.05); /* Leve aumento no botão */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

footer {
  text-align: center;
  margin-top: 30px;
  color: #999;
  font-size: 0.9em;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 4px;
}

.pagination button,
.pagination span {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  color: #333;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pagination button:hover {
  background-color: #e0e0e0;
}

.pagination button:disabled {
  background-color: #f1f1f1;
  color: #bbb;
  cursor: not-allowed;
}

.pagination .active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
  font-weight: bold;
}

.pagination .active:hover {
  background-color: #0056b3;
}

.pagination i {
  font-size: 14px;
}

.pagination span {
  background-color: transparent;
  border: none;
  color: #777;
  cursor: default;
}

/* Responsivo para telas menores */
@media (max-width: 600px) {
  .pagination button,
  .pagination span {
    padding: 6px 8px;
    font-size: 12px;
  }
}
