body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f6f9;
}

header {
  background: #1f2937;
  color: white;
  padding: 15px 25px;
}

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

.logo {
  height: 60px;
  width: auto;
}

.header-text h1 {
  margin: 0;
  font-size: 24px;
}

.header-text p {
  margin: 5px 0 0 0;
  opacity: 0.8;
}

.generation-info {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  opacity: 0.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 20px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #3b82f6;
}

.card h3 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
}

.card p {
  font-size: 24px;
  font-weight: bold;
  margin-top: 8px;
  color: #111827;
}

.charts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 20px 20px 20px;
}

.chart-box {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 400px;
}

#groupChart,
#shareChart,
#examsTypeChart {
  width: 100% !important;
  max-height: 320px;
}

/* Responsividade */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .tables {
    overflow-x: auto;
  }
  table {
    min-width: 600px;
  }
}

.tables {
  padding: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: white;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

th {
  background: #f3f4f6;
}

.total-row {
  background-color: #e5e7eb;
  font-weight: bold;
}

.total-row td {
  border-top: 2px solid #374151;
}

footer {
  background: #1f2937;
  color: white;
  padding: 40px 20px;
  margin-top: 50px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  margin-top: 0;
  font-size: 16px;
  border-bottom: 2px solid #3b82f6;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.footer-section p {
  margin: 5px 0;
  font-size: 14px;
  opacity: 0.75;
}

@media (max-width: 600px) {
  .footer-content {
    text-align: center;
  }
}
