/* RESET E BASE */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  padding: 1rem;
  color: #333;
}

.container {
  max-width: 600px;
  margin: auto;
  padding-bottom: 3rem;
}


/* TÍTULO */
#titulo {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* SEÇÕES GERAIS */
section {
  margin-bottom: 1.5rem;
  background: #fff;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* TÍTULO DAS SEÇÕES */
section h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #444;
}

/* BOTÕES */
button {
  background-color: #007bff;
  color: white;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* FORM INPUTS */
form input,
form textarea,
form select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
  background: #fff;
}

/* LISTAS */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  background: #f1f1f1;
  margin-bottom: 0.6rem;
  padding: 0.8rem;
  border-radius: 0.8rem;
  font-size: 0.95rem;
}



/* CALENDÁRIO */
.calendario-calorias {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

#calendarioContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

#calendarioContainer div {
  background: #ffffff;
  padding: 12px;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

#calendarioContainer div:hover {
  transform: scale(1.05);
  background-color: #f0f0f0;
}

.meta-ok {
  background: #e8f5e9;
  color: #2e7d32;
  border: 2px solid #81c784;
}

.meta-nok {
  background: #ffebee;
  color: #c62828;
  border: 2px solid #ef9a9a;
}


/* MODAIS */
/* Envolve todo o fundo escuro */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto; /* permite que o conteúdo role se ultrapassar */
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 9999;
}

/* Caixa interna da janela do modal */
.modal-meta {
  background-color: #fff;
  margin: 5vh auto;
  padding: 2rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  position: relative;
}



.modal-resumo {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 25px 16px;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

/* Modal principal */
#modalMetaMacros.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Conteúdo do modal */
#modalMetaMacros .modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  animation: animarModal 0.3s ease-out;
}

/* Animação de entrada */
@keyframes animarModal {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Botões de abas */
#tabsMacros {
  display: flex;
  justify-content: space-around;
  margin: 1rem 0;
}

#tabsMacros button {
  flex: 1;
  margin: 0 5px;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  background-color: #eee;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

#tabsMacros button:hover {
  background-color: #d0eaff;
}

/* Inputs */
#modalMetaMacros input, #modalMetaMacros select {
  width: 100%;
  padding: 0.6rem;
  margin: 0.5rem 0 1rem 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

/* Botões de ação */
#modalMetaMacros button {
  width: 100%;
  background-color: #4caf50;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
}

#modalMetaMacros button:hover {
  background-color: #43a047;
}

/* Ícone de fechar */
#modalMetaMacros .close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

#modalMetaMacros .close:hover {
  color: #000;
}



.modal-resumo h2 {
  margin-top: 0;
  font-size: 22px;
  text-align: center;
}

.data-resumo {
  text-align: center;
  font-weight: bold;
  color: #555;
  margin-bottom: 15px;
}

.bloco-resumo {
  margin-top: 20px;
}

.bloco-resumo h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.resumo-lista p {
  background-color: #f7f7f7;
  border-left: 4px solid #4caf50;
  padding: 8px 12px;
  margin: 8px 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.resumo-lista p strong {
  color: #222;
}

.resumo-lista p em,
.resumo-lista p span {
  display: block;
  color: #555;
  font-style: normal;
  font-size: 13px;
}

@media (max-width: 400px) {
  .modal-resumo {
    padding: 20px;
    max-width: 90%;
  }
}
@media (max-width: 480px) {
  #modalResumoDia .modal-content {
    padding: 20px 16px;
    font-size: 14px;
  }
}

/* MODAL DE EXPORTAÇÃO DE RELATÓRIO */
#modalExportarRelatorio .modal-content {
  background-color: #fff;
  padding: 25px 20px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Segoe UI', sans-serif;
}

#modalExportarRelatorio h2 {
  margin-top: 0;
  font-size: 22px;
  text-align: center;
  color: #333;
}

#modalExportarRelatorio label {
  font-weight: bold;
  color: #444;
  font-size: 14px;
}

#modalExportarRelatorio input[type="date"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

#modalExportarRelatorio input[type="date"]:focus {
  border-color: #007bff;
  outline: none;
}

#gerarPdfRelatorio {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#gerarPdfRelatorio:hover {
  background-color: #0056b3;
}

#fecharExportarRelatorio {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 22px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

#fecharExportarRelatorio:hover {
  color: #333;
}

@media (max-width: 400px) {
  #modalExportarRelatorio .modal-content {
    padding: 20px 16px;
  }
}

#btnExportarRelatorio {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 10px;
  margin-top: 20px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: block;
  margin: 20px auto 0 auto;
}

#btnExportarRelatorio:hover {
  background-color: #43a047;
  transform: scale(1.03);
}



/* MODAL PARA ADICIONAR META */
.modal-meta {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  margin: 80px auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
  position: relative;
}

.modal-meta h2 {
  text-align: center;
  margin-top: 0;
  font-size: 22px;
  color: #333;
}

.form-meta {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-meta .campo label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
  display: block;
  color: #555;
}

.form-meta .campo input,
.form-meta .campo select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.btn-meta {
  margin-top: 10px;
  padding: 12px;
  border: none;
  background: linear-gradient(135deg, #4caf50, #81c784);
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.btn-meta:hover {
  background: linear-gradient(135deg, #43a047, #66bb6a);
}

@media (max-width: 400px) {
  .modal-meta {
    padding: 20px;
  }
}

/* MODAL DE NOVO PESO */
.modal-novo-peso-overlay {
  display: none; /* 🔒 escondido por padrão */
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}


.modal-novo-peso-content {
  background-color: #fff;
  padding: 24px;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;        /* 🔒 impede ultrapassagem */
  overflow-x: hidden;            /* ✅ impede rolagem lateral */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: fadeInNovoPeso 0.3s ease-in-out;
  text-align: center;
}

@keyframes fadeInNovoPeso {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-novo-peso-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-novo-peso-close:hover {
  color: #333;
}

.modal-novo-peso-titulo {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 20px;
}

.form-novo-peso {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.label-novo-peso {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  text-align: left;
}

.input-novo-peso {
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-sizing: border-box;
  background: #fff;
}

.btn-novo-peso {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-novo-peso:hover {
  background-color: #43a047;
}

/* Responsivo */
@media (max-width: 400px) {
  .modal-novo-peso-content {
    padding: 20px;
  }

  .modal-novo-peso-titulo {
    font-size: 1.2rem;
  }

  .btn-novo-peso {
    font-size: 0.95rem;
    padding: 10px;
  }
}


/* MODAL DE PESO */
.modal-peso-overlay {
  display: none; /* sempre escondido por padrão */
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
}


.modal-peso-content {
  background-color: #fff;
  padding: 24px;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: fadeInPeso 0.3s ease-in-out;
  text-align: center;
}


@keyframes fadeInPeso {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-peso-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-peso-close:hover {
  color: #333;
}

.modal-peso-titulo {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.modal-peso-grafico {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.modal-peso-texto {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #555;
}


/* CARDS COLORIDOS DAS SEÇÕES (exemplo de cores) */
section.meta { background: #e3f2fd; }
section.meta-semanal { background: #fff3e0; }
section.progresso { background: #e8f5e9; }
section.registro-refeicao { background: #fce4ec; }
section.registro-exercicio { background: #ede7f6; }

/* ADICIONAIS */
#loaderRefeicao, #loaderExercicio {
  font-size: 0.9rem;
  color: #555;
}

/* ÍCONES (se adicionar via font-awesome futuramente) */
.plus-icon {
  background: #007bff;
  color: white;
  border-radius: 50%;
  padding: 0.3rem 0.6rem;
  font-size: 1rem;
}

.progresso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.circulo-progresso-container {
  width: 80px;
  height: 80px;
  position: relative;
}

.circulo-progresso {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* roda só o traçado do círculo */
}

.circulo-progresso .fundo {
  fill: none;
  stroke: #eee;
  stroke-width: 3;
}

.circulo-progresso .barra {
  fill: none;
  stroke: #4caf50;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease;
}

.calorias-texto {
  font-size: 7px;              /* 🔼 maior visibilidade */
  font-weight: bold;           /* negrito */
  fill: #333;                  /* cor escura visível */
  text-anchor: middle;
  dominant-baseline: middle;
  transform: rotate(90deg);
  transform-origin: center;
}

.semanal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;              /* ✅ impede quebra de linha */
  gap: 1rem;                      /* espaço entre título e círculo */
}

.semanal-header h2 {
  margin: 0;
  flex-shrink: 1;                 /* permite encolher se necessário */
  white-space: nowrap;           /* ✅ evita quebra de linha no título */
}

.meta {
  background: #fff;
  padding: 20px;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.semicircle-box {
  flex: 1 1 45%;
  text-align: center;
}

.legenda {
  margin-top: 8px;
  font-weight: bold;
  color: #555;
  font-size: 14px;
}

.vertical-line {
  width: 1px;
  background-color: #ddd;
  height: 100px;
  align-self: center;
}

.descricao-meta {
  font-size: 14px;
  color: #666;
  margin: 15px 0;
  line-height: 1.4;
  text-align: center;
}

#btnCalcularMeta {
  display: block;
  margin: 0 auto;
  background-color: #1976D2;
  font-weight: bold;
  padding: 10px 20px;
  font-size: 15px;
}

.progresso-bloco {
  background: #e8f5e9	;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;
  margin-bottom: 2rem;
  text-align: center;
}

.progresso-topo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circulo-wrapper {
  position: relative;
  margin-top: 10px;
}

#saldoDia {
  margin-top: 10px;
  font-weight: bold;
  color: #555;
  font-size: 16px;
}

.progresso-botoes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.progresso-botoes button {
  padding: 10px 20px;
  border: none;
  background-color: #1976D2;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.progresso-botoes button:hover {
  background-color: #135ba1;
}

.resumo-numerico {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
  font-size: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.resumo-numerico div {
  background-color: #f9f9f9;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

#progresso-semanal .progresso-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

#progresso-semanal .circulo-wrapper {
  flex-shrink: 0;
}

#progresso-semanal .progresso-detalhes {
  padding-left: 10px;
  line-height: 1.6;
}

#progresso-semanal .progresso-detalhes p {
  margin: 4px 0;
}

.dados-semana {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding: 10px;
}

@media (max-width: 480px) {
  .dados-semana {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-dado {
  background: #f7f7f7;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.card-dado.destaque {
  background: #e3f2fd;
  border: 1px solid #90caf9;
}

.card-dado .titulo {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 6px;
}

.card-dado .valor {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.card-dado.sozinho {
  grid-column: span 2;
  margin-bottom: 10px;
  padding: 16px;
  background-color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  text-align: center;
}

.progresso-botoes {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.progresso-botoes button {
  flex: 1;
  padding: 10px 16px;
  background-color: #1976d2;
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.progresso-botoes button:hover {
  background-color: #1565c0;
}

.saldo-banner {
  width: 80%;
  padding: 16px;
  background-color: #f1f8e9;
  border-left: 6px solid #4CAF50;
  border-radius: 10px;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.saldo-banner .titulo {
  display: block;
  font-size: 1rem;
  color: #4CAF50;
  font-weight: bold;
  margin-bottom: 6px;
}

.saldo-banner .valor {
  font-size: 1.6rem;
  font-weight: bold;
  color: #333;
}

.dados-dia {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-dado {
  flex: 1;
  background-color: #f5f5f5;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  text-align: center;
}

.card-dado .titulo {
  display: block;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 4px;
}

.card-dado .valor {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.progresso-topo-linha {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.saldo-lateral {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #f1f8e9;
  border-left: 4px solid #4CAF50;
  padding: 10px 16px;
  border-radius: 8px;
  min-width: 140px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.saldo-lateral .titulo {
  font-size: 0.95rem;
  color: #4CAF50;
  font-weight: bold;
  margin-bottom: 4px;
}

.saldo-lateral .valor {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
}

@media (max-width: 380px) {
  .progresso-topo-linha {
    gap: 8px;
  }

  .circulo-wrapper svg {
    width: 80px;
    height: 80px;
  }

  .saldo-lateral {
    padding: 8px 12px;
    min-width: auto;
    flex: 1;
  }

  .saldo-lateral .titulo {
    font-size: 0.8rem;
  }

  .saldo-lateral .valor {
    font-size: 1.2rem;
  }
}

.card-peso {
  background-color: #f0f4f8;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 20px;
  margin-top: 24px;
}

.card-peso h2 {
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: #333;
  text-align: center;
}

.peso-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.peso-circulo {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #4CAF50, #81C784);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.peso-numero {
  font-size: 2rem;
  line-height: 1;
}

.peso-unidade {
  font-size: 1rem;
  margin-top: 4px;
  font-weight: normal;
  opacity: 0.9;
}

.peso-botoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.peso-botoes button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
}

.peso-botoes button:hover {
  background-color: #45a049;
}

/* Responsivo */
@media (max-width: 450px) {
  .peso-container {
    flex-direction: column;
    align-items: center;
  }

  .peso-botoes {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .peso-botoes button {
    flex: 1 1 45%;
  }
}
.peso-circulos-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 400px) {
  .peso-circulos-wrapper {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
  }
}

.imc-circulo {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #42A5F5, #90CAF9);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.imc-numero {
  font-size: 1.2rem;
  line-height: 1;
}

.imc-legenda {
  font-size: 0.75rem;
  margin-top: 2px;
  opacity: 0.85;
}

/* Responsivo */
@media (max-width: 450px) {

  .peso-botoes {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .peso-botoes button {
    flex: 1 1 45%;
  }
}

#valorIMC.azul {
  color: #2196F3;
}

#valorIMC.verde {
  color: #4CAF50;
}

#valorIMC.laranja {
  color: #FF9800;
}

#valorIMC.vermelho {
  color: #F44336;
}

#valorIMC.vermelho-escuro {
  color: #c62828;
}

#valorIMC.roxo {
  color: #6A1B9A;
}

/* 🔄 Bloco de Registro de Refeição – Compacto e Legível */

.registro-refeicao {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  max-width: 500px;
  width: 100%;
  margin: auto;
  font-family: 'Segoe UI', sans-serif;
  box-sizing: border-box;
}

/* 🔸 Cabeçalho */
.cabecalho-refeicao h2 {
  font-size: 1.25rem;
  color: #2a2a2a;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.cabecalho-refeicao p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.8rem;
}

/* 🔸 Tabs */
.tabs-modo {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tab-modo {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  padding: 0.55rem 0.4rem;
  border-radius: 10px;
  background-color: #f0f0f0;
  color: #333;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  transition: 0.3s;
  word-break: break-word;
  white-space: normal;
}

.tab-modo.active {
  background-color: #ff7f2a;
  color: #fff;
  box-shadow: 0 0 0 2px #ffd6b3;
}

.tab-modo.feedback-negado {
  animation: shake 0.4s;
  background-color: #fdd;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

/* 🔸 Formulário */
.form-refeicao {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* 🔸 Grupo de Campos */
.grupo-campo {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.label-pequeno {
  font-size: 0.82rem;
  color: #444;
  font-weight: 500;
}

/* 🔸 Campos de Entrada */
input[type="text"],
textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #2a2a2a;
  width: 100%;
  resize: vertical;
  max-width: 100%;
  box-sizing: border-box;
}

/* 🔸 Wrapper com espaçamento extra acima */
.wrapper-foto-botao {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem; /* novo espaçamento superior */
}

/* 🔸 Botão de Tirar Foto - estilizado e ampliado */
#botaoTirarFoto {
  padding: 0.7rem 1.4rem; /* botão maior */
  background-color: #ff7f2a;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#botaoTirarFoto:hover {
  background-color: #e56f21;
}

/* 🔸 Badge 🔒 */
.badge-foto-limitada {
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
  background: #d32f2f;
  padding: 4px 8px;
  border-radius: 10px;
}


/* 🔸 Prévia da foto */
.preview-foto {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.4rem;
}

/* 🔸 Lista de Favoritas */
.lista-favoritas {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 🔸 Botão Submit */
.btn-principal {
  padding: 0.65rem 1rem;
  font-size: 1rem;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-principal:hover {
  background-color: #45a045;
}

/* 🔸 Loader */
.loader-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.loader {
  width: 18px;
  height: 18px;
  border: 3px solid #ccc;
  border-top-color: #ff7f2a;
  border-radius: 50%;
  animation: girar 1s linear infinite;
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}


/* Estilo aprimorado para o bloco de exercício */
/* Bloco de exercício ajustado */
.registro-exercicio {
  background: linear-gradient(to right, #f3e5f5, #ede7f6);
  padding: 1.2rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(103, 58, 183, 0.06);
  margin: 2rem auto;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  max-width: 480px;
  width: 100%;
  box-sizing: border-box;
}

/* Título */
.registro-exercicio h2 {
  font-size: 1.4rem;
  color: #4527a0;
  margin-bottom: 1rem;
  text-align: center;
}

/* Formulário */
#formExercicio {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-sizing: border-box;
}

/* Campos de entrada */
#formExercicio input,
#formExercicio textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 0.65rem;
  background-color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border 0.2s;
}

#formExercicio input:focus,
#formExercicio textarea:focus {
  outline: none;
  border-color: #7e57c2;
  box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.15);
}

/* Botão estilizado */
#formExercicio button {
  width: 80%;
  align-self: center;
  background-color: #7e57c2;
  color: #fff;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

#formExercicio button:hover {
  background-color: #673ab7;
  transform: scale(1.02);
}

/* Loader central */
#loaderExercicio {
  display: none;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border: 3px solid #ccc;
  border-top-color: #673ab7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Placeholder */
#formExercicio input::placeholder,
#formExercicio textarea::placeholder {
  color: #777;
  font-size: 0.92rem;
}

/* Responsivo */
@media (max-width: 480px) {
  .registro-exercicio {
    padding: 1rem;
    border-radius: 0.9rem;
  }

  #formExercicio button {
    width: 100%;
  }
}


/* LISTAS */

.lista-refeicoes{
  background: #e8f5e9;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.lista-exercicios {
  background: #f0f4ff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.lista-refeicoes h2,
.lista-exercicios h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

.lista-itens {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-itens li {
  background: white;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.lista-itens li strong {
  font-size: 16px;
  color: #333;
}

.lista-itens li em,
.lista-itens li span {
  font-size: 14px;
  color: #666;
}

.lista-itens li button {
  align-self: flex-start;
  margin-top: 6px;
  background-color: #e53935;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.lista-itens li button:hover {
  background-color: #c62828;
}

#modalResumoDia {
  display: none; /* 🔒 garante que só aparece quando for chamado */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px; /* margem interna p/ scroll completo */
  box-sizing: border-box;
}


#modalResumoDia .modal-content {
  display: none; /* 🔒 só aparece quando for chamado */
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#fecharModalResumo {
  margin-top: 10px;
  background-color: #ccc;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.calendario-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-weight: bold;
  margin: 10px 0;
}

.calendario-header button {
  background-color: #e0e0e0;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.calendario-header button:hover {
  background-color: #d5d5d5;
}

#mesAtual {
  font-size: 18px;
}

/* 🔥 STREAK APP-LIKE */

.card-streak {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin: 16px auto;
  max-width: 480px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-family: 'Inter', sans-serif;
  text-align: center;
  border: 1px solid #f3f3f3;
}

.streak-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.streak-subtitulo {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dias-streak {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 16px;
  gap: 12px;
}

.foguinho-dia {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #999;
  flex: 1;
}

.foguinho-dia i {
  font-size: 32px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.ativo {
  color: #ff5722 !important; /* laranja forte */
}

.inativo {
  color: #e0e0e0 !important;
}


.card-info {
  background: #fef3e7;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 6px;
  box-shadow: inset 0 0 0 1px #fde4cd;
  text-align: center;
}

.card-info p {
  margin: 4px 0;
}

.info-streak {
  font-size: 14px;
  color: #d35400;
  font-weight: 600;
}

.streak-total {
  font-size: 13px;
  color: #444;
}

.streak-recorde {
  font-size: 13px;
  color: #777;
  font-style: italic;
}


.cabecalho-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: #f5f7fa;
  border-bottom: 1px solid #ddd;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.cabecalho-conteudo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emoji-saudacao {
  font-size: 1.8rem;
}

.cabecalho-titulo {
  font-size: 1.4rem;
  font-weight: 400;
  color: #333;
  margin: 0;
}

.cabecalho-nome {
  font-weight: 700;
  color: #007bff; /* ou outro tom de azul/verde suave */
}

@media (max-width: 600px) {
  .cabecalho-dashboard {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .cabecalho-conteudo {
    gap: 8px;
  }

  .cabecalho-titulo {
    font-size: 1.2rem;
  }
}

.semana-periodo-texto {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

p a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 500;
}

p a:hover {
  text-decoration: underline;
}

.popup-instalacao {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  padding: 16px;
  z-index: 9999;
  width: 90%;
  max-width: 350px;
}

.popup-conteudo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.botoes-popup {
  display: flex;
  gap: 10px;
}

.botoes-popup button {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#btnInstalar {
  background-color: #2e7d32;
  color: white;
}

#btnFecharPopup {
  background-color: #ccc;
  color: #333;
}

.modal-instalacao {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal-instalacao .fundo-escuro {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-instalacao .caixa-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: aparecer 0.3s ease;
}

.modal-instalacao .caixa-modal h2 {
  margin-top: 0;
  font-size: 20px;
  color: #2e7d32;
}

.modal-instalacao .botoes {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.modal-instalacao .botoes button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
}

#btnInstalar {
  background-color: #2e7d32;
  color: white;
}

#btnFecharPopup {
  background-color: #ddd;
  color: #444;
}

@keyframes aparecer {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.loader {
  margin: 1rem auto 0;
  border: 4px solid #fff;
  border-top: 4px solid #ff7f2a;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: girar 1s linear infinite;
}

@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cabecalho-conteudo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cabecalho-usuario {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.selo-premium {
  background-color: #ffe599;
  color: #a66d00;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 0 2px rgba(0,0,0,0.1);
  margin-top: 4px;
}


.link-conta {
  font-size: 0.75rem;
  color: #EC6D20;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 16px;
  background-color: #fff7f0;
  border: 1px solid #EC6D20;
  transition: all 0.2s ease;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-weight: 500;
}

.link-conta:hover {
  background-color: #EC6D20;
  color: #ffffff;
}

.card-premium-exportar {
  position: relative;
  width: 100%; /* garante que o conteúdo não encolha */
  box-sizing: border-box; /* previne colapso com padding */
}


.badge-premium {
  position: absolute;
  top: -12px;        /* move a badge para cima, fora da área do conteúdo */
  right: -12px;      /* um pouco mais para a borda */
  background-color: #ff7f2a;
  color: white;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.wrapper-foto-botao {
  position: relative;
  display: flex;
  justify-content: center; /* centraliza o botão */
  align-items: center;
  width: 100%;
}


.badge-foto-limitada {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff7f2a;
  color: white;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 10;
}

/* Contador de fotos dentro do botão */
.contador-foto {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 16px;
  margin-left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-macros {
  margin-top: 1.5rem;
}

.barra {
  height: 10px;
  background: #eee;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.barra::after {
  content: '';
  display: block;
  height: 100%;
  width: 0%;
  background: #4caf50;
  transition: width 0.5s ease;
}


.card-macros-premium {
  background-color: #f4f9ff;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.macros-conteudo-premium {
  position: relative;
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.macro-item {
  margin-bottom: 1rem;
}

.barra {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.btn-macros {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  background-color: #4caf50;
  color: white;
  border-radius: 8px;
  position: relative;
}

.badge-cadeado {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #ff7f2a;
  color: white;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 50%;
  z-index: 5;
}

.overlay-cadeado {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #999;
  z-index: 10;
}

.card-meta-premium {
  position: relative;
  padding: 1rem;
  background: #f4f9ff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.meta-conteudo-premium {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

/* 🔒 Card Premium */
.card-meta-premium {
  position: relative;
  padding: 1rem 1.25rem;
  background-color: #f4f9ff;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* 🔒 Conteúdo interno mais compacto */
.meta-conteudo-premium {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* 🧩 Textos explicativos menores */
.meta-conteudo-premium p {
  font-size: 0.88rem;
  line-height: 1.3;
  margin: 0;
}

/* 🔤 Labels e campos */
.meta-conteudo-premium label {
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
}

.meta-conteudo-premium input,
.meta-conteudo-premium select {
  margin-top: 0.25rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

/* 🎯 Botão de salvar mais compacto */
.meta-conteudo-premium button {
  align-self: center;
  background-color: #ff7f2a;
  color: white;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
}

.meta-conteudo-premium button:hover {
  background-color: #e06618;
}

/* 🟧 Container dos botões */
#tabsMeta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* 🟧 Estilo base */
#tabsMeta button {
  background-color: #f0f0f0;
  color: #333;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Hover */
#tabsMeta button:hover {
  background-color: #ff7f2a;
  color: white;
}

/* Aba ativa */
#tabsMeta button.ativo {
  background-color: #ff7f2a;
  color: white;
}


.modal-meta, .modal-content {
  max-height: 90vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.modal-meta::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-meta::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

/* Modal overlay */
.modal-previa {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  overflow-y: auto;
}

.modal-previa .modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  word-break: break-word;
  position: relative;
  margin: auto;
}

.modal-previa h2 {
  margin-top: 0;
  font-size: 1.3rem;
  text-align: center;
  color: #333;
}

.modal-previa .close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.4rem;
  cursor: pointer;
  color: #666;
}

.modal-previa #previaDescricao {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 12px;
  max-height: 250px;
  overflow-y: auto;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.95rem;
  color: #444;
  white-space: pre-wrap;
  border: 1px solid #e1e1e1;
  margin: 1rem 0;
}

/* Botões */
.modal-previa .btn-destaque,
.modal-previa .btn-secundario {
  flex: 1;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.modal-previa .btn-destaque {
  background-color: #4caf50;
  color: #fff;
}

.modal-previa .btn-destaque:hover {
  background-color: #45a049;
}

.modal-previa .btn-secundario {
  background-color: #ddd;
  color: #333;
}

.modal-previa .btn-secundario:hover {
  background-color: #ccc;
}

/* Responsivo */
@media screen and (max-width: 480px) {
  .modal-previa .modal-content {
    padding: 1rem;
    margin: auto;
  }

  .modal-previa #previaDescricao {
    font-size: 0.85rem;
  }
}
.calorias-destaque {
  font-weight: bold;
  font-size: 1.1rem;
  color: #e65100;
  display: block;
  margin: 0.8rem 0 0.5rem 0;
}

/* CARDS DE AGUA */
.card-agua {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.card-agua h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #007a8b;
  font-weight: 600;
}

.card-agua p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

#metaAguaTexto {
  font-weight: bold;
  color: #00bcd4;
}

.copos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 12px;
  margin-top: 1rem;
  justify-content: start; /* alinha última linha à esquerda */
}



.copo-fa {
  font-size: 36px;
  color: #cfd8dc;
  cursor: pointer;
  position: relative;
  display: inline-block;
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 44px;
  border-radius: 12px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.copo-fa:hover {
  transform: scale(1.1);
}

.copo-fa.preenchido {
  color: #00bcd4;
  background-color: rgba(0, 188, 212, 0.1);
  transform: scale(1.05);
}

.copo-fa.adicionar::after {
  content: '+';
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #00bcd4;
  color: white;
  font-size: 13px;
  font-weight: bold;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  z-index: 2;
  animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.agua-consumida-texto {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #007a8b;
  text-align: right;
}

@media (max-width: 480px) {
  .copo-fa {
    font-size: 32px;
    width: 38px;
    height: 38px;
  }

  .card-agua {
    padding: 1rem;
  }
}

.acoes-refeicao {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-favoritar {
  background-color: #ffd700;
  border: none;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-favoritar:hover {
  background-color: #ffcc00;
}

.lista-favoritas {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lista-favoritas li {
  background-color: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  font-size: 0.9rem;
}

.card-favorita-conteudo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-favorita {
  padding-right: 0;
}

.titulo-favorita {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}

.calorias-favorita {
  color: #ff7f2a;
  font-weight: bold;
  font-size: 0.85rem;
}

.descricao-favorita {
  color: #555;
  margin: 0.3rem 0;
  font-size: 0.85rem;
}

.botoes-favorita {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.btn-uso-favorita {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-uso-favorita:hover {
  background-color: #388e3c;
}

.btn-excluir-favorita {
  background-color: #e53935;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-excluir-favorita:hover {
  background-color: #b71c1c;
}

.btn-favoritar-disabled {
  background: #eee;
  color: #aaa;
  padding: 0.4rem 0.6rem;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: not-allowed;
}

.card-sugestao-ia {
  background: #fff9f0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  margin: 1.5rem 0;
}

.titulo-sugestao-ia {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #d75f00;
}

.label-sugestao-ia {
  font-weight: bold;
  margin-top: 0.8rem;
  display: block;
}

.input-sugestao-ia {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.btn-sugestao-ia {
  background: #ff7f2a;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-sugestao-ia:hover {
  background: #e76b15;
}

/* Modal IA */
.modal-sugestao-ia {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-sugestao-conteudo {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  position: relative;
}


.fechar-sugestao-ia {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

.titulo-modal-sugestao {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #d75f00;
}

.conteudo-sugestao-ia {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.conteudo-sugestao-ia h3,
.conteudo-sugestao-ia h4 {
  color: #d75f00;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.conteudo-sugestao-ia strong {
  color: #2a2a2a;
}

.conteudo-sugestao-ia ul,
.conteudo-sugestao-ia ol {
  padding-left: 1.5rem;
  margin-left: 0;
}

.conteudo-sugestao-ia li {
  margin-left: 0;
  padding-left: 0.2rem;
}

.card-sugestao-ia input,
.card-sugestao-ia select {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  margin-bottom: 1rem;
}



.botoes-sugestao-ia {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.botoes-sugestao-ia button {
  padding: 0.6rem 1rem;
  background-color: #ff7f2a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.botoes-sugestao-ia button:hover {
  background-color: #e76b15;
}

.loading-sugestao-ia {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  gap: 1rem;
}

.loader-sugestao-ia {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #ff7f2a;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}

.texto-loading-ia {
  font-weight: bold;
  font-size: 1.1rem;
  color: #555;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.card-sugestao-ia.card-bloqueado {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
  filter: grayscale(0.2);
}

.badge-premium {
  position: absolute;
  top: -12px;
  right: -12px;
  background-color: #ff7f2a;
  color: white;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 10;
}

.contato-section {
  margin-top: 3rem;
  background: #fff8f1;
  padding: 2rem;
  border-radius: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contato-section h2 {
  color: #d75f00;
  margin-bottom: 0.5rem;
}

.contato-section p {
  margin-bottom: 1.5rem;
  color: #444;
}

.contato-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contato-section select,
.contato-section textarea {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: vertical;
}

.contato-section button {
  background-color: #ff7f2a;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contato-section button:hover {
  background-color: #e46c17;
}

/* contato especialistas */
.card-contato-app {
  background-color: #fffdf8;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  margin-top: 2rem;
}

.titulo-contato-app {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.descricao-contato-app {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.3rem;
}

.aviso-contato-app {
  font-size: 0.85rem;
  color: #a55500;
  margin-bottom: 1.2rem;
}

.form-contato-app {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-contato-app label {
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

.form-contato-app select,
.form-contato-app input,
.form-contato-app textarea {
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  background-color: #fff;
  transition: border-color 0.2s;
}

.form-contato-app select:focus,
.form-contato-app input:focus,
.form-contato-app textarea:focus {
  border-color: #ff7f2a;
  outline: none;
}

.btn-contato-app {
  background-color: #ff7f2a;
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.85rem;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-contato-app:hover {
  background-color: #e46913;
}

.feedback-contato-app {
  display: none;
  color: green;
  font-weight: bold;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.aviso-contato-app.humano {
  font-size: 0.85rem;
  color: #007d52;
  margin-top: -0.6rem;
  margin-bottom: 1rem;
}

.feedback-contato-app {
  display: none;
  font-weight: bold;
  font-size: 0.9rem;
  margin-top: 0.8rem;
  transition: all 0.3s ease;
  text-align: center;
}

.card-contato-app {
  position: relative;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.card-contato-app.bloqueado {
  /* não aplica mais opacidade aqui */
  position: relative;
}

.overlay-premium {
  background: rgba(255,255,255,0.7);
  display: flex;
  opacity: 1;
  pointer-events: all;
  z-index: 10;
}

/* o botão dentro do overlay permanece destacado */
.overlay-premium .btn-upgrade {
  z-index: 11;
  pointer-events: all;
  opacity: 1;
}



.overlay-premium {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.85);
  z-index: 2;
  border-radius: 16px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  font-weight: bold;
  font-size: 0.95rem;
  color: #444;
  box-sizing: border-box;
}

.overlay-premium .btn-upgrade {
  /* ✅ reativa clique apenas no botão */
  pointer-events: all;
  background-color: #ff7f2a;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.4rem;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
   z-index: 3;
  position: relative;
}


.overlay-premium .btn-upgrade:hover {
  background-color: #e06600;
}



.overlay-premium {
  opacity: 1 !important;
  z-index: 10;
}

.overlay-premium .btn-upgrade {
  pointer-events: all;
  z-index: 11;
}
