/* ========================
   STYLESHEET: style.css
   Refinação da estilização
   para um visual mais suave,
   organizado e profissional
======================== */

/* ====== Variáveis de Tema (Opcional) ====== */
:root {
  --color-primary: #4a6fa1;
  --color-secondary: #fbc531;
  --color-bg: #fdfdfd;
  --color-text: #333;
  --color-white: #fff;
  --color-panel: #fff;
  --color-border: #eee;

  --font-primary: "Poppins", sans-serif;

  --radius-base: 8px;
  --radius-sm: 6px;
  --shadow-base: 0 1px 4px rgba(0, 0, 0, 0.1);
  --transition-base: 0.3s ease;

  --fs-heading1: 1.7rem;
  --fs-heading2: 1.2rem;
  --fs-heading3: 1rem;
  --fs-body: 0.95rem;
  --fs-sm: 0.88rem;
}

/* ========================
   RESET e BASE
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

/* ========================
   HEADER
======================== */
.header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-base);
}

.header h1 {
  font-size: var(--fs-heading1);
  font-weight: 600;
  letter-spacing: 1px;
}

.header span {
  color: var(--color-secondary);
}

/* BOTÃO DE SCROLL-TOP */
.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #4a6fa18f;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: none; /* Invisível por padrão */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Aparecendo com suavidade */
.scroll-top-btn.show {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

/* Desaparecendo com suavidade */
.scroll-top-btn.hide {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 600px) {
  .scroll-top-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* ========================
   SEÇÕES GENÉRICAS
======================== */
.intro-section,
.habits-section,
.progress-section,
.links-section {
  background: var(--color-panel);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  padding: 1rem;
  margin: 0.4rem;
  margin-top: 20px;
}

.intro-section {
  text-align: center;
}

/***********************************************
 * HERO INTRO-SECTION
 ***********************************************/
.intro-section {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--color-primary) 40%,
    var(--color-secondary) 100%
  );
  min-height: 40vh;
  border-radius: var(--radius-base);
  margin: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-section::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.15),
    transparent 60%
  );
  transform: rotate(20deg);
  pointer-events: none;
  z-index: 0;
}

.intro-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  max-width: 700px;
  padding: 3rem 1rem;
  margin: 0 auto;
}

.intro-content h2 {
  font-size: calc(var(--fs-heading1) + 0.3rem);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  font-weight: 700;
}

.intro-content p {
  font-size: var(--fs-body);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.intro-content .cta-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-white);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.intro-content .cta-button:hover {
  background: var(--color-bg);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .intro-section {
    margin: 0.5rem;
    min-height: 35vh;
  }
  .intro-content {
    padding: 2rem 1rem;
  }
  .intro-content h2 {
    font-size: var(--fs-heading2);
    margin-bottom: 0.8rem;
  }
  .intro-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .intro-content .cta-button {
    font-size: 0.9rem;
  }
}

/* ========================
   APP CONTAINER
======================== */
.app {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* gap: 1rem; */
  padding: 0 1rem;
}

/* ========================
   HÁBITOS
======================== */
.habits-section {
  margin-bottom: 1rem;
}

.habits-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.habits-header h2 {
  font-size: var(--fs-heading2);
  font-weight: 500;
  color: var(--color-primary);
}

.habits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.habit-item {
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.8rem 0.8rem 2rem; /* Adiciona espaço extra à esquerda */
  animation: fadeIn 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background var(--transition-base);
  position: relative; /* Necessário para o indicador */
}

.habit-item:hover {
  background: #fefefe;
}

/* Indicador minimalista no lado esquerdo */
.habit-item::before {
  content: "︙"; /* Indicador minimalista */
  font-size: 1.2rem; /* Tamanho proporcional */
  color: grey; /* Cor neutra */
  position: absolute; /* Posicionamento */
  top: 50%; /* Centraliza verticalmente */
  left: 0.5rem; /* Distância da borda esquerda */
  transform: translateY(-50%); /* Ajusta para o centro exato */
  transition: color 0.3s ease, transform 0.3s ease; /* Transições suaves */
}

/* Animação no hover */
.habit-item:hover::before {
  color: #4a90e2; /* Azul profissional no hover */
  transform: translateY(-50%) scale(1.1); /* Leve aumento no hover */
}

.habit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.habit-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.habit-info span.emoji {
  font-size: 1.4rem;
}

.habit-name {
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--color-text);
}

.habit-actions {
  display: flex;
  gap: 0.3rem;
  margin-left: auto; /* Move o grupo de botões para o lado direito */
  padding-left: 0.4rem; /* Adiciona um pequeno espaçamento adicional*/
}

.action-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base);
}

.action-btn:hover {
  background: rgba(0, 0, 0, 0.07);
}

.styled-icon {
  font-size: 21px; /* Aumenta o tamanho do ícone */
  color: #212121; /* Cor do ícone */
  text-shadow: 1px 0px 0 #01600f, -0px -0px 0 #01600f;
  transform: scale(1.1); /* Escala o ícone para parecer mais grosso */
  border-radius: 50%; /* Deixa o ícone circular */
  display: inline-block; /* Necessário para aplicar o fundo e padding */
  transition: all 0.3s ease; /* Transição para interatividade */
}

.habit-details {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  font-size: var(--fs-sm);
  color: #555;
  margin-left: 1rem;
}

.habit-progress-bar {
  background: #e1e6ed;
  border-radius: var(--radius-sm);
  height: 6px;
  width: 80%;
  position: relative;
  overflow: hidden;
}

.habit-progress-fill {
  background: var(--color-primary);
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
}

/* ===== Hábito completo com cor diferenciada ===== */
.habit-item.completed-today {
  background: #eafde5; /* tom de verde claro */
  border-color: #bee0b9;
}
.habit-item.completed-today:hover {
  background: #e2fcd8; /* verde um pouco mais forte no hover */
}

/* ========================
   PROGRESSO (XP / MASCOTE)
======================== */
.progress-section {
  margin-bottom: 1rem;
  text-align: center;
}

.progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.xp-title {
  color: var(--color-primary);
  font-size: var(--fs-heading2);
  margin-bottom: 0.3rem;
}

/* Novo: Exibir nome do usuário acima do nível */
.user-name {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}
.user-name.hidden {
  display: none;
}

.mascot-container {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: var(--shadow-base);
}

.mascot-container img {
  width: 100%;
  height: auto;
  animation: popIn 0.4s ease;
}

@keyframes popIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes swayMascot {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
.mascot-container {
  animation: swayMascot 2.5s ease-in-out infinite;
}

@keyframes pulseMascot {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.mascot-container:active {
  animation: pulseMascot 0.3s ease;
}

.progress-section h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--fs-heading3);
  font-weight: 500;
}

.xp-bar {
  width: 80%;
  background: #e1e6ed;
  border-radius: var(--radius-sm);
  height: 10px;
  position: relative;
  overflow: hidden;
}

.xp-progress {
  background: var(--color-secondary);
  height: 100%;
  width: 0%;
  transition: width 0.6s ease;
}

.xp-values {
  color: #666;
  font-size: var(--fs-sm);
}

/* ========================
   LINKS SECTION (Rodapé)
======================== */
/* ===== Seção de Projetos no Rodapé ===== */

.links-section {
  margin: 1.2rem;
  text-align: center;
}

.links-section h2 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: var(--fs-heading2);
  font-weight: 600;
}

.links-section p {
  font-size: var(--fs-body);
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* Contêiner que agrupa os 'cards' de projetos */
.projects-wrapper {
  display: flex; /* ou grid, se preferir */
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center; /* centraliza na horizontal */
  max-width: 1000px;
  margin: 0 auto; /* se quiser limitar a largura */
}

/* ============================
   CARD DE PROJETO
============================ */
.card {
  width: 100%;
  max-width: 590px;
  height: 70px;
  background: #f7f7f7; /* Usa sua cor primária ou fallback */
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: left;
  /* se quiser fundo translúcido + blur:
     backdrop-filter: blur(10px); */
  box-shadow: var(--shadow-base);
  transition: transform 0.4s var(--transition-base),
    background 0.4s var(--transition-base);
  cursor: pointer;
  /* Deixa espaço interno para não ficar 'apertado': */
  padding-right: 10px;
}

.card:hover {
  transform: scale(1.03);
  background: #e0e0e0; /* um tom mais escuro no hover, para destaque */
}

/* Bloco da imagem/ícone */
.img {
  width: 50px;
  height: 50px;
  margin-left: 10px;
  border-radius: var(--radius-sm, 6px);
  overflow: hidden; /* impede que a img transborde */
  background: none; /* remove gradiente, se quiser */
  display: flex; /* para centralizar a imagem */
  align-items: center;
  justify-content: center;
}

.img img.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta a imagem sem distorcer */
  border-radius: var(--radius-sm, 6px);
}

.card:hover .logo-img {
  filter: brightness(0.8);
  transition: 0.3s ease-in-out;
}

/* Caixa de texto */
.card .textBox {
  width: calc(100% - 80px);
  margin-left: 10px;
  color: var(--color-white);
  font-family: var(--font-primary, "Poppins", sans-serif);
}

.card .textContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Subtítulo/etiqueta lateral, ex.: tempo ou categoria */
.card .span {
  font-size: 0.65rem; /* Ajuste conforme necessidade */
  color: #ffbb00; /* um branco translúcido */
}

/* Título principal do card */
.card .h1 {
  font-size: 0.9rem; /* Ajuste se quiser maior */
  font-weight: 600;
  margin: 0;
  color: #2e5080;
}

/* Texto menor abaixo do título */
.card .p {
  font-size: 0.8rem;
  font-weight: 400;
  margin: 2px 0 0;
  color: rgb(128 128 128 / 90%);
}

/* Efeitos de fadeIn/fadeOut se quiser animação na aparição */
@keyframes fadeInLi {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOutLi {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* ========================
   SIMPLE FOOTER (Rodapé Simples)
======================== */
.simple-footer {
  background-color: var(--color-primary); /* Barra azul */
  color: #ffffff; /* Texto branco para contraste */
  text-align: center;
  padding: 20px; /* Espaçamento vertical */
  font-size: var(--fs-body);
  position: relative;
  width: 100%;
  bottom: 0;
}

.simple-footer p {
  margin: 0;
  font-weight: bold;
}
/* ========================
   BOTÕES
======================== */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--fs-sm);
  border: none;
  outline: none;
  transition: background var(--transition-base);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #658abc;
}

.btn-secondary {
  background: #e7b220;
  color: var(--color-white);
}

.btn-secondary:hover {
  background: #ecba2e;
  color: var(--color-text);
}

/* ========================
   MODAL HABITS (ANTIGO)
======================== */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-panel);
  width: 90%;
  padding: 2rem;
  max-width: 400px;
  border-radius: var(--radius-base);
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -40%);
  }
  to {
    transform: translate(-50%, -50%);
  }
}

.modal-content input {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.8rem; /* espaço inferior para separação */
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-content input::placeholder {
  color: #aaa; /* cor do placeholder */
}

.modal-content input:focus {
  outline: none; /* remove contorno padrão */
  border-color: var(--color-primary); /* realce na cor principal */
  box-shadow: 0 0 3px rgba(74, 111, 161, 0.3);
}

/* Ajuste de label e spacing */
.modal-content label {
  font-size: var(--fs-sm);
  color: var(--color-text);
  display: block;
  margin-bottom: 0.3rem;
  margin-top: 0.8rem;
  /* cria espaço antes do label, de modo que cada label fique um pouco separado */
}

.modal-content h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: var(--fs-heading3);
}

/* ========================
   NOVO MODAL DE BOAS-VINDAS
   (Estilo independente)
======================== */
.welcome-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-panel);
  width: 90%;
  max-width: 450px;
  border-radius: var(--radius-base);
  z-index: 1100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  0% {
    transform: translate(-50%, -60%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.welcome-modal-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.welcome-modal-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  text-align: center;
}

.welcome-modal-content p {
  line-height: 1.5;
  font-size: var(--fs-body);
  margin-bottom: 0.8rem;
}

.welcome-modal-content label {
  font-size: var(--fs-sm);
  margin-bottom: 0.3rem;
  color: var(--color-text);
}

.welcome-modal-content input {
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
}

.welcome-modal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style-type: disc;
}

.welcome-modal-content ul li {
  margin-bottom: 0.4rem;
}

.close-btn {
  position: absolute;
  top: 12px; /* Ajuste conforme necessário */
  right: 14px; /* Ajuste conforme necessário */
  background: none;
  border: none;
  font-size: 1.5rem; /* Tamanho do "X" */
  color: #4a6fa1; /* Cor do "X" */
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #e84118; /* Cor ao passar o mouse */
}

/* Modal de parabéns */
.congrats-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-panel);
  width: 90%;
  max-width: 400px;
  border-radius: var(--radius-base);
  z-index: 1100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.4s ease forwards;
}

.congrats-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.congrats-modal.hidden {
  display: none;
}

/* ========================
   OVERLAY
======================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

/* ========================
   UTILITÁRIOS
======================== */
.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bounce {
  animation: bounceAnim 0.5s ease;
}

@keyframes bounceAnim {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsividade do welcome-modal */
@media (max-width: 600px) {
  .welcome-modal {
    max-width: 90%;
  }
  .welcome-modal-content {
    padding: 1rem;
  }
  .welcome-modal-content h3 {
    font-size: 1.1rem;
  }
  .welcome-modal-content p,
  .welcome-modal-content li {
    font-size: 0.9rem;
  }
}

/* =================================
   MENSAGEM PARA TELAS > 720px
================================= */

/* Por padrão, ocultamos a mensagem e mostramos a aplicação */
.desktop-message {
  display: none;
}
.app-wrapper {
  display: block; /* A aplicação é normal */
}

/* Card interno da mensagem desktop */
.desktop-message-content {
  background: linear-gradient(135deg, #fdfdfd, #eaeaea);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  max-width: 500px;
  margin: 10vh auto; /* centraliza verticalmente (relativo à viewport) */
  text-align: center;
  padding: 2rem;
}

.desktop-message-content h1 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.desktop-message-content h1 span {
  color: var(--color-secondary);
}

.desktop-message-content p {
  font-size: var(--fs-body);
  color: var(--color-text);
  line-height: 1.4;
  max-width: 400px;
  margin: 0 auto;
}

/* Efeito Drag and Drop (Arrastar e soltar) */
.habit-item.dragging {
  opacity: 0.5; /* deixa translúcido */
  border: 2px dashed var(--color-primary);
  cursor: grabbing; /* indica que está em movimento */
  box-shadow: none; /* remove sombra, se quiser */
}

.habit-item:not(.dragging) {
  transition: transform 0.2s ease;
  /* E se quiser deixá-los “empurrados” um pouco quando o mouse passar */
}

.habit-item[draggable="true"] {
  cursor: move; /* Ou 'grab' se preferir */
}

.placeholder {
  background: #fff9d6;
  border: 2px dashed #ffd700;
  margin: 0.4rem;
}

/* Estilo básico para o botão de reset */
#resetButton {
  padding: 6px 12px;
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-top: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#resetButton:hover {
  background-color: var(--color-bg);
  color: var(--color-secondary);
}

/* Modal de Notificação de Nível com Troféu */
.trophy-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fbc531fb;
  /* border: 1px solid var(--color-border); */
  padding: 0.8rem 1.5rem;
  border-radius: calc(var(--radius-base) + 6px);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  font-family: var(--font-primary);
  color: #fefefe;
  font-weight: bold;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@keyframes slideUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateY(-80px);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px);
    opacity: 0;
  }
}

.trophy-notification {
  /* ... suas demais propriedades ... */
  animation: slideUp 2.5s forwards; /* duração 1.5s em vez de 1s */
}

/* Modo de todos os hábitos completos */
.all-completed {
  background: #fbe93136 !important;
  border-color: #f4e45b !important;
}

@keyframes fadeInLi {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOutLi {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* SESSÃO: Como Funciona o Sistema de Pontos e Níveis?*/
.rewards-system-section {
  /* background: var(--color-panel, #ffffff);
  border-radius: var(--radius-base, 8px);
  box-shadow: var(--shadow-base, 0 1px 4px rgba(0,0,0,0.1)); */
  padding: 1.5rem;
  margin: 1.2rem auto;
  max-width: 800px; /* limite de largura para melhor leitura */
}

.rewards-system-section h2 {
  font-size: calc(var(--fs-heading2, 1.2rem) + 0.2rem);
  color: var(--color-primary, #4a6fa1);
  margin-bottom: 1rem;
  text-align: center;
}

.rewards-system-section p {
  line-height: 1.6;
  font-size: var(--fs-body, 0.95rem);
  color: var(--color-text, #333);
  margin-bottom: 1.2rem;
}

/* Bloco que realça recompensas */
.rewards-highlight {
  background: #f9fafc;
  border: 1px solid #ececec;
  border-radius: var(--radius-sm, 6px);
  padding: 1rem;
  margin-bottom: 1rem;
}

.rewards-highlight h3 {
  font-size: var(--fs-heading3, 1rem);
  color: var(--color-primary, #4a6fa1);
  margin-bottom: 0.8rem;
  text-align: center;
}

.rewards-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rewards-list li {
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: var(--radius-sm, 6px);
  padding: 0.6rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-body, 0.95rem);
  color: var(--color-text, #333);
  transition: background 0.3s;
}

/* Efeito hover sutil */
.rewards-list li:hover {
  background: #f1f1f1;
}

/* Destaca a tag de XP */
.badge {
  display: inline-block;
  background: var(--color-primary, #4a6fa1);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Variante para a badge de +50 XP */
.badge.plus {
  background: var(--color-secondary, #fbc531);
  color: #333;
}

.rewards-system-section em {
  color: var(--color-secondary, #fbc531);
  font-style: normal; /* se quiser apenas realçar sem itálico */
  font-weight: 600;
}

/* SESSÃO: Por que Hábitos Saudáveis Importam? */
.healthy-habits-section {
  /* background: var(--color-panel, #fff);
  border-radius: var(--radius-base, 8px);
  box-shadow: var(--shadow-base, 0 1px 4px rgba(0,0,0,0.1)); */
  padding: 1.5rem;
  margin: 1.2rem auto;
  max-width: 800px; /* limite de largura para não ficar muito extenso */
}

.healthy-habits-section h2 {
  font-size: calc(var(--fs-heading2, 1.2rem) + 0.2rem);
  color: var(--color-primary, #4a6fa1);
  margin-bottom: 0.8rem;
  text-align: center; /* se quiser centralizado */
}

.healthy-habits-section p {
  line-height: 1.5;
  font-size: var(--fs-body, 0.95rem);
  color: var(--color-text, #333);
  margin-bottom: 1rem;
}

.data-highlight {
  background: #f9f8d6; /* fundo amarelo bem claro */
  border: 1px solid #f2eeb2;
  border-radius: var(--radius-sm, 6px);
  padding: 0.8rem;
  margin: 1rem 0;
}

.data-highlight p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.healthy-habits-section h3 {
  font-size: var(--fs-heading3, 1rem);
  color: var(--color-primary, #4a6fa1);
  margin-bottom: 0.5rem;
}

.healthy-suggestions-list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.healthy-suggestions-list li {
  margin-bottom: 0.3rem;
  font-size: var(--fs-body, 0.95rem);
}

.refs {
  font-size: 0.85rem;
  color: #888; /* cor mais neutra */
  margin-top: 1rem;
  text-align: right; /* ou left, se preferir */
}

.refs a {
  color: var(--color-secondary, #fbc531);
  text-decoration: none;
}

.refs a:hover {
  text-decoration: underline;
}

/* LINHAS DIVISORIAIS */
hr {
  border: none; /* Remove a borda padrão */
  height: 1px; /* Define a espessura */
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--color-primary, #4a6fa1) 50%,
    transparent 100%
  );
  margin: 1.5rem 0; /* Espaçamento vertical */
  width: 100%; /* Ajusta à largura do container */
}

.hr-central {
  border: none; /* Remove a borda padrão */
  height: 1px; /* Define a espessura */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0) 100%
  ); /* Gradiente suave */
  margin: 1.5rem 0; /* Espaçamento vertical */
  width: 100%; /* Ajusta à largura do container */
}

/* ========== MEDIA QUERIES ========== */
/* Se a largura for acima de 720px, exibimos a mensagem e ocultamos a aplicação */
@media (min-width: 1025px) {
  body {
    background: #555;
  }

  .desktop-message {
    display: block; /* mostra o bloco */
    background: var(--color-bg); /* fundo "site" */
    min-height: 100vh; /* ocupa tela inteira */
    padding: 1rem;
  }

  .app-wrapper {
    display: none !important; /* esconde toda a aplicação */
  }
}

/* Para telas até 720px, exibimos a aplicação normalmente */
@media (max-width: 1024px) {
  .desktop-message {
    display: none;
  }
  .app-wrapper {
    display: block;
  }
}
