/* =========================================================
   BASE / RESET
========================================================= */
* {
  box-sizing: border-box;
}

body {
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: #f8fafc;
  color: #1e293b;
}

/* =========================================================
   SPLASH SCREEN (Tela de carregamento)
========================================================= */
.splash {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
}

.splash img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  opacity: 0;
  transform: scale(.9);
  transition: all 0.8s ease-in-out;
}

/* Fade out animation */
.fade-out {
  animation: fadeOut 0.6s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
  }
}

.hidden {
  display: none;
}

/* =========================================================
   HOME / INDEX
========================================================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* =========================================================
   BOTÕES
========================================================= */
.menu {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1e40af;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #475569;
  color: #fff;
}

.btn-secondary:hover {
  background: #334155;
  transform: translateY(-2px);
}

/* =========================================================
   NAI / NAV SUPERIOR
========================================================= */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #004169;
  color: #fff;
  height: 60px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 65, 105, 0.22);
  z-index: 20;
}

.topnav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 153, 204, 0.45) 30%,
    rgba(102, 197, 232, 0.9) 50%,
    rgba(0, 153, 204, 0.45) 70%,
    transparent 100%
  );
  opacity: 0.95;
  pointer-events: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

a.nav-logo {
  color: inherit;
  text-decoration: none;
}

a.nav-logo:hover,
a.nav-logo:focus-visible {
  color: #b8e4f5;
}

.nav-right a {
  color: #f8fafc;
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-right a:hover {
  color: #b8e4f5;
}

.nav-right .active {
  border-bottom: 2px solid #66c5e8;
}

/* =========================================================
   PÁGINA DE ALUNOS
========================================================= */
.alunos-section {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.alunos-container {
  width: 100%;
  max-width: 1100px;
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.alunos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.alunos-header h1 {
  color: #004169;
  font-size: 1.6rem;
}

.filtros {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filtros input {
  padding: 0.6rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

.subfiltros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.subfiltros select {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.95rem;
  flex: 1;
  min-width: 200px;
}

.alunos-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.alunos-table th,
.alunos-table td {
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  padding: 0.75rem;
}

.alunos-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #334155;
}

.alunos-table tr:hover {
  background: #f9fafb;
}

/* =========================================================
   FORMULÁRIO CADASTRAR ALUNO
========================================================= */
.form-section {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.form-container {
  width: 100%;
  max-width: 700px;
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.form-container h1 {
  color: #004169;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.6rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #f8fafc;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.radio-group label {
  font-weight: 500;
  color: #475569;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* =========================================================
   FICHA DO ALUNO / TIMELINE
========================================================= */
.timeline {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  max-width: 1000px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.timeline-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 1rem 1.3rem;
  min-width: 280px;
  flex: 0 0 280px;
}
