/* ================= RESET GLOBAL ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ================= BODY ================= */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #fceabb, #f8b500);
  color: #222;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= HEADER ================= */
header.top {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: 45px 20px 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}


header.top h1 {
  font-size: 42px;
  font-weight: 700;
}

header.top p {
  margin-top: 8px;
  font-size: 16px;
  opacity: 0.9;
}

/* ================= CONTEÚDO ================= */
main.page-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

/* ================= CARD PADRÃO ================= */
.card {
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  margin-bottom: 24px;
}

.card h2,
.card h3 {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 700;
}

/* ================= SELECT ================= */
select {
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  cursor: pointer;
}

/* ================= LAYOUT PRINCIPAL ================= */
.layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ================= COLUNA DE CURSOS ================= */
.cursos {
  flex: 2;
  display: flex;
  gap: 24px;
}

/* ================= LISTA DE CURSOS ================= */
.curso-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.curso-lista div {
  padding: 10px 14px;
  background: #f6f6f6;
  border-radius: 8px;
  font-size: 15px;
}

/* Placeholder */
.placeholder {
  opacity: 0.6;
  font-style: italic;
}

/* ================= VALIDADE ================= */
.validade {
  width: 360px;
  flex-shrink: 0;
}

.validade table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.validade th,
.validade td {
  border-bottom: 1px solid #ddd;
  padding: 8px 6px;
  text-align: left;
}

.validade th {
  font-weight: 700;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 16px;
  font-size: 14px;
  opacity: 0.8;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .validade {
    width: 100%;
  }
}
.resultado-texto {
  margin-top: 10px;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #ccc;

  font-size: 15px;
  line-height: 1.6;

  user-select: text;      /* 🔑 permite copiar */
  cursor: text;           /* cursor de texto */
  white-space: pre-line;  /* respeita quebra de linha */
}
.download-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 30px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.download-card h3 {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
}

.download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-download {
  background: #ff8c00;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-download:hover {
  background: #e67e00;
  transform: translateY(-2px);
}

.btn-voltar {
  display: inline-block;
  margin-bottom: 12px;
  background: #ff8c00;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
