:root {
  --azul-escuro: #003359;
  --azul: #0077b6;
  --ciano: #00a7c9;
  --ciano-claro: #ade8f4;
  --verde-claro: #88d4ab;
  --verde-fundo: #eafaf1;
  --fundo: #f4f8fb;
  --branco: #ffffff;
  --texto: #1f2937;
  --borda: #d9e4ec;
  --sombra: 0 8px 24px rgba(0, 51, 89, 0.12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #eef6fb 0%, #f8fbfd 100%);
  color: var(--texto);
}

.container {
  max-width: 1100px;
  margin: 32px auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow: var(--sombra);
}

.header-section {
  text-align: center;
  margin-bottom: 28px;
}

.header-section h1 {
  margin: 0;
  color: var(--azul-escuro);
  font-size: 2rem;
}

.campo-form {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--azul-escuro);
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--borda);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--branco);
  color: var(--texto);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--ciano);
  box-shadow: 0 0 0 3px rgba(0, 167, 201, 0.18);
}

button {
  display: inline-block;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: var(--ciano);
  color: var(--branco);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 167, 201, 0.2);
}

.bloco-tabela,
#tabelaBloco1,
#tabelaBloco2 {
  margin: 22px 0;
}

.tabela-dinamica,
.tabela-resultado {
  width: 100%;
  border-collapse: collapse;
  background: var(--branco);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 51, 89, 0.08);
}

.tabela-dinamica th,
.tabela-dinamica td,
.tabela-resultado th,
.tabela-resultado td {
  border: 1px solid #e5edf3;
  padding: 10px 12px;
  text-align: center;
  font-size: 0.95rem;
}

.tabela-dinamica th,
.tabela-resultado th {
  background: var(--azul-escuro);
  color: var(--branco);
  font-weight: 700;
}

.tabela-dinamica tr:nth-child(odd) td {
  background: #f9fcfe;
}

.tabela-dinamica tr:nth-child(even) td {
  background: #f2f8fb;
}

.tabela-dinamica tr:nth-child(1) td,
.tabela-dinamica tr:nth-child(2) td {
  background: #dff4e7;
}

.tabela-dinamica tr:nth-child(3) td,
.tabela-dinamica tr:nth-child(4) td {
  background: #e0f6fb;
}

.campo-destacado {
  outline: 2px solid var(--ciano);
  background: #eaf6f9 !important;
}

#resultado {
  margin-top: 28px;
  padding: 20px;
  background: var(--verde-fundo);
  border: 1px solid #cce9d8;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 51, 89, 0.06);
}

#resultado h3,
#resultado h4 {
  margin-top: 0;
  color: var(--azul-escuro);
}

#resultado p,
#resultado li,
#resultado strong {
  color: var(--azul-escuro);
}

#infoUsuario {
  text-align: center;
  margin-bottom: 20px;
  color: var(--azul-escuro);
  font-size: 1.05rem;
}

#infoUsuario span {
  font-weight: 700;
}

.footer-section {
  margin-top: 28px;
  text-align: center;
  color: #5b7083;
  font-size: 0.95rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--branco);
  background: var(--azul-escuro);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  animation: fadeInUp 0.25s ease;
}

.toast.erro {
  background: #c0392b;
}

.toast.sucesso {
  background: #198754;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mascote-decorativo,
.mascote-1,
.mascote-2,
.mascote-header,
.mascote-botao,
.mascote-footer {
  display: none;
}

@media (max-width: 768px) {
  .container {
    margin: 16px;
    padding: 18px;
    border-radius: 18px;
  }

  .header-section h1 {
    font-size: 1.6rem;
  }

  .tabela-dinamica th,
  .tabela-dinamica td,
  .tabela-resultado th,
  .tabela-resultado td {
    padding: 8px;
    font-size: 0.85rem;
  }

  button {
    padding: 12px 14px;
  }
}