
:root {
    --primary-color: #0E7058;
    --secondary-color: #FF8701;
    --light-bg: #FFF;
    --light-bg-2: #eef7f8;
    --dark-text: #1E251C;
    --light-text: #636e72;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}



.topbar .row {  padding-top: .75rem; padding-bottom: 1rem; }
.topbar a:not(.btn) { color: var(--dark-text); text-decoration: none; font-weight: 600; }
.topbar .btn { margin-left: 1rem; font-weight: 500; color: white; background: var(--primary-color); }
.topbar img { width: 300px; height: auto; }

.header { background: var(--primary-color); padding-top: 2rem; padding-bottom: 2rem; }
.header h1 { font-size: 2.0rem; font-weight: 800; color: white; margin: 0 0 1rem; }
.header h2 { font-size: 1.2rem; font-weight: 400; color: white; }

.footer { padding-bottom: 1.5rem; }
.footer img { width: 110px; height: auto; }

.card { border: none; transition: transform 0.3s ease; }
.card:hover { transform: translateY(-5px); }


/**
 * GLOBAL
 */
.step-container h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);;
} 
.step-container h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
} 
.step-container p {
    font-size: 1.25rem;
}
.step-container {
    display: none;
}
.step-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
    border-color: var(--primary-color);
}
.form-label {
    font-weight: 600;
    color: var(--dark-text);
}


.progress-container {
    margin-bottom: 2rem;
}
.progress {
    height: 18px;
    border-radius: 12px;
    background-color: #f0efff;
}
.progress-bar {
    background-color: var(--secondary-color);
    transition: width 0.5s ease;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    border: none;
}







/**
 * ETAPA 0 - ENTRADA DE DADOS
 */
.option-icon {
    margin-bottom: 1.5rem;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.option-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.option-card {
    cursor: pointer;
    text-align: center;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.option-card:hover {
    transform: translateY(-10px);
}


/**
 * ETAPA 2 - GENERO
 */
.gender-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 2rem;
}
.gender-option {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    align-items: center;
    display: flex;
    flex-direction: column;
}
.gender-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.gender-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(108, 99, 255, 0.05);
}
.gender-icon {
    margin-bottom: 1.5rem;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.gender-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.gender-option.selected .gender-icon {
    color: var(--primary-color);
}
.gender-label {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}


/**
 * ETAPA 1 - OBJETIVO
 * ETAPA 5 - ATIVIDADE
 */
.activity-options, .goal-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.activity-option, .goal-option {
    flex: 0 0 calc(33.333% - 15px);
    max-width: calc(33.333% - 15px);
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    align-items: center;
    display: flex;
    flex-direction: column;
}
.activity-option:hover, .goal-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.activity-option.selected, .goal-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(108, 99, 255, 0.05);
}
.activity-icon, .goal-icon {
    margin-bottom: 1.5rem;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.activity-icon img, .goal-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    object-fit: cover;
}
.activity-option:hover .activity-icon, .goal-option:hover .goal-icon {
    transform: scale(1.1);
}
.activity-label, .goal-label {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.activity-description, .goal-description { font-size: 1.25rem; } 


/**
 * ---------------------------------------------------
 * ETAPA - AUDIO
 * ---------------------------------------------------
 */
 .audio-form-lead { display: none; }

 .btn-outline-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 12px;
    padding: 0.95rem 1.5rem;
    font-weight: 800;
    transition: all 0.3s ease;
}
.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: none
}

.recording-indicator {
    display: none;
    color: #e74c3c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.audio-example {
    font-style: italic;
    color: var(--light-text);
}
.step-subttile {
    margin-top: -1.2rem;
}



/**
 * ---------------------------------------------------
 * ETAPA - RESULTADO
 * ---------------------------------------------------
 */
.result-container {
    display: none;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}
.result-card {
    background: linear-gradient(179deg, #0e7059 0%, #0c614c 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}
.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}
.result-label {
    font-size: 1.2rem;
    opacity: 0.9;
}
.nutrition-info {
    background-color: rgba(108, 99, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.nutrition-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nutrition-item:last-child {
    border-bottom: none;
}

.nutrition-label {
    font-weight: 500;
}

.nutrition-value {
    font-weight: 600;
}




/**
 * ---------------------------------------------------
 * Estilos para o feedback da nutricionista
 * ---------------------------------------------------
 */
.nutritionist-feedback {
    margin-top: 2rem;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: fadeIn 0.8s ease;
}

.nutritionist-header {
    background: linear-gradient(135deg, #ff9f43 0%, #ff7e29 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.nutritionist-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nutritionist-info {
    margin-left: 1rem;
}

.nutritionist-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.nutritionist-title {
    font-size: 0.9rem;
    opacity: 0.9;
}

.message-container {
    padding: 2rem;
    position: relative;
}

.message-bubble {
    background-color: rgba(108, 99, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    border-top-left-radius: 0;
}

.message-bubble::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid rgba(108, 99, 255, 0.05);
    border-left: 10px solid transparent;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-text);
}

.message-text p {
    margin-bottom: 1rem;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-time {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 0.5rem;
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--light-text);
    border-radius: 50%;
    margin-right: 4px;
    animation: typingAnimation 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

@keyframes typingAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.result-cta h3 {
    color: #0d6953;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.result-cta p {
    font-size: 1.2rem;
    font-weight: 400;
}