:root {
    --primary-navy: #002d58;
    --vibrant-cyan: #00b8d4;
    --medical-blue: #f0f7ff;
    --text-main: #1a1a1a;
    --text-muted: #64748b;
    --white: #ffffff;
    --grad: linear-gradient(135deg, #002d58 0%, #0056b3 100%);
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body { 
    font-family: 'Outfit', sans-serif; 
    background-color: var(--medical-blue); 
    color: var(--text-main); 
    margin: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    height: 100vh;
}

.app-container { 
    width: 100%; 
    max-width: 480px; 
    height: 90vh;
    background: var(--white); 
    display: flex; 
    flex-direction: column; 
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 45, 88, 0.1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.8);
}

/* Barra de Progresso Vibrante */
.progress-container { height: 6px; background: #e2e8f0; width: 100%; }
.progress-bar { 
    height: 100%; 
    background: var(--vibrant-cyan); 
    width: 0%; 
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 0 10px rgba(0, 184, 212, 0.4);
}

/* Chat e Mensagens */
.chat-window { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }

.message { 
    padding: 16px 20px; 
    border-radius: 24px; 
    max-width: 85%; 
    font-size: 1.05rem;
    line-height: 1.5;
    animation: slideUp 0.4s ease-out;
}

.bot-msg { 
    background: var(--medical-blue); 
    color: var(--primary-navy);
    border-bottom-left-radius: 4px;
    font-weight: 400;
}

.user-msg { 
    background: var(--grad); 
    color: white; 
    align-self: flex-end; 
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 45, 88, 0.2);
}

.typing { 
    font-size: 0.85rem; 
    color: var(--vibrant-cyan); 
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Opções de Resposta */
.chat-controls { padding: 20px; background: #fff; border-top: 1px solid #f1f5f9; }
.btn-option { 
    background: var(--white); 
    border: 2px solid #e2e8f0; 
    padding: 14px 20px; 
    border-radius: 16px; 
    margin-bottom: 10px; 
    cursor: pointer; 
    transition: 0.3s; 
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    width: 100%;
    text-align: left;
    color: var(--primary-navy);
    font-weight: 500;
}

.btn-option:hover { 
    border-color: var(--vibrant-cyan); 
    background: var(--medical-blue);
    transform: translateY(-2px);
}

/* Resultado Final Premium */
.result-box { padding: 32px; text-align: left; animation: fadeIn 0.8s ease; }
.safety-badge { 
    background: #ccfbf1; 
    color: #0d9488; 
    padding: 6px 14px; 
    border-radius: 100px; 
    font-size: 0.8rem; 
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}

h2 { font-size: 1.8rem; color: var(--primary-navy); margin-bottom: 24px; letter-spacing: -0.5px; }

.clinical-footer { 
    margin-top: 40px; 
    padding: 24px; 
    background: var(--medical-blue); 
    border-radius: 20px;
    text-align: center;
}

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

.hidden { display: none !important; }

/* Novos estilos para a Conduta */
.profile-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--medical-blue);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid var(--vibrant-cyan);
}

.routine-section {
    margin-top: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.routine-item {
    margin-bottom: 8px;
    padding-left: 5px;
}

/* Estilo para os passos didáticos */
.step-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--vibrant-cyan);
    background: var(--medical-blue);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    display: inline-block;
    border: 1px solid rgba(0, 184, 212, 0.2);
}

.routine-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}
