/* assets/css/imc.css */
/* CSS COMPLETO - Calculadora de IMC - ÁREA BIOLÓGICA */

/* ===================================
   VARIÁVEIS DE CORES BIOLÓGICAS
   ================================== */
:root {
    --primary: #dc2626;          /* Vermelho médico */
    --secondary: #0ea5e9;        /* Azul hospitalar */
    --accent: #22c55e;           /* Verde saúde */
    --light: #fef2f2;            /* Fundo rosa claro */
    --gradient: linear-gradient(135deg, #dc2626, #0ea5e9);
    
    /* Cores complementares */
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0ea5e9;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border: #d1d5db;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
}

/* ===================================
   SEÇÃO DA CALCULADORA IMC
   ================================== */
.imc-calculator-section {
    margin-bottom: 3rem;
}

.imc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.imc-header h1 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.imc-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.imc-container {
    background: var(--white);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.1);
    border: 2px solid var(--light);
    transition: all 0.3s ease;
}

.imc-container:hover {
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
}

/* ===================================
   INPUTS IMC
   ================================== */
.imc-inputs h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.imc-dados-basicos {
    margin-bottom: 2rem;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.imc-dados-basicos:hover {
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.12);
}

.imc-input-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.imc-input-group {
    position: relative;
}

.imc-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.imc-input-group input,
.imc-input-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    padding-right: 3rem;
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-primary);
    box-sizing: border-box;
}

.imc-input-group input:focus,
.imc-input-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.imc-unit {
    position: absolute;
    right: 1rem;
    top: 2.45rem;
    color: var(--text-secondary);
    font-weight: 500;
    pointer-events: none;
}

/* Botões */
.imc-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.imc-calculate-btn,
.imc-clear-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.imc-calculate-btn {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.imc-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.imc-clear-btn {
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.imc-clear-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* ===================================
   RESULTADO IMC
   ================================== */
.imc-resultado {
    background: linear-gradient(135deg, var(--light), rgba(220, 38, 38, 0.05));
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.imc-resultado h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Display Visual do IMC */
.imc-display {
    text-align: center;
    margin-bottom: 2rem;
}

.imc-valor-principal {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.imc-numero {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

.imc-unidade {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 600;
}

.imc-classificacao {
    margin-top: 1rem;
}

.imc-badge {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--white);
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary);
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.2);
    border: 2px solid var(--primary);
}

/* Barra Visual de Classificação */
.imc-barra-visual {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.imc-barra-container {
    position: relative;
    height: 60px;
}

.imc-barra-ranges {
    display: flex;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.imc-range {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
}

.imc-range.abaixo {
    background: var(--secondary);
}

.imc-range.normal {
    background: var(--accent);
}

.imc-range.sobrepeso {
    background: var(--warning);
}

.imc-range.obesidade1 {
    background: #f59e0b;
}

.imc-range.obesidade2 {
    background: var(--primary);
}

.imc-range.obesidade3 {
    background: #991b1b;
}

.imc-pointer {
    position: absolute;
    top: -10px;
    transform: translateX(-50%);
    text-align: center;
    transition: left 0.5s ease;
}

.imc-pointer-arrow {
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 1;
}

.imc-pointer-value {
    background: var(--text-primary);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: -5px;
}

/* Análise Detalhada */
.imc-analise-detalhada {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border);
}

.imc-analise-detalhada h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.imc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.imc-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.imc-info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

.imc-info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.imc-info-value {
    font-weight: bold;
    color: var(--primary);
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
}

/* Recomendações */
.imc-recomendacoes {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    border: 2px solid var(--accent);
}

.imc-recomendacoes h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.imc-recomendacao-content {
    color: var(--text-primary);
    line-height: 1.7;
}

.imc-recomendacao-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.imc-recomendacao-content li {
    margin: 0.5rem 0;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO IMC
   ================================== */
.imc-explanation {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(59, 130, 246, 0.05));
    border: 2px solid var(--secondary);
    border-radius: 16px;
    animation: slideInUp 0.5s ease;
}

.imc-explanation h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.imc-step {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.imc-step:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(14, 165, 233, 0.1);
}

.imc-step h4 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.imc-step p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* ===================================
   EXEMPLOS E AJUDA IMC
   ================================== */
.imc-examples {
    text-align: center;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.imc-examples.hidden {
    display: none;
}

.imc-examples p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.imc-example-btn {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(59, 130, 246, 0.05));
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 0.8rem 1.5rem;
    margin: 0.4rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.imc-example-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.imc-help {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    border-radius: 12px;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.imc-help.hidden {
    display: none;
}

.imc-help p {
    margin: 0;
    color: var(--accent);
    font-weight: 500;
}

/* ===================================
   CONTEÚDO EDUCACIONAL IMC
   ================================== */
.imc-educational-content {
    margin-top: 4rem;
}

.imc-content-block {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--light);
    transition: all 0.3s ease;
}

.imc-content-block:hover {
    box-shadow: 0 10px 35px rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.imc-content-block h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.imc-content-block p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.imc-content-block strong {
    color: var(--primary);
    font-weight: 600;
}

/* Formula Display */
.imc-formula-display {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.imc-formula-display h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.imc-formula-display .formula p {
    margin: 0.8rem 0;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

/* Tabela OMS */
.imc-tabela-oms {
    overflow-x: auto;
    margin: 2rem 0;
}

.imc-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.imc-table thead {
    background: var(--primary);
    color: var(--white);
}

.imc-table th,
.imc-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border);
}

.imc-table tbody tr:hover {
    background: var(--light);
}

.imc-table tr.abaixo-peso {
    background: rgba(14, 165, 233, 0.1);
}

.imc-table tr.peso-normal {
    background: rgba(34, 197, 94, 0.1);
}

.imc-table tr.sobrepeso {
    background: rgba(217, 119, 6, 0.1);
}

.imc-table tr.obesidade-1 {
    background: rgba(245, 158, 11, 0.1);
}

.imc-table tr.obesidade-2 {
    background: rgba(220, 38, 38, 0.1);
}

.imc-table tr.obesidade-3 {
    background: rgba(153, 27, 27, 0.1);
}

/* Grids de Exemplos e Dicas */
.imc-examples-grid,
.imc-limitations-grid,
.imc-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.imc-example-item,
.imc-limitation-item,
.imc-tip-item {
    background: var(--gray-50);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.imc-example-item:hover,
.imc-limitation-item:hover,
.imc-tip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.1);
    border-color: var(--primary);
}

.imc-example-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.imc-example-item h4,
.imc-limitation-item h4,
.imc-tip-item h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.imc-example-item p,
.imc-limitation-item p,
.imc-tip-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Exemplo Prático */
.imc-exemplo-pratico {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.imc-exemplo-dados,
.imc-exemplo-calculo,
.imc-exemplo-interpretacao {
    background: var(--light);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.imc-exemplo-dados h4,
.imc-exemplo-calculo h4,
.imc-exemplo-interpretacao h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.imc-exemplo-dados ul,
.imc-exemplo-calculo ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.imc-exemplo-dados li,
.imc-exemplo-calculo li {
    margin: 0.8rem 0;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===================================
   FAQ, CREDIBILIDADE E REFERÊNCIAS
   ================================== */
.content-block {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--light);
    transition: all 0.3s ease;
}

.content-block:hover {
    box-shadow: 0 10px 35px rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.content-block h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 0.8rem;
    font-weight: 600;
}

/* FAQ Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.1);
}

.faq-item[open] {
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
}

.faq-question {
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question:hover {
    background: #b91c1c;
}

.faq-question::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1.5rem;
    background: var(--white);
}

.faq-answer p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer strong {
    color: var(--primary);
    font-weight: 600;
}

/* Credibilidade Styles */
.credibilidade-container {
    background: linear-gradient(135deg, var(--light), rgba(220, 38, 38, 0.05));
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.credibilidade-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.credibilidade-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.credibilidade-title {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.credibilidade-content {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.credibilidade-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.2);
}

/* Referências Styles */
.referencias-container {
    margin-top: 1.5rem;
}

.referencias-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.referencia-item {
    background: var(--light);
    border-left: 4px solid var(--primary);
    padding: 1.2rem 1.5rem;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.referencia-item:hover {
    background: rgba(220, 38, 38, 0.08);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

.referencia-item::before {
    content: "📖";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.referencia-item em {
    color: var(--primary);
    font-weight: 600;
}

/* ===== SUPORTE PARA CARDS DINÂMICOS DO JAVASCRIPT ===== */
.calc-explanation,
.calc-legal {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 1.5rem 0;
    animation: slideInUp 0.5s ease;
}

.calc-explanation h3,
.calc-legal h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.calc-explanation h4,
.calc-legal h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.calc-explanation p,
.calc-legal p {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.calc-explanation strong,
.calc-legal strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   FUNDAMENTAÇÃO CIENTÍFICA IMC - VERSÃO MELHORADA
   ================================== */
.imc-detailed-explanation {
    margin-top: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    animation: slideInUp 0.5s ease;
}

.imc-detailed-explanation h3 {
    text-align: center;
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 15px;
    border: 2px solid var(--primary);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
}

.imc-scientific-container {
    display: grid;
    gap: 2rem;
}

/* Seções Científicas - Cards Coloridos */
.imc-scientific-section {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
}

.imc-scientific-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Cabeçalhos das Seções com Ícones e Cores */
.imc-scientific-section h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--white);
    margin: -2rem -2rem 1.5rem -2rem;
    padding: 1.5rem 2rem;
    border-radius: 15px 15px 0 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Cores específicas para cada seção usando cores biológicas */
.imc-scientific-section:nth-child(1) h4 {
    background: var(--gradient);
}

.imc-scientific-section:nth-child(2) h4 {
    background: linear-gradient(135deg, var(--accent), #16a34a);
}

.imc-scientific-section:nth-child(3) h4 {
    background: linear-gradient(135deg, var(--secondary), #0369a1);
}

.imc-scientific-section:nth-child(4) h4 {
    background: linear-gradient(135deg, var(--warning), #ea580c);
}

/* Items Científicos - Layout Melhorado */
.imc-scientific-item {
    margin-bottom: 1.8rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.imc-scientific-item:hover {
    background: linear-gradient(135deg, var(--light), rgba(220, 38, 38, 0.05));
    border-color: var(--primary);
    transform: translateX(5px);
}

.imc-scientific-item:last-child {
    margin-bottom: 0;
}

/* Labels com Ícones */
.imc-scientific-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.imc-scientific-label::before {
    content: "🔬";
    font-size: 1.2rem;
}

/* Conteúdo Científico */
.imc-scientific-content {
    line-height: 1.7;
}

.imc-scientific-content p {
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.imc-scientific-content p:last-child {
    margin-bottom: 0;
}

.imc-scientific-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* Cálculo Detalhado - Destaque Especial */
.imc-calculation-detail {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.imc-calculation-detail h5 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.imc-calculation-detail h5::before {
    content: "🧮";
    font-size: 1.3rem;
}

.imc-calculation-detail p {
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

/* Tabela de Classificação - Visual Melhorado */
.imc-classification-table {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.classification-row {
    display: grid;
    grid-template-columns: 1.2fr 2.5fr 1.8fr 1fr;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border-radius: 10px;
    align-items: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.classification-row:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.classification-row.active {
    background: linear-gradient(135deg, var(--light), rgba(220, 38, 38, 0.05));
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.2);
    font-weight: 700;
    transform: scale(1.02);
}

.classification-row.active::before {
    content: "👉 ";
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Grid de Limitações - Cards Coloridos */
.imc-limitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.limitation-item {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.1);
    transition: all 0.3s ease;
}

.limitation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
}

.limitation-item h5 {
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.limitation-item h5::before {
    content: "⚠️";
    font-size: 1.2rem;
}

.limitation-item p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.limitation-item strong {
    color: var(--accent);
}

/* Footer Científico */
.imc-scientific-footer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(59, 130, 246, 0.05));
    border-radius: 12px;
    border: 2px solid var(--secondary);
    text-align: center;
}

.imc-scientific-footer p {
    margin-bottom: 0.8rem;
    color: var(--secondary);
    font-weight: 500;
}

.imc-scientific-footer p:last-child {
    margin-bottom: 0;
    font-weight: 600;
}

/* ===================================
   ANIMAÇÕES IMC
   ================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVIDADE IMC
   ================================== */
@media (max-width: 1024px) {
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .classification-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .imc-header h1 {
        font-size: 2rem;
    }
    
    .imc-container {
        padding: 1.5rem;
    }
    
    .imc-input-row {
        grid-template-columns: 1fr;
    }
    
    .imc-buttons {
        flex-direction: column;
    }
    
    .imc-calculate-btn,
    .imc-clear-btn {
        width: 100%;
    }
    
    .imc-numero {
        font-size: 3rem;
    }
    
    .imc-info-grid {
        grid-template-columns: 1fr;
    }
    
    .imc-table {
        font-size: 0.85rem;
    }
    
    .imc-table th,
    .imc-table td {
        padding: 0.5rem;
    }
    
    .imc-examples-grid,
    .imc-limitations-grid,
    .imc-tips-grid {
        grid-template-columns: 1fr;
    }
    
    .imc-exemplo-pratico {
        grid-template-columns: 1fr;
    }
    
    .imc-range span {
        font-size: 0.7rem;
    }

    .content-block {
        padding: 1.5rem;
    }

    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .imc-scientific-section h4 {
        margin: -1.5rem -1.5rem 1rem -1.5rem;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .imc-header h1 {
        font-size: 1.8rem;
    }
    
    .imc-container {
        padding: 1rem;
    }
    
    .imc-dados-basicos {
        padding: 1rem;
    }
    
    .imc-numero {
        font-size: 2.5rem;
    }

    .content-block {
        padding: 1rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 1rem;
    }

    .credibilidade-container {
        padding: 1.5rem;
    }

    .credibilidade-badges {
        gap: 0.5rem;
    }

    .credibilidade-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .imc-scientific-section {
        padding: 1.5rem;
    }
}