/* Estilos básicos e mobile-first */
body {
font-family: 'Inter', sans-serif;
margin: 0;
/* Adicionado padding horizontal para respiro em telas pequenas */
padding: 0 10px;
/* Adicionado padding-top para criar espaço acima da barra azul */
padding-top: 15px; /* Ajuste este valor conforme necessário */
background: linear-gradient(to bottom right, #e0e0e0, #f0f0f0);
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
overflow-x: hidden;
box-sizing: border-box; /* Inclui padding no cálculo total da largura */
}

.app-container {
width: 100%;
max-width: 450px;
background-color: #ffffff;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
min-height: 100vh;
border-radius: 15px;
/* Alterado margin para 0 auto para centralizar e remover margens fixas */
margin: 0 auto;
position: relative;
overflow-y: auto;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE 10+ */
}
.app-container::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}

/* Media query para telas menores: remove border-radius e margin */
@media (max-width: 470px) { /* Ajuste o breakpoint conforme necessário */
.app-container {
margin: 0;
border-radius: 0;
}
body {
padding: 0; /* Remove padding do body em telas muito pequenas se o app-container for full width */
padding-top: 15px; /* Mantém o padding-top mesmo em telas pequenas */
}
}


/* Barra Superior */
.top-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background: linear-gradient(to right, #00c6ff, #0072ff);
color: #ffffff;
box-shadow: 0 2鸣px 5px rgba(0, 0, 0, 0.1);
/* Mantido border-top-left/right-radius para telas maiores */
border-top-left-radius: 15px;
border-top-right-radius: 15px;
position: sticky; /* Mantém fixa no topo */
top: 0;
z-index: 100;
}
/* Media query para telas menores: remove border-radius do top-bar */
@media (max-width: 470px) {
.top-bar {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}


.top-bar .app-title { margin: 0; font-size: 1.2em; font-weight: 600; flex-grow: 1; text-align: center; }
.top-bar .back-button { background: none; border: none; color: #ffffff; font-size: 1.2em; cursor: pointer; padding: 5px; transition: opacity 0.3s ease; width: 40px; text-align: left; }
.top-bar .back-button:hover { opacity: 0.8; }
.top-bar .title-spacer { width: 40px; }

/* Indicador de Progresso Aprimorado */
.progress-area {
padding: 15px 20px 10px;
border-bottom: 1px solid #eee;
position: sticky;
top: 60px; /* Ajuste conforme altura da top-bar */
z-index: 99;
background-color: #ffffff;
}

.progress-text { font-size: 0.9em; color: #555; margin-bottom: 15px; text-align: center; }

.step-indicator-container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
position: relative;
/* Removido padding horizontal para simplificar cálculo da linha */
padding: 0;
box-sizing: border-box;
}

.step-indicator-container::before {
content: '';
position: absolute;
top: 50%;
/* Ajustado left/right para cobrir a área entre os centros dos pontos */
left: 8px;
right: 8px;
height: 4px;
background-color: #e0e0e0; /* Cor da linha de fundo */
transform: translateY(-50%);
z-index: 1;
border-radius: 2px;
}

.progress-line-fill {
content: '';
position: absolute;
top: 50%;
/* Ajustado left para começar no centro do primeiro ponto */
left: 8px;
height: 4px;
background-color: #2ecc71; /* Cor da linha de progresso */
transform: translateY(-50%);
z-index: 2; /* Acima da linha de fundo */
width: 0%; /* Começa vazio */
transition: width 0.5s ease-in-out;
border-radius: 2px;
}


.step-dot {
width: 16px;
height: 16px;
border-radius: 50%;
background-color: #e0e0e0;
z-index: 3;
position: relative;
transition: background-color 0.3s ease, transform 0.3s ease;
display: flex;
justify-content: center;
align-items: center;
font-size: 0.7em;
color: #ffffff;
font-weight: 600;
/* Adicionado margin horizontal para espaçamento entre os pontos */
margin: 0 10px;
}
/* Remove margin dos pontos nas pontas para alinhamento com a linha */
.step-dot:first-child {
margin-left: 0;
}
.step-dot:last-child {
margin-right: 0;
}


.step-dot.completed {
background-color: #2ecc71;
}

.step-dot.active {
background-color: #0072ff;
transform: scale(1.2);
box-shadow: 0 0 8px rgba(0, 114, 255, 0.5);
}


/* Área de Conteúdo Principal (Slideshow de Cards) */
.card-container {
display: flex;
overflow-x: scroll;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
/* Mantido padding para o efeito de "peek" dos cards */
padding: 20px 0;
width: 100%;
scrollbar-width: none;
-ms-overflow-style: none;
flex-grow: 1;
}
.card-container::-webkit-scrollbar { display: none; }

/* Estilo para cada slide/etapa */
.step-card {
/* Mantido calc para o efeito de scroll */
flex: 0 0 calc(100% - 40px);
width: calc(100% - 40px);
/* Mantido margin para o espaçamento entre cards no scroll */
margin: 0 20px;
background-color: #ffffff;
border-radius: 15px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
padding: 25px;
box-sizing: border-box;
scroll-snap-align: center;
transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
display: flex;
flex-direction: column;
justify-content: flex-start;
padding-bottom: 40px;
}

.step-card:not(.active) { opacity: 0.7; transform: scale(0.95); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
.step-card.active { opacity: 1; transform: scale(1); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
.step-card h2 { font-size: 1.3em; margin-top: 0; margin-bottom: 10px; color: #333; font-weight: 700; text-align: center; }
.card-description { font-size: 0.95em; color: #555; margin-bottom: 20px; line-height: 1.6; text-align: center; } /* Ajustado line-height */

/* Etapa 1: Seleção de Produto - Layout Empilhado */
#product-selection-area .card-description { margin-bottom: 15px; }
.product-grid { display: flex; flex-direction: column; gap: 15px; width: 100%; margin-bottom: 0; }
.product-option {
border-radius: 10px; padding: 15px 20px; text-align: center; cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.3s ease;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); display: flex; flex-direction: row;
align-items: center; justify-content: flex-start; border: 1px solid transparent;
width: 100%; box-sizing: border-box;
}
.product-option:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.product-option[data-product="followers"] { background-color: #4CAF50; }
.product-option[data-product="followers"]:hover { background-color: #388E3C; }
.product-option[data-product="likes"] { background-color: #E91E63; }
.product-option[data-product="likes"]:hover { background-color: #C2185B; }
.product-option[data-product="views"] { background-color: #673AB7; }
.product-option[data-product="views"]:hover { background-color: #512DA8; }
.product-option.selected { opacity: 0.9; border-color: #ffffff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); transform: scale(1.02); }
.product-option[data-product="followers"].selected { background-color: #81C784; }
.product-option[data-product="likes"].selected { background-color: #F48FB1; }
.product-option[data-product="views"].selected { background-color: #9575CD; }
.product-option i { font-size: 1.5em; margin-right: 15px; color: #ffffff; width: 30px; text-align: center; }
.product-option .text-content { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.product-option h3 { font-size: 1em; margin: 0 0 2px 0; font-weight: 600; color: #ffffff; }
.product-option p { font-size: 0.8em; margin: 0; color: #e0e0e0; transition: color 0.3s ease; }
.product-option.selected p { color: #ffffff; }

/* --- Seção de Estatísticas (Agora dentro da Etapa 1) --- */
.stats-simulation-area {
background-color: transparent;
border-top: 1px solid #eee;
margin-top: 30px;
padding-top: 20px;
}

.stats-simulation-area h3 {
font-size: 1.1em;
color: #333;
margin-top: 0;
margin-bottom: 15px;
text-align: center;
font-weight: 600;
}

.total-counter-display {
font-size: 1.4em;
color: #0072ff;
font-weight: 700;
text-align: center;
margin-bottom: 20px;
}
.total-counter-display span {
font-family: monospace;
}

.service-stats {
display: flex;
flex-direction: column;
gap: 15px;
}

.service-stat-item {
display: flex;
align-items: center;
gap: 10px;
}

.service-stat-item .label {
font-size: 0.9em;
color: #555;
width: 90px;
text-align: right;
flex-shrink: 0;
}

.service-stat-item .mini-progress-bar-container {
flex-grow: 1;
height: 10px;
background-color: #e0e0e0;
border-radius: 5px;
overflow: hidden;
}

.service-stat-item .mini-progress-bar-fill {
height: 100%;
width: 10%;
border-radius: 5px;
transition: width 1.5s linear;
}

/* Cores das mini barras (correspondendo aos botões) */
#followersMiniBar { background-color: #4CAF50; }
#likesMiniBar { background-color: #E91E63; }
#viewsMiniBar { background-color: #673AB7; }
/* --- FIM DA SEÇÃO DE ESTATÍSTICAS --- */


/* Etapa 2: Input de Informações */
#info-input-area .input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.9em; color: #555; margin-bottom: 8px; font-weight: 600; }
.input-group input[type="text"] { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 8鸣px; font-size: 1em; box-sizing: border-box; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.input-group input[type="text"]:focus { outline: none; border-color: #2ecc71; box-shadow: 0 0 5px rgba(46, 204, 113, 0.3); }

/* Simulação de Atividade */
.activity-feed { background-color: #f0f4f8; border-radius: 8px; padding: 15px; margin-top: 20px; margin-bottom: 20px; font-size: 0.85em; color: #333; max-height: 150px; overflow-y: hidden; position: relative; }
.activity-feed ul { list-style: none; padding: 0; margin: 0; }
.activity-feed li { margin-bottom: 8px; opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.activity-feed li.visible { opacity: 1; transform: translateY(0); }
.activity-feed li strong { color: #0072ff; }
.activity-feed li span { color: #2ecc71; font-weight: 600; }

/* Botão Próximo/Enviar */
.next-button { display: block; width: 100%; padding: 12px 20px; background-color: #2ecc71; color: #ffffff; border: none; border-radius: 8鸣px; font-size: 1.1em; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3); margin-top: 20px; }
.next-button:hover { background-color: #27ae60; transform: translateY(-2px); box-shadow: 0 6鸣px 12px rgba(46, 204, 113, 0.4); }
.next-button:disabled { background-color: #cccccc; cursor: not-allowed; box-shadow: none; transform: none; }

/* Etapa 3: Pesquisa */
.questions-list { margin-bottom: 20px; }
.question { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee; text-align: left; }
.question:last-child { border-bottom: none; padding-bottom: 0; }
.question p { font-size: 1em; color: #333; margin: 0 0 10px 0; font-weight: 600; }
.question .options { display: flex; flex-wrap: wrap; gap: 8px; }
.question-option { padding: 8px 15px; border: 1px solid #ccc; border-radius: 20px; background-color: #f8f8f8; color: #555; font-size: 0.9em; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.question-option:hover { background-color: #eeeeee; border-color: #bbb; }
.question-option.selected { background-color: #2196f3; color: #ffffff; border-color: #2196f3; }


/* Etapa 4: Simulação de Validação */
.validation-simulation { margin-bottom: 20px; }
.validation-step { display: flex; align-items: center; margin-bottom: 10px; }
.validation-step .indicator { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 10px; background-color: #e0e0e0; transition: background-color 0.4s ease; }
.validation-step .indicator.pending { background-color: #e0e0e0; }
.validation-step .indicator.processing { background-color: #ffc107; }
.validation-step .indicator.completed { background-color: #2ecc71; }
.validation-step .step-text { font-size: 1em; color: #555; }
.simulated-data { background-color: #f8f8f8; border-radius: 8鸣px; padding: 15px; font-size: 0.9em; color: #333; margin-top: 20px; }
.simulated-data p { margin: 0 0 8px 0; }
.simulated-data p:last-child { margin-bottom: 0; }
.simulated-data span { font-weight: 600; color: #000; }

/* Etapa 5: Página Final Aprimorada */
.final-step-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
min-height: 300px; /* Altura mínima para centralizar o conteúdo */
}

.whatsapp-redirect-message {
font-size: 1.1em;
color: #333;
margin-bottom: 20px;
}

/* Estilo para o preloader (spinner) */
.spinner {
border: 8px solid #f3f3f3; /* Light grey */
border-top: 8px solid #3498db; /* Blue */
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
margin-bottom: 20px;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* Estilos para a área de resumo dos dados */
.data-summary {
background-color: #f8f8f8; /* Fundo levemente cinza */
border-radius: 8px;
padding: 15px;
margin-top: 20px;
font-size: 0.9em;
color: #333;
text-align: left; /* Alinha o texto à esquerda */
width: 100%; /* Ocupa a largura total disponível no card */
box-sizing: border-box; /* Inclui padding na largura */
border: 1px solid #eee; /* Borda sutil */
}

.data-summary h3 {
font-size: 1em;
margin-top: 0;
margin-bottom: 10px;
color: #555;
font-weight: 600;
text-align: center; /* Centraliza o título do resumo */
}

.data-summary p {
margin: 0 0 8px 0;
line-height: 1.4;
}

.data-summary p:last-child {
margin-bottom: 0;
}

.data-summary span {
font-weight: 600;
color: #000;
}


/* Estilos para a área de compartilhamento */
.share-area {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #eee;
width: 100%;
text-align: center;
}

.share-area h3 {
font-size: 1.1em;
color: #333;
margin-top: 0;
margin-bottom: 15px;
font-weight: 600;
}

.share-text-display {
background-color: #e0f7fa; /* Um tom leve de azul */
border: 1px solid #b2ebf2; /* Borda um pouco mais escura */
border-radius: 8px;
padding: 15px;
margin-bottom: 15px;
word-break: break-word; /* Quebra palavras longas */
text-align: left;
font-size: 0.9em;
color: #004d40; /* Cor de texto que combine */
min-height: 50px; /* Altura mínima */
display: flex;
align-items: center; /* Centraliza verticalmente */
white-space: pre-wrap; /* Preserva quebras de linha e espaços */
box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); /* Sombra interna sutil */
}

.share-buttons {
display: flex;
gap: 10px;
justify-content: center;
flex-wrap: wrap; /* Permite quebra de linha em telas pequenas */
}

.share-button {
padding: 10px 15px;
border: none;
border-radius: 8px;
font-size: 0.9em;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
display: inline-flex; /* Permite ícone e texto */
align-items: center;
gap: 5px; /* Espaço entre ícone e texto */
}

.share-button i {
font-size: 1.1em;
}

.whatsapp-share-button {
background-color: #25D366; /* Verde do WhatsApp */
color: #ffffff;
}
.whatsapp-share-button:hover {
background-color: #1EBE55;
transform: translateY(-1px);
}

.copy-link-button {
background-color: #0072ff; /* Azul */
color: #ffffff;
}
.copy-link-button:hover {
background-color: #0056b3;
transform: translateY(-1px);
}

.copy-text-button {
background-color: #cccccc; /* Cinza */
color: #333;
}
.copy-text-button:hover {
background-color: #b3b3b3;
transform: translateY(-1px);
}

/* Novo estilo para o botão de redirecionamento manual */
.manual-whatsapp-button {
display: block; /* Ocupa a largura total */
width: 100%; /* Garante que ocupe a largura total do contêiner */
padding: 12px 20px;
background-color: #25D366; /* Verde do WhatsApp */
color: #ffffff;
border: none;
border-radius: 8px;
font-size: 1.1em;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); /* Sombra verde */
margin-top: 25px; /* Espaço acima do botão */
text-decoration: none; /* Remove sublinhado se for um link */
display: flex; /* Permite centralizar conteúdo */
justify-content: center; /* Centraliza horizontalmente */
align-items: center; /* Centraliza verticalmente */
gap: 8px; /* Espaço entre ícone e texto */
}

.manual-whatsapp-button:hover {
background-color: #1EBE55;
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
}

.manual-whatsapp-button i {
font-size: 1.3em; /* Tamanho maior para o ícone */
}

/* Estilo para o texto de instrução do botão manual */
.manual-redirect-instruction {
font-size: 0.9em;
color: #555;
margin-top: 20px;
margin-bottom: 15px; /* Espaço antes do botão */
text-align: center;
}
