/* Estilos gerais */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0 10px 40px 10px;
  background-color: #f9f9f9;
}

h1 {
  color: #00008b;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
}

.search-container {
  margin: 20px auto;
  width: 70%;
}

.searchInput {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bloco-container {
  width: 75%;
  margin: 10px auto;
  text-align: left;
}

.bloco-header {
  color: #00008b;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 15px;
  background-color: #e7e7ff;
  border: 1px solid #ddd;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bloco-header_reserva {
  color: #00008b;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 15px;
  background-color: #e7e7ff;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bloco-header:hover {
  background-color: #d8d8ff;
}

.bloco-header::after {
  content: "\002B";
  font-size: 20px;
  font-weight: bold;
  color: #00008b;
  transition: transform 0.2s;
}

.bloco-header.active::after {
  content: "\2212";
}

.content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  background-color: white;
  border: 1px solid #ddd;
  border-top: none;
}

/* Ajuste Técnico: Permite expansão total sem cortes */
.content.show {
  max-height: none;
}

.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

th,
td {
  padding: 12px;
  border: 1px solid #ddd;
  vertical-align: top;
  word-wrap: break-word;
}

th {
  background-color: #00008b;
  color: white;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
}

/* Colunas em AZUL e NEGRITO conforme solicitado */
td {
  background-color: white;
  color: #00008b;
  font-weight: bold;
  font-size: 14px;
}

td:nth-child(1) {
  width: 120px;
  white-space: nowrap;
}

td:nth-child(2) {
  width: 200px;
}

tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

tbody tr:hover {
  background-color: #e0e0ff;
}

@media screen and (max-width: 768px) {
  .bloco-container,
  .search-container {
    width: 98%;
  }
  td,
  th {
    padding: 8px;
    font-size: 12px;
  }
  td:nth-child(1) {
    width: 90px;
  }
}

.input-hidden {
  display: none;
}

.custom-file-upload {
  display: inline-block;
  padding: 10px 20px;
  cursor: pointer;
  background-color: #00008b;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-file-upload:hover {
  background-color: #1d4ed8;
}

.custom-file-upload:active {
  transform: scale(0.98);
}

#file-name {
  margin-left: 10px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.btn-delete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #fee2e2; /* Vermelho bem clarinho */
  color: #dc2626; /* Texto vermelho vivo */
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Efeito ao passar o mouse */
.btn-delete:hover {
  background-color: #dc2626;
  color: white;
  border-color: #dc2626;
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
}

/* Efeito ao clicar */
.btn-delete:active {
  transform: scale(0.95);
}

/* Desenho da Lixeira (Ícone CSS) */
.icon-trash {
  width: 12px;
  height: 14px;
  border: 2px solid currentColor;
  border-top: none;
  position: relative;
  border-radius: 0 0 2px 2px;
}

/* Tampa da lixeira */
.icon-trash::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -2px;
  width: 16px;
  height: 2px;
  background-color: currentColor;
}

/* Alça da tampa */
.icon-trash::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 3px;
  width: 6px;
  height: 2px;
  border: 2px solid currentColor;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}

.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #ecfdf5; /* Verde bem clarinho (Emerald 50) */
  color: #059669; /* Verde esmeralda vivo */
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.actions-container {
  display: flex;
  justify-content: center; /* Centraliza horizontalmente */
  padding: 5px 0; /* Cria o "respiro" em cima e embaixo (não deixa grudar) */
  width: 100%;
}

/* Botão Salvar - Versão Aumentada */
.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px; /* Aumentei o tamanho interno (mais gordinho) */
  background-color: #ecfdf5;
  color: #059669;
  border: 2px solid #a7f3d0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.1); /* Sombra leve constante */
}

/* Hover: Feedback mais forte */
.btn-save:hover {
  background-color: #059669;
  color: white;
  border-color: #059669;
  transform: translateY(-2px); /* Efeito de levitar ao passar o mouse */
  box-shadow: 0 6px 15px rgba(5, 150, 105, 0.3);
}

/* Clique */
.btn-save:active {
  transform: translateY(0) scale(0.96);
}

/* Ícone levemente maior para acompanhar o botão */
.icon-save {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  position: relative;
  border-radius: 3px;
}
.icon-save::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  width: 6px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-top: none;
}

.button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

button {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
  background-color: #34495e;
  transform: translateY(-2px);
}

button:active {
  transform: scale(0.98);
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #eff6ff; /* Azul clarinho */
  color: #2563eb; /* Azul royal */
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add:hover {
  background-color: #2563eb;
  color: white;
  border-color: #2563eb;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-add:active {
  transform: scale(0.95);
}

/* Ícone de Plus (+) em CSS puro */
.icon-plus {
  width: 14px;
  height: 14px;
  position: relative;
  display: inline-block;
}

.icon-plus::before,
.icon-plus::after {
  content: "";
  position: absolute;
  background-color: currentColor;
  border-radius: 2px;
}

/* Linha horizontal */
.icon-plus::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

/* Linha vertical */
.icon-plus::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}
/* Botão Exportar */
.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-export:hover {
  background-color: #374151;
  color: white;
  border-color: #374151;
}

/* Ícone de Download em CSS */
.icon-download {
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: none;
  position: relative;
  margin-top: 4px;
}

.icon-download::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 4px;
  width: 2px;
  height: 8px;
  background-color: currentColor;
}

.icon-download::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 1px;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
