/* ===================================
   CONFIGURAÇÃO GERAL
=================================== */

* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;

  background: #f4f7fb;

  color: #333;
}

/* ===================================
   CABEÇALHO
=================================== */

header {
  background: linear-gradient(135deg, #0d47a1, #1976d2);

  color: white;

  text-align: center;

  padding: 20px 20px;
}

header h1 {
  font-size: 32px;

  margin-bottom: 15px;
}

header p {
  font-size: 18px;
}

.info-curso {
  display: flex;

  justify-content: center;

  gap: 20px;

  flex-wrap: wrap;

  margin-top: 25px;
}

.info {
  background: rgba(255, 255, 255, 0.15);

  padding: 15px 25px;

  border-radius: 12px;

  font-weight: bold;
}

/* ===================================
   CONTAINER
=================================== */

.container {
  max-width: 1200px;

  margin: auto;

  padding: 25px;
}

/* ===================================
   PAINEL PROGRESSO
=================================== */

.painel {
  background: white;

  border-radius: 15px;

  padding: 25px;

  margin-bottom: 30px;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.painel h2 {
  color: #1565c0;

  margin-bottom: 20px;
}

.barra-fundo {
  width: 100%;

  height: 35px;

  background: #ddd;

  border-radius: 20px;

  overflow: hidden;
}

.barra {
  height: 100%;

  width: 0%;

  background: #4caf50;

  color: white;

  text-align: center;

  line-height: 35px;

  font-weight: bold;

  transition: 0.5s;
}

.status {
  margin-top: 15px;

  font-size: 18px;

  font-weight: bold;
}

/* ===================================
   BOTÕES
=================================== */

.botoes {
  display: flex;

  gap: 15px;

  flex-wrap: wrap;

  margin-top: 20px;
}

button {
  background: #d32f2f;

  color: white;

  border: none;

  padding: 12px 20px;

  border-radius: 8px;

  cursor: pointer;

  font-size: 15px;
}

button:hover {
  opacity: 0.85;
}

/* ===================================
   MÓDULOS
=================================== */

.modulo {
  background: white;

  border-radius: 15px;

  margin-bottom: 25px;

  overflow: hidden;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.modulo h2 {
  background: #1565c0;

  color: white;

  padding: 18px;

  font-size: 22px;
}

.lista-aulas {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 12px;

  padding: 20px;
}

/* ===================================
   AULA
=================================== */

.aula {
  display: flex;

  align-items: center;

  gap: 10px;

  background: #e3f2fd;

  padding: 15px;

  border-radius: 12px;

  transition: 0.3s;
}

.aula:hover {
  background: #bbdefb;

  transform: translateY(-3px);
}

.aula input {
  width: 22px;

  height: 22px;
}

.aula a {
  flex: 1;

  text-decoration: none;

  color: #0d47a1;

  font-weight: bold;
}

/* ===================================
 TIPOS DE AULA
=================================== */

.tipo {
  font-size: 12px;

  font-weight: bold;

  padding: 5px 8px;

  border-radius: 8px;
}

.teoria {
  background: #dbeafe;

  color: #1565c0;
}

.pratica {
  background: #dcfce7;

  color: #2e7d32;
}

.exercicio {
  background: #fff3cd;

  color: #f57c00;
}

.projeto {
  background: #fce4ec;

  color: #c2185b;
}

/* ===================================
 BOTÃO FLUTUANTE
=================================== */

#botaoProgresso {
  position: fixed;

  right: 25px;

  bottom: 25px;

  width: 90px;

  height: 90px;

  border-radius: 50%;

  background: #1565c0;

  color: white;

  display: flex;

  justify-content: center;

  align-items: center;

  flex-direction: column;

  font-size: 28px;

  cursor: pointer;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

  z-index: 999;
}

#mini {
  font-size: 16px;
}

/* ===================================
 MODAL
=================================== */

#modal {
  display: none;

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(0, 0, 0, 0.5);

  z-index: 1000;
}

.modal-conteudo {
  background: white;

  width: 420px;

  max-width: 90%;

  padding: 30px;

  border-radius: 15px;

  position: absolute;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);
}

footer {
  background: #263238;

  color: white;

  text-align: center;

  padding: 25px;

  margin-top: 40px;
}
