*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  background: #f0f2f5;
  color: #1a1a2e;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  background: #003348;
  color: white;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-inner img{
  width: 100px;
  height: 100px;
  border-radius: 100%;
}

.site-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Tela 1: Seleção ── */
.selecao-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px;
  min-height: calc(100vh - 300px);
}

.selecao-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  padding: 36px 40px;
  width: 100%;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  gap: 30px;
}

.selecao-card img{
  height: 150px;
}

.header-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header-card h2{
  font-size: 1.3rem;
  font-weight: bold;
  color: #003348;
  padding-bottom: 12px;
  border-bottom: 2px solid #d4e3f0;
  text-transform: uppercase;
  text-align: center;
}

.card-title{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.text-focus{
  font-size: large;
  font-weight: 600;
  color: #003348;
}

.forms{
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group > label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c5d4e0;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #1a1a2e;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a3a5c' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
  transition: border-color 0.2s;
}

select:focus {
  outline: none;
  border-color: #1a3a5c;
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  color: #374151;
}

.radio-label input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: #1a3a5c;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: #003348;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #245080;
}

.msg-erro {
  color: #c0392b;
  font-size: 0.875rem;
  margin-top: 12px;
  text-align: center;
}

/* ── Tela 2: Resultado ── */
.resultado-container {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 40px;
}

.resultado-header {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 20px 20px 0 0;
  background-color: #003348;
  padding: 25px 0;
  border-bottom: 1px solid #275061;

}

.btn-voltar {
  margin-top: 20px;
  flex-shrink: 0;
  padding: 8px 16px;
  background: #003348;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-voltar:hover {
  background: #1a3a5c;
  color: #fff;
}

#titulo-resultado {
  font-size: 1.2rem;
  font-weight: bolder;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding-top: 6px;
}

/* ── Tabela ── */
.tabela-wrapper {
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.div-overflow{
  overflow-y: auto;
  max-height: calc(100vh - 350px);

}

.div-overflow::-webkit-scrollbar {
  width: 10px; /* largura da barra */
}

.div-overflow::-webkit-scrollbar-track {
  background: #ffffff; /* fundo do trilho */
  border-radius: 6px;
}

.div-overflow::-webkit-scrollbar-thumb {
  background: #032b3b; /* cor da barra */
  border-radius: 6px;
  border: 2px solid #e5e7eb;
}

.div-overflow::-webkit-scrollbar-thumb:hover {
  background: #245080; /* cor ao passar o mouse */
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 860px;
}

thead {
  background: #003348;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

thead th {
  padding: 11px 12px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.12);
}

thead th:last-child {
  border-right: none;
}



tbody tr {
  border-bottom: 1px solid #e8eef4;
  transition: background 0.15s;
}

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

tbody tr:hover {
  background: #dceaf5;
}

tbody td {
  padding: 9px 12px;
  text-align: center;
  font-size: 0.85rem;
  color: #1a1a2e;
  border-right: 1px solid #e8eef4;
}

tbody td:last-child {
  border-right: none;
}

/* Nome alinhado à esquerda */
tbody td:nth-child(2) {
  text-align: left;
  font-weight: 500;
}

/* Coluna CLASS — destaque numérico */
tbody td:nth-child(10) {
  font-weight: 700;
  color: #1a3a5c;
}

/* Situação: APROVADO em verde, demais em padrão */
.situacao-aprovado {
  color: #155a2e;
  font-weight: 700;
  background: #d4edda;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.situacao-reprovado {
  color: #7b1a1a;
  font-weight: 700;
  background: #f8d7da;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.situacao-outro {
  color: #5a4a00;
  font-weight: 600;
  background: #fff3cd;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.sem-registros {
  text-align: center;
  padding: 40px;
  color: #6b7280;
  font-size: 1rem;
}

/* ── Responsivo ── */
@media (max-width: 600px) {
  .selecao-card {
    padding: 24px 20px;
  }

  .site-header h1 {
    font-size: 1rem;
  }
}
