/* --- Estilos Globais --- */
html {
  font-size: clamp(16px, 2.2vw, 20px);
}
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f8f7f4;
  color: #3a3a3a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  touch-action: manipulation;
  line-height: 1.6;
}
.logo {
  height: auto;
  max-height: 110px;
  max-width: 280px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
}
.logo.loaded { 
  opacity: 1; 
}
.hidden { display: none !important; }

/* --- Tela de Login --- */
.login-container { padding: 2rem; max-width: 400px; }
.pin-display { display: flex; justify-content: center; gap: 15px; margin: 20px 0; }
.pin-dot { width: 20px; height: 20px; background-color: #ddd; border-radius: 50%; transition: background-color 0.2s; }
.pin-dot.filled { background-color: #6e786f; }
.error-message { color: #d9534f; font-weight: 600; }
/* Estilos do Teclado de PIN Corrigido */
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 300px;
  margin: 2rem auto 0;
}
.key {
  font-size: 1.8rem;
  padding: 20px;
  border: 2px solid #eee;
  border-radius: 50%;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.2s;
  aspect-ratio: 1 / 1; /* Mantém os botões perfeitamente redondos */
}
.key:active {
  background-color: #e0e0e0;
}
/* Posicionando o botão 0 na coluna do meio (embaixo do 8) */
.key-zero {
  grid-column: 2;
}
/* Posicionando o botão apagar na última coluna (embaixo do 9) */
.key-delete {
  grid-column: 3;
  font-size: 2rem;
}

/* --- Tela de Seleção --- */
.selection-container { padding: 2rem; }
.selection-buttons { display: flex; gap: 2rem; margin-top: 2rem; }
.selection-button { background-color: white; border: 2px solid #6e786f; border-radius: 15px; padding: 2rem; font-size: 1.5rem; cursor: pointer; width: 300px; transition: all 0.3s; }
.selection-button span { font-size: 1rem; font-weight: 400; color: #555; display: block; margin-top: 0.5rem; }
.selection-button:hover { background-color: #e6f2f2; transform: translateY(-5px); }
.logout-button { margin-top: 3rem; background: none; border: none; color: #888; text-decoration: underline; cursor: pointer; }

/* --- Tela do Mapa Facial (já criada) --- */
.app-container { width: 100%; max-width: 900px; background-color: transparent; border-radius: 20px; box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1); padding: 1rem; box-sizing: border-box; }
/* ESSE -mapa FAZ COM QUE A TELA DO ROSTO FIQUE MENOR, SEM SEGUIR O TAMANHO DO ROSTO*/
.app-container-mapa { width: 100%; max-width: 900px; background-color: transparent; border-radius: 20px; box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1); padding: 1rem; box-sizing: border-box; }

.app-header { text-align: center; margin-top: 1rem; }
.title { font-size: 1.5rem; font-weight: 400; color: #555; }
.face-map-container { 
    position: relative; 
    width: fit-content; 
    margin: auto;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.face-image { 
    display: block; 
    max-width: 100%; 
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 500px; /* ajuste se quiser maior/menor */
}

.face-image.loaded {
    opacity: 1;
}

/* Loading Overlay para Imagens - Skeleton Loader */
.image-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 15px;
    color: #21424f;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    gap: 16px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    overflow: hidden;
}

.image-loading-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

.image-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(33, 66, 79, 0.15);
    border-top-color: #21424f;
    animation: loading-spin 0.8s linear infinite;
}

.loading-text {
    font-size: 0.95rem;
    color: #4c5c5f;
    position: relative;
    z-index: 1;
}

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

/* Área de clique aumentada sem alterar o design visual */
.interactive-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: transparent; /* Área de clique transparente */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
    /* Área de clique aumentada sem alterar visual */
    min-width: 35px;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Visual pequeno no pseudo-elemento */
.interactive-dot::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #6c886f8f;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
    animation: pulse 2s infinite ease-in-out;
}

/* --- Posições dos Pontos - Versão Dinâmica por Gênero --- */

/* Posições para o Rosto Feminino (Valores que já tínhamos) */
.gender-female .dot-testa     { top: 21.8%; left: 50%; }
.gender-female .dot-glabela   { top: 32.7%; left: 50%; }
.gender-female .dot-olhos     { top: 36%; left: 34.2%; }
.gender-female .dot-nariz     { top: 45%; left: 50%; }
.gender-female .dot-bochechas { top: 51%; left: 65%; }
.gender-female .dot-labios    { top: 59%; left: 50%; }
.gender-female .dot-bigode-chines { top: 53%; left: 43%; }
.gender-female .dot-queixo    { top: 66%; left: 50%; }
.gender-female .dot-pescoco   { top: 80%; left: 50%; }
.gender-female .dot-papada   { top: 68.9%; left: 32.5%; }
.gender-female .dot-cabelo   { top: 8%; left: 50%; }
.gender-female .dot-orelhas  { top: 42.3%; left: 74.2%; }



/* Posições para o Rosto Masculino (VOCÊ PRECISA AJUSTAR ESTES VALORES!) */
/* Eu coloquei valores de exemplo, mas você precisará ajustá-los. */
.gender-male .dot-testa     { top: 25%; left: 50%; }
.gender-male .dot-glabela   { top: 35%; left: 50%; }
.gender-male .dot-olhos     { top: 39.8%; left: 35.2%; }
.gender-male .dot-nariz     { top: 49%; left: 50%; }
.gender-male .dot-bochechas { top: 51%; left: 64%; }
.gender-male .dot-labios    { top: 61%; left: 50%; }
.gender-male .dot-bigode-chines { top: 56%; left: 43%; }
.gender-male .dot-queixo    { top: 69%; left: 41%; }
.gender-male .dot-pescoco   { top: 83%; left: 51.3%; }
.gender-male .dot-papada     { top: 69.6%; left: 32.9%; }
.gender-male .dot-cabelo     { top: 6%; left: 50%; }
.gender-male .dot-orelhas    { top: 39%; left: 73%; }

/* --- Posições dos Pontos - Corpo (Adicione e ajuste) --- */

/* Posições para o Corpo Feminino */
.gender-female .dot-colo {top: 6.3%; left: 50.9%;}
.gender-female .dot-abdomen {top: 26.4%; left: 50.8%;}
.gender-female .dot-bracos {top: 18%; left: 62.3%;}
.gender-female .dot-maos {top: 43.4%;left: 65%;}
.gender-female .dot-pernas {top: 65.3%; left: 54.7%;}
.gender-female .dot-axila {top: 8.9%; left: 29.6%;}
.gender-female .dot-gordura-sutia {top: 9.8%; left: 59.3%;}
.gender-female .dot-coxa-anterior {top: 55%; left: 54.7%;}

.gender-female .dot-costas {top: 8.9%; left: 50%;}
.gender-female .dot-gluteos {top: 40.3%; left: 43.4%;}
.gender-female .dot-banana {top: 45.7%; left: 54%;}
.gender-female .dot-flancos {top: 28%; left: 57%;}
.gender-female .dot-culote {top: 39%; left: 61.4%;}

/* Posições para o Corpo Masculino (AJUSTE ESTES VALORES!) */
.gender-male .dot-colo { top: 7%; left: 50.7%; }
.gender-male .dot-abdomen {top: 26.3%; left: 50.7%;}
.gender-male .dot-bracos {top: 24.4%; left: 68%;}
.gender-male .dot-maos {top: 43.4%; left: 67%;}
.gender-male .dot-pernas {top: 59.1%; left: 58.3%;}
.gender-male .dot-axila {top: 12%; left: 39%;}
.gender-male .dot-coxa-anterior {top: 50%; left: 42.3%;}
/* Gordura sutiã não existe para homens - esconder o ponto */
.gender-male .dot-gordura-sutia { display: none; }

.gender-male .dot-costas {top: 7.6%; left: 50.6%;}
.gender-male .dot-gluteos {top: 38.1%; left: 44.8%;}
.gender-male .dot-banana {top: 45%;left: 55%;}
.gender-male .dot-flancos {top: 28%; left: 59%;}
.gender-male .dot-culote { top: 38%; left: 62%;}

/* Regra geral para centralizar todos os pontos horizontalmente */
.interactive-dot {
    transform: translateX(-50%);
}

.interactive-dot:hover::before {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 15px #6e786fa8;
    animation-play-state: paused;
}
@keyframes pulse { 0%   { box-shadow: 0 0 0 0 rgba(89, 121, 93, 0.6); } 70%  { box-shadow: 0 0 0 12px rgba(0, 128, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 128, 128, 0); } }
.bottom-nav { display: flex; justify-content: center; gap: 2rem; margin-top: 0.5rem; padding-top: 0.5rem; padding-bottom: 0.25rem; border-top: 1px solid #eee; }
#nav-rosto { display: flex; justify-content: center; gap: 2rem; margin-top: 0rem; padding-top: 0.5rem; border-top: 1px solid #eee; }

/* ===================================================================
   Onboarding popup — cartão premium, sem efeitos que borrem o app
   =================================================================== */
.onboard {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 20, 26, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.onboard.visible {
  opacity: 1;
  pointer-events: auto;
}

.onboard__card {
  width: 100%;
  max-width: 340px;
  padding: 30px 28px 26px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.16);
  text-align: center;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.onboard.visible .onboard__card {
  transform: translateY(0) scale(1);
}

.onboard__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2ede4;
  color: #404c4c;
  box-shadow: inset 0 0 0 1px rgba(64, 76, 76, 0.08);
}
.onboard__icon svg { width: 26px; height: 26px; }

.onboard__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #404c4c;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
}

.onboard__body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #6b7378;
  margin: 0 0 22px;
}
.onboard__body strong {
  color: #404c4c;
  font-weight: 600;
}

.onboard__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: #404c4c;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 6px 16px rgba(64, 76, 76, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.onboard__btn:hover {
  background: #2f3838;
  box-shadow:
    0 10px 24px rgba(64, 76, 76, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.onboard__btn:active { transform: scale(0.98); }

.onboard__title {
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 600;
  color: #2a3538;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.onboard__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4a5457;
  margin: 0 0 22px;
}
.onboard__body strong { color: #21424f; font-weight: 600; }

.onboard__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: #21424f;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(33, 66, 79, 0.25);
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.onboard__btn:hover {
  background: #17384a;
  box-shadow: 0 8px 24px rgba(33, 66, 79, 0.35);
}
.onboard__btn:active { transform: scale(0.97); }

.onboard__dismiss {
  display: block;
  margin: 12px auto 0;
  padding: 4px 8px;
  background: none;
  border: 0;
  color: #6b7378;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.onboard__dismiss:hover { color: #21424f; }

@media (prefers-reduced-motion: reduce) {
  .onboard, .onboard__card { transition: none; }
}

/* Thumbnail de vídeo — clica pra carregar o iframe (evita autoplay pesado). */
.video-thumb {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eee;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.video-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
  color: #fff;
  transition: background-color 0.25s ease;
}
.video-thumb__play::after {
  content: '';
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M8 5v14l11-7z'/></svg>") center/28px no-repeat,
    rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.video-thumb:hover .video-thumb__play::after { transform: scale(1.08); }
.video-thumb:focus-visible {
  outline: 2px solid #6e786f;
  outline-offset: 3px;
}

/* Player custom com controles próprios abaixo do vídeo */
.video-player-block { position: relative; }
.video-stage { position: relative; }
.video-stage #featured-video,
.video-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* overlay transparente sobre o iframe pra capturar cliques
   (iframes cross-origin engolem clicks direto). */
.video-click-catcher {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.video-click-catcher.hidden { display: none; }

/* Botão de fechar o iframe do vídeo */
.video-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.video-close-btn:hover { background: rgba(0, 0, 0, 0.75); transform: scale(1.05); }
.video-close-btn:active { transform: scale(0.95); }

/* Barra de controles custom — aparece ao clicar no vídeo, some após inatividade */
.video-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 10px 12px;
  margin-top: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.video-controls.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.video-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.video-ctrl-btn:hover { background: #6e786f; color: #fff; }
.video-ctrl-btn:active { transform: scale(0.97); }
.video-ctrl-btn svg { flex-shrink: 0; }

/* Alterna ícone play/pause baseado no estado */
.video-ctrl-btn .icon-pause { display: none; }
.video-ctrl-btn.playing .icon-play { display: none; }
.video-ctrl-btn.playing .icon-pause { display: inline-block; }

/* Alterna ícone tela cheia / sair */
.video-ctrl-btn .icon-fs-exit { display: none; }
.video-ctrl-btn.is-fullscreen .icon-fs-enter { display: none; }
.video-ctrl-btn.is-fullscreen .icon-fs-exit { display: inline-block; }

/* Layout em fullscreen: bloco toma a tela inteira, controles ficam sobrepostos */
.video-player-block:fullscreen,
.video-player-block:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.video-player-block:fullscreen .video-stage,
.video-player-block:-webkit-full-screen .video-stage {
  flex: 1;
  aspect-ratio: auto;
  height: auto;
}
.video-player-block:fullscreen .video-controls,
.video-player-block:-webkit-full-screen .video-controls {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 8px);
  margin: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.video-player-block:fullscreen .video-controls.visible,
.video-player-block:-webkit-full-screen .video-controls.visible {
  transform: translate(-50%, 0);
}
.video-player-block:fullscreen .video-ctrl-btn,
.video-player-block:-webkit-full-screen .video-ctrl-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.video-player-block:fullscreen .video-ctrl-btn:hover,
.video-player-block:-webkit-full-screen .video-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.video-player-block:fullscreen .video-close-btn,
.video-player-block:-webkit-full-screen .video-close-btn {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
}

/* Ícone da marca Be — substitui o antigo ícone de hospital na nav.
   Usa CSS mask pra herdar currentColor da nav (hover/active funcionam). */
.icon-bb {
  display: inline-block;
  width: 34px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask: url('../images/be.svg') center/contain no-repeat;
  mask: url('../images/be.svg') center/contain no-repeat;
  vertical-align: middle;
}

/* Estilos NAV */
.nav-item { text-decoration: none; color: #888; font-size: 0.9rem; font-weight: 600; padding: 6px 14px; border-radius: 30px; transition: background-color 0.3s, color 0.3s; }
.nav-item:hover { color: #3d3d3d; }
.nav-item.active { 
  color: rgb(0, 0, 0); 
  background-color: rgba(243, 243, 243, 0.5); 
  border: 1px solid rgba(207, 207, 207, 0.4);
  border-radius: 12px;
  transition: all 0.3s ease;
}
/* --- Estilos do Modal Customizado --- */
.modal-overlay {
  position: fixed; /* Fica fixo na tela */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Fundo escuro semi-transparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Garante que fique na frente de tudo */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
}

.modal-content {
  background-color: white;
  padding: 2rem 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 500px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal-content h2 {
  margin-top: 0;
  color: #333;
}

.modal-content p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.modal-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.modal-button {
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-button.primary {
  background-color: #9c7802;
  color: white;
}
.modal-button.primary:hover {
    background-color: #4C5656;
}

.modal-button.secondary {
  background-color: #eee;
  color: #555;
}
.modal-button.secondary:hover {
    background-color: #ddd;
}

/* Estilos para o novo Modal Inteligente */
.modal-question {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}
.modal-buttons-choice {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}
.modal-footer {
    margin-top: 2rem;
}
.modal-button-close {
    background: none;
    border: none;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

/* --- Estilos da Página de Tratamento --- */
.treatment-page {
  width: 100%;
  max-width: 900px;
  padding: 2rem;
  text-align: center;
}

.common-complaints {
   text-align: left;
}

.treatment-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
}

.treatment-info h3{
  margin: 0;
  font-size: 1.8rem;
  color: #4C5656;
}

.treatment-info h4{
margin: 0;
color: #4C5656;
}

.treatment-benefits {
margin: 0;
color: #4C5656;
}

.treatment-buttons{
margin: 0;
color: #4C5656;
}

/* BOTÃO VOLTAR PROCEDIMENTOS > MAPAS */
.back-button{
  text-decoration: none;
  color: #000000;
  font-weight: 600;
  padding: 6px 15px 6px 15px;
  border-radius: 8px;
  background-color: #e9e8e8;
  stroke: #FFFFFF;
}

.back-button-fixed{
  text-decoration: none;
  color: #000000;
  font-weight: 600;
  padding: 8px;
  border-radius: 8px;
  background-color: #e9e8e8;
  stroke: #FFFFFF;
}

.treatment-header h1 {
  margin-top: 0rem;
  font-size: 2.5rem;
  color: #333;
}

.treatment-card {
  display: flex;
  gap: 2rem;
  background-color: #fff;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.treatment-image {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.treatment-info {
    text-align: left; /* Força o alinhamento de todo o texto à esquerda */
}

.treatment-info h3 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #4C5656;
}

.treatment-info p {
  line-height: 1.6;
}

.treatment-benefits {
  list-style: none;
  padding: 0;
}

/* para trocar a de um svg, é só alterar o codigo que vem após o %23 - %23 é # e 5c4600 é o valor hexadecimal da cor*/
.treatment-benefits li {
  padding-left: 1.5em;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23C1948F" class="bi bi-check-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/></svg>');
  background-repeat: no-repeat;
  background-position: left center;
  margin-bottom: 0.5rem;
}


/* --- Estilos da Página A Clínica --- */
.about-page {
  width: 100%;
  max-width: 900px;
  padding: 2rem;
  text-align: left;
}
.about-header {
  text-align: center;
  margin-bottom: 0rem;
}
.about-header h1 {
  font-size: 2.5rem;
}
.about-subtitle {
  color: #6b6b6b;
  font-size: 1rem;
  margin-top: 0.5rem;
}
.profile-section {
  margin-bottom: 2rem;
}

.profile-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #c1958f17 0%, #c1958f0e 60%, #ffffff 100%);
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.07);
  padding: 1.5rem;
}

.profile-photo { 
  text-align: center; 
  display: flex;
  justify-content: center;
}
.profile-image {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1), 0 0 0 4px rgba(220,183,71,0.08);
  border: 2px solid #C39893;
  margin: 0 auto;
}
.profile-text h2 { font-size: 2rem; margin-top: 0; text-align: center; }
.profile-info h2 { font-size: 1.8rem; margin: 0 0 .5rem 0; text-align: center; }
.profile-text .credentials { text-align: center; font-style: italic; color: #777; margin-top: -10px; margin-bottom: 10px;}
.profile-text p { text-align: center; line-height: 1.6; }
.profile-text p.credentials { text-align: center; line-height: 1.2; }

/* Lista estilizada do perfil */
.profile-list {
  margin: 0.5rem 0 0 0;
  padding-left: 1.2rem;
  text-align: left;
  color: #4a4a4a;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.profile-list li {
  margin: 0.25rem 0;
}

.badge-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .25rem;
  justify-content: center;
}
.badge {
  background: #c3989315;
  color: #424242;
  border: 1px solid #C39893;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}

.clinic-section {
  background-color: #fff;
  padding: 2rem;
  border-radius: 15px;
}

.clinic-about {
  padding: 1.5rem;
  border-radius: 0px;
}
.clinic-section h2 { text-align: center; }

/* Diferenciais (cards) */
.highlights-section {
  margin-top: 2rem;
}
.highlights-section h2 {
  text-align: center;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.highlight-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  text-align: left;
}
.highlight-icon {
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.highlight-card h3 {
  margin: 0.25rem 0 0.5rem 0;
  color: #6e786f;
}
.highlight-card p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* --- Estilos da Nova Barra de Navegação --- */
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  padding: 4px 12px;
}

/* Responsividade para telas menores que 480px */
@media (max-width: 480px) {
  .bottom-nav .nav-item {
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .bottom-nav svg {
    width: 20px;
    height: 20px;
  }
}

/* Responsividade para telas menores que 360px */
@media (max-width: 360px) {
  .bottom-nav .nav-item {
    font-size: 0.65rem;
    gap: 0.2rem;
  }

  .bottom-nav svg {
    width: 18px;
    height: 18px;
  }
}

/* --- Estilos da Página de Chat (Versão Corrigida) --- */
.body-chat {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  background-color: #f8f7f4;
  padding: 1rem; /* ADICIONADO: Cria uma borda interna de respiro */
  box-sizing: border-box; /* ADICIONADO: Garante que o padding não cause barras de rolagem */
}
.chat-wrapper {
  flex-grow: 1; /* Faz este container crescer e ocupar todo o espaço disponível */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Impede que o wrapper todo role */
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.chat-header {
  flex-shrink: 0; /* Impede que o header encolha */
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
}
.chat-header .logo { height: 40px; margin-bottom: 0; }
.chat-header .header-text { text-align: left; }
.chat-header h1 { font-size: 1.5rem; margin: 0; }
.chat-header p { font-size: 0.9rem; margin: 0; color: #777; }

.chat-messages-container {
  flex-grow: 1; /* Faz a área de mensagens crescer e preencher o espaço */
  padding: 1.5rem;
  overflow-y: auto; /* A rolagem acontece APENAS AQUI */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 20px;
  line-height: 1.5;
}
.message p { margin: 0; }

.ai-message {
  background-color: #f1f0f0;
  color: #333;
  border-top-left-radius: 5px;
  align-self: flex-start;
  text-align: left; /* Alinha o TEXTO DENTRO do balão à esquerda */

}

.user-message {
  background-color: #6e786f;
  color: white;
  border-top-right-radius: 5px;
  align-self: flex-end;
  text-align: right; /* Alinha o TEXTO DENTRO do balão à direita */
}

.typing-indicator {
  display: flex;
  gap: 5px;
  align-items: center;
}
.typing-indicator span {
  width: 8px; height: 8px; background-color: #b4b4b4; border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }

@keyframes bounce {
0%, 80%, 100% { transform: scale(0); }
40% { transform: scale(1.0); }
}

.chat-input-area {
  flex-shrink: 0; /* Impede que a área de input encolha */
  border-top: 1px solid #eee;
  padding: 1rem;
  background-color: #f8f7f4;
}

.chat-form { display: flex; gap: 10px; }
#message-input {
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 12px 18px;
  font-size: 1rem;
}
#message-input:focus { outline: none; border-color: #6e786f; }
.chat-form button {
  border: none; background-color: #6e786f; color: white; border-radius: 50%;
  width: 50px; height: 50px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s;
}
.chat-form button:hover { background-color: #ac8b2a; }

/* --- MEDIA QUERIES PARA RESPONSIVIDADE --- */
/* Estas regras serão aplicadas em telas com largura máxima de 820px (como um iPad na vertical) */

@media (max-width: 1000px) {

  /* Ajusta o contêiner principal para telas menores */
  .app-container, .about-page, .treatment-page, .anamnese-container {
      padding: 1.5rem;
  }

  .app-container-mapa{
      padding: 1.5rem;
  }

  /* Página "A Clínica": card empilha conteúdo */
  .profile-card { grid-template-columns: 1fr; text-align: center; }
  .profile-info h2 { text-align: center; }
  .profile-text p, .profile-list { text-align: left; }
  .profile-image { width: 200px; height: 200px; margin: 0 auto; }

  /* Página de Tratamento: empilha a imagem sobre o texto */
  .treatment-card {
      flex-direction: column;
      text-align: left;
  }

  .treatment-image {
      width: 100%; /* Faz a imagem ocupar a largura total do card */
      height: 250px;
  }

  /* Página de Seleção: empilha os botões */
  .selection-buttons {
      flex-direction: column;
      align-items: center;
  }

  .selection-button {
      width: 90%; /* Ajusta a largura para telas menores */
  }

  /* Ajusta fontes para melhor leitura */
  .title, .treatment-header h1, .about-header h1 {
      font-size: 1.7rem;
  }

  .profile-text h2, .treatment-info h3 {
      font-size: 1.5rem;
  }
}

/* --- Ajustes Finais na Navegação --- */
#end-session-button svg {
  color: #a05252; /* Um tom avermelhado sutil para indicar uma ação de saída */
}
#end-session-button:hover {
  background-color: #f5eaea; /* Fundo avermelhado claro no hover */
}

/* Estilo para o botão "Tenho Interesse" / "amei ❤️" após o clique */
.interest-button.clicked {
  background-color: #e0e0e0; /* Verde de sucesso */
  cursor: default;
}

/* Estilo para o botão "Tenho Interesse" / "amei ❤️"  durante o envio */
.interest-button.sending {
    background-color: #9e9c9c; /* Amarelo/Laranja de atenção */
    cursor: wait;
}

.featured-content h2, .video-menu h3, .interest-section h3 {
  margin-top: 0; margin-bottom: 1rem;
  border-bottom: 1px solid #eee; padding-bottom: 1rem;
  text-align: center;
}

/* Estilos do Vídeo (sem alterações) */
.video-wrapper {
  position: relative; padding-bottom: 56.25%;
  height: 0; overflow: hidden; border-radius: 10px; background-color: #000;
}
.video-wrapper iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* Menu de Vídeos (sem alterações) */
.video-menu ul { list-style: none; padding: 0; margin: 0; }
.video-menu li a {
  display: block; text-decoration: none; color: #333;
  padding: 12px 15px; border-radius: 8px; margin-bottom: 8px;
  transition: background-color 0.2s; font-weight: 600;
}
.video-menu li a:hover { background-color: #f0f2f5; }
.video-menu li a.active { background-color: #e6f2f2; color: #444444; }

/* Seção de Interesses (sem alterações) */
.interest-section ul { list-style: none; padding: 0; }
.interest-section li { padding: 8px 0; border-bottom: 1px solid #f5f5f5; }


/* =================================================================== */
/* --- CORREÇÃO DEFINITIVA E ISOLADA PARA O DASHBOARD --- */
/* Estas regras SÓ se aplicam à página do dashboard */
/* =================================================================== */

/* --- Estilos Finais para o Dashboard (Layout de Grid) --- */

.body-dashboard {
  background-color: #f8f7f4;
  
}

/* Alocação dos itens nas áreas do grid */
.dashboard-header { grid-area: header; text-align: center; }
.featured-content { grid-area: main; }
/* --- Estilos para o menu lateral de vídeos com rolagem interna --- */
.video-menu {
    grid-area: sidebar;
    background-color: #fff;
    padding: 1.5rem; /* Padding geral do card */
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    
    /* Lógica de Flexbox para controlar a rolagem */
    display: flex;
    flex-direction: column;
    max-height: 200px; /* Você ainda pode controlar a altura máxima total do card */
    overflow: hidden; /* Esconde qualquer overflow do container principal */
}

.video-menu h3 {
    margin: 0 0 1rem 0; /* Remove margem do topo, adiciona embaixo */
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0; /* Impede que o título encolha */
    text-align: center;
}

.video-menu ul {
    list-style: none; 
    padding: 0 10px 0 0; /* Pequeno padding à direita para a barra de rolagem */
    margin: 0;
    overflow-y: auto; /* A MÁGICA: A rolagem acontece SÓ AQUI */
    flex-grow: 1; /* Faz a lista crescer para ocupar o espaço restante */
}

/* Os estilos dos links continuam os mesmos */
.video-menu li a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background-color 0.2s;
    font-weight: 600;
}
.video-menu li a:hover { background-color: #f0f2f5; }
.video-menu li a.active { background-color: #e6f2f2; color: #6e786f; }
.interest-section { grid-area: interests; }
.bottom-nav { grid-area: actions; } /* A barra de navegação entra na área "actions" */

.featured-content, .video-menu, .interest-section {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.dashboard-header h1 { font-size: 2.5rem; }

/* Reseta o estilo do body APENAS na página do dashboard para um fluxo normal */
.body-dashboard {
  display: block;
  height: auto;
  min-height: auto;
  padding-bottom: 2rem; /* Adiciona um respiro no final da página */
}

/* Posiciona a barra de navegação DENTRO do grid, como um rodapé normal */
.body-dashboard .bottom-nav {
    /*max-width: 900px;  Mantém a mesma largura do container */
    width: 100%;
    box-sizing: border-box;
    padding: 6px 0px;
/* NAV transparente e fixada no bottom - para pagina skincare */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.678); /* leve transparência */
    backdrop-filter: blur(8px); /* aplica o blur */
    -webkit-backdrop-filter: blur(8px); /* suporte para Safari */
    border-top: 1px solid #ccc;
    z-index: 1000;
}

/* Garante que os ITENS da barra de navegação fiquem com ícone e texto */
.body-dashboard .bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  font-size: 0.9rem;
}

/* NAV pagina de tratamentos */
.treatment-page .bottom-nav .nav-item {
    /*max-width: 900px;  Mantém a mesma largura do container */
    width: 100%;
    box-sizing: border-box;
    padding: 6px 0px;
/* NAV transparente e fixada no bottom - para pagina skincare */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.678); /* leve transparência */
    backdrop-filter: blur(8px); /* aplica o blur */
    -webkit-backdrop-filter: blur(8px); /* suporte para Safari */
    border-top: 1px solid #ccc;
    z-index: 1000;
}

.body-fullscreen .nav-item {
    /*max-width: 900px;  Mantém a mesma largura do container */
    width: 100%;
    box-sizing: border-box;
    padding: 20px 0px;
/* NAV transparente e fixada no bottom - para pagina skincare */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.678); /* leve transparência */
    backdrop-filter: blur(8px); /* aplica o blur */
    -webkit-backdrop-filter: blur(8px); /* suporte para Safari */
    border-top: 1px solid #ccc;
    z-index: 1000;
}
/* Responsividade APENAS para o dashboard */
@media (max-width: 2000px) {
  .body-dashboard .dashboard-grid {
      grid-template-columns: 1fr; /* Transforma em uma única coluna */
      grid-template-areas:
          "header"
          "main"
          "sidebar"
          "interests"
          "actions";
      padding: 1rem;
      margin: 1rem auto;
  }

  .dashboard-grid-top {
      grid-template-columns: 1fr; /* Uma única coluna em telas menores */
      grid-template-areas:
          "header"
          "main"
          "sidebar"
          "interests"
          "actions";
      padding: 1rem;
      margin: 1rem auto;
  }

  /* ajustes scroll off*/
  .dashboard-grid {
    flex-grow: 1;       /* FAZ O CONTEÚDO CRESCER PARA OCUPAR O ESPAÇO */
    overflow-y: auto;   /* ADICIONA ROLAGEM SÓ NO CONTEÚDO, SE NECESSÁRIO */
    min-height: 0;      /* Truque de CSS para o flexbox funcionar perfeitamente */
}
  .body-dashboard .bottom-nav {
    flex-shrink: 0;
    margin: 2; /* Remove margens extras que podem causar rolagem */
}
} 

/* ============================================================== */
/* --- CORREÇÃO DE LAYOUT ESPECÍFICA PARA A PÁGINA SKINCARE --- */
/* ============================================================== */

/* Esta regra força a página de skincare a organizar seu conteúdo em uma
   única coluna vertical, de cima para baixo. */
.body-skincare {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinha o conteúdo no topo */
    align-items: center;
}

/* Garante que o container principal se ajuste ao seu conteúdo */
.body-skincare {
    min-height: auto; /* Remove a altura mínima que o empurrava */
    margin-bottom: 0; /* Remove margem inferior desnecessária */
    padding-bottom: 80px;
    
}

/* Garante que a barra de navegação se comporte como o último item no final */
.body-skincare .bottom-nav {
    /*max-width: 900px;  Mantém a mesma largura do container */
    width: 100%;
    box-sizing: border-box;
    padding: 6px 0px;
/* NAV transparente e fixada no bottom - para pagina skincare */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.678); /* leve transparência */
    backdrop-filter: blur(8px); /* aplica o blur */
    -webkit-backdrop-filter: blur(8px); /* suporte para Safari */
    border-top: 1px solid #ccc;
    z-index: 1000;
}

/* ======================================================= */
/* --- ESTILOS INDEPENDENTES PARA A PÁGINA "A CLÍNICA" --- */
/* ======================================================= */

.body-clinic {
    /* Garante que esta página tenha um fluxo de rolagem normal */
    display: block;
    height: auto;
    text-align: left;
    padding-bottom: 80px;
}

.clinic-page-container {
    padding: 1.5rem;
    max-width: 900px;
    margin: 2rem auto; /* Centraliza a página com margens */
    display: flex;
    flex-direction: column; /* Organiza tudo em uma única coluna */
    gap: 1rem; /* Espaço entre as seções */
}

/* Ajustes específicos para a página da clínica: logo maior e topo mais justo */
.body-clinic .clinic-page-container {
    margin-top: 0;
    padding-top: 0;
}

.body-clinic .about-header {
    padding: 30px 20px 5px 20px;
    margin: 0;
    text-align: center;
}

.body-clinic .about-header .logo {
    height: auto;
    max-height: 95px;
    max-width: 240px;
    margin: 0 auto 8px;
}

/* Reduz espaçamento entre título e subtítulo em clinica.html */
.body-clinic .about-header h1 {
    margin: 4px 0 4px 0;
}
.body-clinic .about-header .about-subtitle {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #666;
}

/* Garante que a barra de navegação nesta página apareça no final, sem ser fixa */
.body-clinic .bottom-nav {
    /*max-width: 900px;  Mantém a mesma largura do container */
    width: 100%;
    box-sizing: border-box;
    padding: 6px 0px;
/* NAV transparente e fixada no bottom - para pagina skincare */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.678); /* leve transparência */
    backdrop-filter: blur(8px); /* aplica o blur */
    -webkit-backdrop-filter: blur(8px); /* suporte para Safari */
    border-top: 1px solid #ccc;
    z-index: 1000;
}

/* Estilo para a nova seção de Queixas Comuns */
.common-complaints {
    background-color: #f7f7f7;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #6e786f;
}
.common-complaints h3 {
    margin-top: 0;
    color: #6e786f;
}
.common-complaints ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.common-complaints li {
    background-color: #f1f1f1;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- ESTILOS PARA SELEÇÃO ROSTO/CORPO E ZONAS CORPORAIS --- */

/* Container que agrupa os dois selects */
.selectors-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    height: 50px; /* ou ajuste conforme necessário */
}

.view-selector-voltar {
    position: absolute;
    left: 0;
    background-color: #e9e9e9;
    padding: 10px 0px 10px 0px;
    border-radius: 10px;
    width: fit-content;
}

.view-selector-corpo {
    background-color: #e9e9e9;
    padding: 5px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    width: fit-content;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .selectors-wrapper {
        flex-direction: column;
        align-items: center;
        height: auto;
        gap: 10px;
    }

    .view-selector-voltar {
        position: static;
        order: 2;
    }

    .view-selector-corpo {
        order: 1;
    }
}

.view-selector-mapa {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background-color: #e9e9e9;
    padding: 5px;
    border-radius: 999px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.view-selector-corpo {
    border-radius: 999px;
}

.view-selector-mapa .selector-btn,
.view-selector-corpo .selector-btn {
    border-radius: 999px;
}

.selector-btn {
    padding: 10px 25px;
    border: none;
    background-color: transparent;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.selector-btn.active {
    background-color: #ffffff;
    color: #6e786f;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.map-content {
    display: none; /* Todos os conteúdos começam escondidos */
}

.map-content.active {
    display: block; /* Apenas o conteúdo ativo é mostrado */
    animation: fadeIn 0.5s; /* Animação suave */
}

.map-content, .body-view {
    display: none; /* Todos os conteúdos começam escondidos */
}

.map-content.active, .body-view.active {
    display: block; /* Apenas o conteúdo ativo é mostrado */
    animation: fadeIn 0.5s;
}


.zone-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.zone-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4C5656;
}

/* =================================================================== */
/* --- CORREÇÃO DE LAYOUT PARA PÁGINAS DE MAPA (ROSTO E CORPO) --- */
/* =================================================================== */

/* Aplica um layout flexível ao corpo APENAS nas páginas de mapa */
.body-map {
    display: flex;
    flex-direction: column;
    top:0;
   
}

/* Faz o container principal do conteúdo crescer para ocupar o espaço disponível */
.body-map {
    flex-grow: 1;
    overflow-y: auto; /* Adiciona rolagem APENAS no conteúdo, se necessário */
    padding-bottom: 0rem; /* Espaço para não colar na barra de navegação */
    background-color: #FFF;

}

/* Garante que a barra de navegação fique fixa no rodapé */
.body-map .bottom-nav {
    position: static; /* Remove a necessidade de ser fixo, pois o body já organiza */
    flex-shrink: 0; /* Impede que a barra encolha */
    border-top: 1px solid #e0e0e0;
    padding: 6px ;
    }

/* NAV fixo para páginas de mapa */
.body-map .fixed-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Adiciona padding-bottom ao container principal para compensar o nav fixo */
.body-map .app-container-mapa,
.body-map .app-container {
    padding-bottom: 80px;
}

/* Reduz padding superior especificamente no corpo.html */
.body-map .app-container-corpo {
    padding-top: 0;
}

/* Ajustes específicos para páginas de mapa */
.body-map .app-container-mapa {
    margin-top: 0;
    padding-top: 0;
}

.body-map .app-header {
    padding: 0 20px 2px 20px;
    margin: 0;
}

.body-map .app-header .logo {
    height: auto;
    max-height: 95px;
    max-width: 240px;
    margin: 8px auto 0;
}

.body-map .app-header .title {
    font-size: 1.05rem;
    font-weight: 400;
    color: #6b6b6b;
    letter-spacing: 0.01em;
    margin: 2px 0 6px;
    line-height: 1.3;
}

/* Subtítulo do mapa (rosto/corpo) — italic pra dialogar com o Biagini */
.body-map .app-header .map-subtitle {
    font-style: italic;
    font-size: 0.95rem;
    color: #7a7a7a;
    margin: 0 0 8px;
}

/* Ajustes específicos para seleção do rosto */
.selecao-rosto .app-container-mapa {
    padding-top: 15px;
}

.selecao-rosto .app-header .logo {
    height: auto;
    max-height: 95px;
    max-width: 240px;
    margin: 0 auto 8px;
}

/* Reduzir espaçamento entre view-selector e imagens */
.body-map .view-selector-mapa,
.body-map .selectors-wrapper {
    margin-bottom: 10px;
}

/* Padronização de header e logo para páginas comuns (skincare, cardápio, etc.) */
.body-skincare .app-header {
    padding: 0 20px 5px 20px;
    margin: 0;
    text-align: center;
}

.body-skincare .app-header .logo {
    height: auto;
    max-height: 95px;
    max-width: 240px;
    margin: 0 auto 14px;
}

/* Padroniza títulos e subtítulos superiores (skincare, mapa, corpo) */
.body-skincare .app-header .title,
.body-map .app-header .title {
    margin: 2px 0 4px 0; /* menos espaço para parecer mais com subtítulo */
}

.body-skincare .app-header p,
.body-map .app-header p {
    margin: 0 0 8px 0; /* reduz o espaço abaixo do texto de apoio */
    font-size: 1rem;
    color: #666;
}

/* Título em semibold somente no skincare (não altera mapa/corpo) */
.body-skincare .app-header .title {
    font-weight: 600;
}

/* Cardápio usa um header secundário, padronizamos também */
.treatment-header h1 {
    margin: 12px 0 4px 0 !important; /* reduz padding/margem para título compacto */
}
.treatment-header p {
    margin: 0 0 10px 0 !important;
    font-size: 1rem;
    color: #666;
}

/* Cardápio herda o mesmo padrão visual de skincare */
body.body-skincare .app-header .logo {
    height: auto;
    max-height: 95px;
    max-width: 240px;
}

/* Título semibold no Cardápio, igual ao skincare */
.treatment-header h1 {
    font-weight: 600;
}

.body-map .map-content {
    margin-top: 5px;
}


/* --- Layout para Páginas de Tela Cheia (Retornando, Chat, etc.) --- */

.body-fullscreen-layout {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Ocupa 100% da altura da tela */
    margin: 0;
}

/* Faz o container principal crescer e ocupar o espaço vago */
.body-fullscreen-layout .selection-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Adiciona rolagem se necessário */
}

/* Garante que a nav não encolha */
.body-fullscreen-layout .bottom-nav {
    flex-shrink: 0;
}

/* --- ESTILOS PARA FILTROS DE SKINCARE --- */

.filter-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-group {
    background-color: #e9e9e9;
    padding: 6px;
    border-radius: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap; /* Permite que os botões quebrem a linha em telas menores */
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease-in-out;
}

.filter-btn.active {
    background-color: #ffffff;
    color: #6e786f;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- EFEITO 3: APRESENTAÇÃO ESCALONADA DE CARDS --- */

/* Define a animação base para todos os cards */
.treatment-card {
    /* Esconde o card inicialmente e prepara para animar */
    opacity: 0;
    transform: translateY(20px);
    
    /* Define a animação que será aplicada */
    animation: cardFadeIn 0.5s ease-out forwards;
}

/* Keyframes da animação */
@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adiciona um atraso (delay) para cada card, criando o efeito escalonado */
.treatment-card:nth-child(1) { animation-delay: 0.1s; }
.treatment-card:nth-child(2) { animation-delay: 0.2s; }
.treatment-card:nth-child(3) { animation-delay: 0.3s; }
.treatment-card:nth-child(4) { animation-delay: 0.4s; }
/* O CSS cuidará de até 4 cards. Se uma área tiver mais, eles animarão após 0.4s */

/* --- CONTROLE DE VISIBILIDADE DOS BOTÕES DA NAV --- */

/* Para esconder o botão do chat */
#nav-chat-btn { display: none; }

/* Para esconder o botão da skincare 
#nav-skincare-btn { display: none; }*/

/* Para esconder o botão do cardapio */
#nav-cardapio-btn { display: none; }

/* --- ESTILOS PARA PÁGINA DE CARDÁPIO --- */

.skincare-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    width: 100%;
}

.cardapio-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    display: flex;
    align-items: top;
    padding: 1.5rem;
    gap: 1.5rem;
    text-align: left;
}

.cardapio-image-container {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

.cardapio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.cardapio-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 90%;
}

.cardapio-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #333;
}

.cardapio-description {
    margin: 0 0 1rem 0;
    line-height: 1.5;
    color: #666;
    flex-grow: 1;
}

.cardapio-options-placeholder {
    display: none; /* Não precisamos mais mostrar isso */
}

.cardapio-select-button {
    background-color: #6e786f;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    align-self: flex-start;
}

.cardapio-select-button:hover {
    background-color: #4C5656;
}


/* --- ESTILOS PARA MODAL DE OPÇÕES DO CARDÁPIO --- */
.option-group {
    margin-bottom: 1.5rem;
}

.option-label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option label {
    font-size: 1rem;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 600px) {
    .skincare-container-grid {
        grid-template-columns: 1fr;
    }
    .cardapio-card {
        flex-direction: column;
        text-align: center;
    }
    .cardapio-select-button {
        align-self: center;
        width: 100%;
    }
}

/* --- ESTILOS PARA SEÇÃO DE PEDIDO ATUAL --- */

.pedido-container {
    background-color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
    border: 2px solid #6e786f;
}

.pedido-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
}

#pedido-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.pedido-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.pedido-item:last-child {
    border-bottom: none;
}

.pedido-item-info {
    display: flex;
    flex-direction: column;
}

.pedido-item-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #444;
}

.pedido-item-options {
    font-size: 0.9rem;
    color: #777;
    margin-top: 4px;
}

.remover-item-btn {
    background-color: #fceeee;
    color: #d9534f;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 30px;
    text-align: center;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: background-color 0.2s, color 0.2s;
}

.remover-item-btn:hover {
    background-color: #d9534f;
    color: #fff;
}

#enviar-pedido-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* --- ESTILOS PARA FILTROS DE CATEGORIA DO CARDÁPIO --- */

.cardapio-filtros-container {
    display: flex;
    justify-content: center;
    gap: 8px; /* Espaço entre os botões */
    margin-bottom: 2.5rem;
    background-color: #f1f1f1; /* Fundo do contêiner */
    padding: 8px; /* Espaçamento interno do contêiner */
    border-radius: 12px; /* Bordas arredondadas no contêiner */
    width: fit-content; /* Faz o contêiner se ajustar ao tamanho dos botões */
    margin-left: auto; /* Centraliza o contêiner */
    margin-right: auto; /* Centraliza o contêiner */
}

.filter-btn {
    background-color: transparent; /* Botão sem fundo por padrão */
    border: none;
    border-radius: 8px; /* Bordas arredondadas do botão */
    padding: 12px 28px; /* AUMENTAMOS O PADDING AQUI */
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.filter-btn:hover {
    background-color: #e7e7e7;
}

.filter-btn.active {
    background-color: #ffffff; /* Fundo branco quando ativo */
    color: #6e786f; /* Cor do texto quando ativo */
    box-shadow: 0 3px 8px rgba(0,0,0,0.1); /* Sombra para dar profundidade */
}

/* --- ESTILO PARA MENSAGEM INSTRUTIVA --- */

.instructive-message {
    display: none;
    background-color: #fdf8e8; /* Um tom de amarelo bem claro, relacionado à sua paleta */
    border-left: 5px solid #6e786f; /* Borda lateral dourada para destaque */
    padding: 15px 20px;
    margin-bottom: 1rem; /* Centraliza e adiciona margem inferior */
    border-radius: 8px;
    max-width: 95%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.instructive-message p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #4C5656; /* Cor do texto mais escura para boa legibilidade */
    text-align: center;
}

.instructive-message p strong {
    font-weight: 700;
}

/* --- ESTILOS PARA BOTÃO SAIBA MAIS E PÁGINA DE DETALHES --- */

/* Ajuste no container de botões do card de tratamento */
.treatment-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* --- ESTILO UNIFICADO PARA OS BOTÕES DE AÇÃO --- */

/* Container que segura os botões */
.treatment-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center; /* Garante o alinhamento vertical */
}

/* 1. Base de estilo COMUM para ambos os botões */
.interest-button, .saiba-mais-button {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease-in-out;
    border: 2px solid #6e786f; /* AMBOS terão a mesma borda */
    box-sizing: border-box; /* Garante que o tamanho final seja o mesmo */
    margin-top: 0.6rem;
    color: #4C5656;
}

/* 2. Estilo específico para o botão "Amei" */
.interest-button {
  background-color: #6e786f;
  color: white;
}
.interest-button:hover {
  background-color: #b19138; /* Um hover um pouco mais sutil */
  border-color: #b19138;
}

/* 3. Estilo específico para o botão "Saiba Mais" */
.saiba-mais-button {
    background-color: transparent;
    color: #6e786f;
    display: none !important; /* PROVISÓRIO: Ocultar botões */

}
.saiba-mais-button:hover {
    background-color: #6e786f;
    color: white;
}

/* Estilos da página de detalhes */
.body-fullscreen {
    display: block;
    height: auto;
    background-color: #fff;
}

.detalhe-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
}

.detalhe-voltar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    margin-bottom: 2rem;
}

#detalhe-titulo {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}


.video-wrapper-detalhe {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */ 
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    background-color: #000;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-wrapper-detalhe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.detalhe-descricao-container, .detalhe-galeria-container {
    margin-bottom: 3rem;
}

.detalhe-descricao-container h2, .detalhe-galeria-container h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #6e786f;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

#detalhe-descricao {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.galeria-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}



/* --- ESTILOS CORRIGIDOS E FINAIS PARA AÇÕES DO CARD --- */

/* 1. Garante que a coluna de informações ocupe todo o espaço vertical */
.cardapio-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz esta coluna crescer para ocupar o espaço do card */
}

/* 2. Garante que a descrição cresça, empurrando as opções/ações para baixo */
.cardapio-description {
    flex-grow: 1;
}

/* 3. Container que segura as opções selecionáveis */
.cardapio-options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* 4. Estilos para os botões de opção (Gelada/Natural, etc.) */
.option-choices {
    display: flex;
    gap: 0.5rem;
    width: auto;
    max-width: 400px;
    flex-wrap: wrap;
}
.option-choice-btn {
    flex-grow: 1;
    background-color: #f1f1f1;
    border: 2px solid #f1f1f1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.option-choice-btn.active {
    background-color: #fdf8e8;
    border-color: #6e786f;
    color: #4C5656;
    font-weight: 600;
}

/* 5. Container que segura o botão Adicionar ou o Contador */
.card-actions-container {
    margin-top: auto; /* EMPURRA PARA O FUNDO DA COLUNA, GARANTINDO ALINHAMENTO VERTICAL */
    padding-top: 0rem; /* Adiciona um respiro acima */
    display: flex;
    justify-content: flex-start; /* <<< MUDANÇA PRINCIPAL: Alinha à ESQUERDA */
    align-items: center;
    min-height: 44px;
}

/* 6. Estilo do botão "ADICIONAR" (sem alterações) */
.add-to-order-button {
    background-color: #6e786f;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: auto;
}
.add-to-order-button:hover {
    background-color: #4C5656;
}

/* 7. Estilos do contador de quantidade (sem alterações) */
.quantity-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.quantity-btn {
    background-color: #f1f1f1;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    line-height: 32px;
    transition: background-color 0.2s;
}
.quantity-btn:hover {
    background-color: #e0e0e0;
}
.quantity-value {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

.pedido-resumo-bar {
    position: fixed;
    bottom: 100px; /* Posição acima da nav principal */
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
    z-index: 999;
    transition: transform 0.3s ease-in-out;
}
.pedido-resumo-bar.hidden {
    transform: translateY(200%); /* Esconde a barra para baixo */
}
.resumo-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
#resumo-texto {
    font-size: 1.1rem;
    font-weight: 600;
}
#visualizar-pedido-btn {
    font-size: 0.9rem;
    color: #6e786f;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}
.enviar-pedido-btn {
    background-color: #6e786f;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.enviar-pedido-btn:hover {
    background-color: #4C5656;
}

/* --- ESTILOS PARA O MODAL DE DETALHES DO PEDIDO --- */
.pedido-detalhe-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 60vh;
    overflow-y: auto;
}
/* Reutiliza o estilo de item que já tínhamos */
.pedido-detalhe-lista .pedido-item {
    text-align: left;
}

/* Garante que o conteúdo principal não fique escondido */
.body-skincare {
    padding-bottom: 150px; /* Aumenta o espaço no final da página */
}

.cardapio-options-container:empty {
    /* Se o container de opções estiver vazio, remove a margem */
    margin-bottom: 0;
}

/* --- Estilos para Anamnese Completa --- */
.anamnese-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 3px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--cor-primaria, #6e786f);
  width: 0%;
  transition: width 0.3s ease;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.step h2 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.text-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.text-input:focus {
  outline: none;
  border-color: var(--cor-primaria, #6e786f);
}

textarea.text-input {
  resize: vertical;
  min-height: 100px;
}

/* Estilos específicos para campo de data */
.date-input {
  background-color: #f9f9f9;
  color: #333;
  cursor: pointer;
  position: relative;
}

.date-input:hover {
  background-color: #f0f0f0;
  border-color: var(--cor-primaria, #6e786f);
}

.date-input:focus {
  background-color: #fff;
  border-color: var(--cor-primaria, #6e786f);
  box-shadow: 0 0 0 3px rgba(220, 183, 71, 0.1);
}

/* Container para o campo de data lado a lado */
.date-input-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.date-label-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  min-width: fit-content;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background-color: transparent;
  display: flex;
  align-items: center;
}

/* Melhoria para tablets - campo de data mais visível */
@media (max-width: 1024px) {
  .date-input {
    font-size: 18px;
    padding: 16px;
    min-height: 50px;
  }
  
  .date-label-text {
    font-size: 18px;
    padding: 16px;
  }
}

.nav-button {
  background-color: var(--cor-primaria, #6e786f);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  margin-top: 1rem;
}

.nav-button:hover {
  background-color: #c4a542;
}

.nav-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Estilos para grupos de perguntas */
.question-group {
  margin-bottom: 2rem;
  text-align: left;
}

.question-group p {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cor-primaria, #6e786f);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.checkbox-group label:hover {
  background-color: #f8f9fa;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cor-primaria, #6e786f);
}

/* Responsividade para anamnese */
@media (max-width: 600px) {
  .anamnese-container {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

/* --- Estilos para seleção de áreas --- */
.selected-area-tag {
    display: inline-block;
    background-color: var(--cor-primaria);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    margin: 4px;
    font-size: 14px;
    font-weight: 600;
}

.selected-areas {
    margin: 15px 0;
    padding: 0 20px;
}

.selected-areas h3 {
    margin-bottom: 10px;
    color: var(--cor-primaria);
    font-size: 18px;
}

.selected-areas-list {
    min-height: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.no-selection {
    color: #999;
    font-style: italic;
}

.navigation-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.navigation-buttons-horizontal {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 15px 20px;
    justify-content: center;
    align-items: center;
}

.nav-button.secondary {
    background-color: transparent;
    color: var(--cor-primaria);
    border: 2px solid var(--cor-primaria);
}

.nav-button.secondary:hover {
    background-color: var(--cor-primaria);
    color: white;
}

.nav-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Botões menores para seleção */
.nav-button-small {
    background-color: var(--cor-primaria);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
}

.nav-button-small:hover {
    background-color: var(--cor-secundaria, #c4a85a);
    transform: translateY(-2px);
}

.nav-button-small.secondary {
    background-color: transparent;
    color: var(--cor-primaria);
    border: 2px solid var(--cor-primaria);
}

.nav-button-small.secondary:hover {
    background-color: var(--cor-primaria);
    color: white;
}

.nav-button-small:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Destaque para áreas selecionadas nos mapas */
.interactive-dot.selected-highlight::before {
    background-color: #6e786f !important;
    border: 3px solid #fff !important;
    box-shadow: 0 0 15px rgba(110, 120, 111, 0.6) !important;
    animation: pulse-selected 2s infinite;
}

@keyframes pulse-selected {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Estilos para pontos selecionados na tela de seleção */
.interactive-dot.selected::before {
    background-color: #28a745 !important; /* Verde para indicar selecionado */
    border: 3px solid #fff !important;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.8) !important;
    transform: translate(-50%, -50%) scale(1.05); /* Crescimento mais sutil */
}

/* Estilos para pontos não selecionados na tela de seleção */
.selecao-rosto .interactive-dot:not(.selected)::before,
.selecao-corpo .interactive-dot:not(.selected)::before {
    background-color: #706f6f !important; /* Cinza para não selecionados */
    border: 3px solid #ffffff !important;
    opacity: 0.6; /* Menos opacidade */
    animation: pulse-gray 2s infinite ease-in-out; /* Animação mais sutil */
}

/* Animação para pontos não selecionados */
@keyframes pulse-gray {
    0% { 
        box-shadow: 0 0 0 0 rgba(153, 153, 153, 0.3); 
    }
    70% { 
        box-shadow: 0 0 0 8px rgba(153, 153, 153, 0); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(153, 153, 153, 0); 
    }
}

/* Hover para pontos não selecionados */
.selecao-rosto .interactive-dot:not(.selected):hover::before,
.selecao-corpo .interactive-dot:not(.selected):hover::before {
    opacity: 0.8; /* Aumenta opacidade no hover */
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 10px rgba(153, 153, 153, 0.5);
    animation-play-state: paused;
}

/* Estilos para pontos não selecionados nos mapas (rosto.html e corpo.html) */
.interactive-dot.not-selected::before {
    background-color: #888888 !important; /* Cinza para não selecionados */
    border: 3px solid #ffffff !important;
    opacity: 0.6; /* Menos opacidade */
    animation: pulse-gray 2s infinite ease-in-out; /* Animação mais sutil */
}

/* Hover para pontos não selecionados nos mapas */
.interactive-dot.not-selected:hover::before {
    opacity: 0.8; /* Aumenta opacidade no hover */
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 10px rgba(112, 111, 111, 0.5);
    animation-play-state: paused;
}

/* Estilos para subtítulo */
.subtitle {
    color: #666;
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Ajustes de tipografia para tablets (768–1180px) */
@media (min-width: 768px) and (max-width: 1180px) {
  .title, .treatment-header h1, .about-header h1 {
    font-size: 2rem;
  }
  .profile-text h2, .treatment-info h3 {
    font-size: 1.7rem;
  }
  .bottom-nav .nav-item {
    font-size: 0.95rem;
  }
  .cardapio-title {
    font-size: 1.6rem;
  }
  #detalhe-titulo {
    font-size: 3rem;
  }
}