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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f0f0f;
  color: #fff;
}

/* ====== HEADER ====== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  background-color: #000;
  border-bottom: 2px solid #00bfff;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #00bfff;
}

header .btn {
  margin-left: 10px;
}

/* ====== LAYOUT ====== */
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.box {
  background: #1a1a1a;
  border: 2px solid #00bfff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
/* Centralizar só o box do formulário */
.filters-container .filter, .export-section {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px auto; /* centraliza e dá espaçamento inferior */
  max-width: 600px;         /* controla a largura máxima */
  width: 100%;
}

.titulo {
  text-align: center;
  font-size: 22px;
  margin-bottom: 15px;
  color: #00bfff;
}

/* ====== FORMULÁRIO ====== */
.search-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.search-form select,
.search-form input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #00bfff;
  background: #0f0f0f;
  color: #fff;
  font-size: 15px;
}

.search-form select:focus,
.search-form input:focus {
  outline: none;
  border-color: #007bff;
}

.remove-filter {
  background: #e74c3c;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.remove-filter:hover {
  background: #c0392b;
}

.export-section {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ====== BOTÕES ====== */
.btn {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px;
  color: #eaf6ff;
  background: linear-gradient(180deg, #1990ff, #007bff);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

/* ====== TABELA ====== */
.table-container {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 900px;
}

.results-table th,
.results-table td {
  border: 1px solid #00bfff;
  padding: 10px;
  text-align: left;
}

.results-table th {
  background: #003d80;
  color: #fff;
  position: sticky;
  top: 0;
}

.results-table tr:nth-child(even) {
  background: #181818;
}

.results-table tr:hover {
  background: rgba(0,191,255,0.15);
}
/* ===== Contador (dark neon) ===== */
.contador {
  display: inline-flex;               /* fica compacto ao conteúdo */
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid #00bfff;          /* borda neon */
  border-radius: 999px;               /* pílula */
  background: #1a1a1a;                /* card dark */
  color: #eaf6ff;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  letter-spacing: .2px;
  box-shadow:
    0 0 18px rgba(0,191,255,.25),
    inset 0 0 0 1px rgba(255,255,255,.05);
}

/* Valor em destaque */
#diasRestantes {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 16px;
  color: #00d2ff;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0,191,255,.08);
  box-shadow: 0 0 12px rgba(0,191,255,.35);
  animation: neonPulse 2.2s ease-in-out infinite;
}

/* Animação sutil do brilho */
@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0,191,255,.25); }
  50%      { box-shadow: 0 0 18px rgba(0,191,255,.45); }
}

/* Opcional: versão “barra” ocupando toda a largura */
.contador.is-full {
  display: flex;
  justify-content: center;
  width: 100%;
  border-radius: 12px;
  padding: 12px 16px;
}

/* Responsivo */
@media (max-width: 480px) {
  .contador { font-size: 13px; padding: 8px 12px; }
  #diasRestantes { font-size: 15px; }
}
