/* ===================================================================== */
/*                    💡 CALCULADORA DE ILUMINAÇÃO EM LUMENS                */
/* ===================================================================== */

/* ===================================
   VARIÁVEIS DE COR - ÁREA ARQUITETURA
   ================================== */
:root {
    --primary: #78716c;        /* Cinza estrutura */
    --secondary: #a3a3a3;      /* Prata material */
    --accent: #f59e0b;         /* Dourado detalhes */
    --light: #f8f7f4;          /* Fundo bege claro */
    --gradient: linear-gradient(135deg, #78716c, #a3a3a3);
    --danger: #dc2626;         /* Vermelho para alertas */
    --warning: #f59e0b;        /* Dourado para avisos */
    --success: #059669;        /* Verde para sucesso */
}

/* ===================================
   PREVENIR SCROLL HORIZONTAL
   ================================== */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.iluminacao-lumens-calculator-section,
.iluminacao-lumens-container,
.iluminacao-lumens-input-row,
.iluminacao-lumens-buttons,
.iluminacao-lumens-examples {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===================================
   LAYOUT PRINCIPAL
   ================================== */
.iluminacao-lumens-calculator-section {
    margin-bottom: 3rem;
}

.iluminacao-lumens-header {
    text-align: center;
    margin-bottom: 2rem;
}

.iluminacao-lumens-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.iluminacao-lumens-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.iluminacao-lumens-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
    overflow-x: hidden;
    max-width: 100%;
}

/* ===================================
   INPUTS E FORMULÁRIOS
   ================================== */
.iluminacao-lumens-dados-basicos,
.iluminacao-lumens-configuracoes {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.iluminacao-lumens-dados-basicos h3,
.iluminacao-lumens-configuracoes h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.iluminacao-lumens-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.iluminacao-lumens-input-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.iluminacao-lumens-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.iluminacao-lumens-input-group input,
.iluminacao-lumens-input-group select {
    width: 100%;
    padding: 0.8rem;
    padding-right: 3rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.iluminacao-lumens-input-group select {
    padding-right: 2rem;
}

.iluminacao-lumens-input-group input:focus,
.iluminacao-lumens-input-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(120, 113, 108, 0.1);
}

.iluminacao-lumens-unit {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-weight: 600;
    pointer-events: none;
    margin-top: 0.75rem;
}

/* ===================================
   BOTÕES
   ================================== */
.iluminacao-lumens-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.iluminacao-lumens-calculate-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.iluminacao-lumens-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(120, 113, 108, 0.3);
}

.iluminacao-lumens-clear-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.iluminacao-lumens-clear-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* ===================================
   BOTÕES DE EXEMPLOS
   ================================== */
.iluminacao-lumens-examples {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.iluminacao-lumens-example-btn {
    background: rgba(120, 113, 108, 0.1);
    color: var(--primary);
    border: 1px solid rgba(120, 113, 108, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.iluminacao-lumens-example-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* ===================================
   RESULTADO PRINCIPAL
   ================================== */
.iluminacao-lumens-resultado {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--accent);
    animation: fadeIn 0.8s ease;
}

.iluminacao-lumens-resultado h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--light);
    padding-bottom: 0.8rem;
}

.lumens-display {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.lumens-display .lumens-numero {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.lumens-display .lumens-texto {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.especificacoes-tecnicas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.especificacao-item {
    background: rgba(120, 113, 108, 0.05);
    border: 1px solid rgba(120, 113, 108, 0.2);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.especificacao-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.especificacao-item .valor {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent);
}

.especificacao-item .descricao {
    color: #5a6c7d;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.lampadas-recomendadas {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.lampadas-recomendadas h4 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.lampada-opcao {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.lampada-opcao:last-child {
    margin-bottom: 0;
}

.lampada-tipo {
    font-weight: 600;
    color: var(--primary);
}

.lampada-quantidade {
    color: var(--accent);
    font-weight: 500;
}

.lampada-potencia {
    color: var(--secondary);
    font-size: 0.9rem;
}

.lampada-consumo {
    color: var(--success);
    font-size: 0.9rem;
}

/* ===================================
   CARDS SEPARADOS PARA ADS - ESTILIZAÇÃO COMPLETA
   ================================== */
.explanation,
.calc-explanation,
.legal-explanation,
.calc-legal {
    background: white !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid rgba(120, 113, 108, 0.2) !important;
    border-left: 5px solid var(--primary) !important;
    transition: all 0.3s ease !important;
}

.explanation:hover,
.calc-explanation:hover,
.legal-explanation:hover,
.calc-legal:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}

.explanation h3,
.calc-explanation h3,
.legal-explanation h3,
.calc-legal h3 {
    color: var(--primary) !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    border-bottom: 2px solid var(--light) !important;
    padding-bottom: 0.8rem !important;
}

.explanation h4,
.calc-explanation h4,
.legal-explanation h4,
.calc-legal h4 {
    color: var(--secondary) !important;
    margin: 1.5rem 0 1rem 0 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.explanation h5,
.calc-explanation h5,
.legal-explanation h5,
.calc-legal h5 {
    color: var(--primary) !important;
    margin: 1rem 0 0.5rem 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.explanation p,
.calc-explanation p,
.legal-explanation p,
.calc-legal p {
    color: #5a6c7d !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
    font-size: 1rem !important;
}

/* ===================================
   ESTILIZAÇÃO ESPECÍFICA DOS DADOS FORNECIDOS
   ================================== */
.explanation .dados-fornecidos,
.calc-explanation .dados-fornecidos,
.legal-explanation .dados-fornecidos,
.calc-legal .dados-fornecidos {
    background: rgba(120, 113, 108, 0.05) !important;
    border-radius: 12px !important;
    padding: 1.8rem !important;
    margin: 1.5rem 0 !important;
    border: 2px solid rgba(120, 113, 108, 0.15) !important;
    border-left: 5px solid var(--primary) !important;
    box-shadow: inset 0 2px 8px rgba(120, 113, 108, 0.05) !important;
}

.explanation .dados-fornecidos p,
.calc-explanation .dados-fornecidos p,
.legal-explanation .dados-fornecidos p,
.calc-legal .dados-fornecidos p {
    margin: 0.8rem 0 !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    padding: 0.3rem 0 !important;
    border-bottom: 1px dotted rgba(120, 113, 108, 0.2) !important;
    display: block !important;
}

.explanation .dados-fornecidos p:last-child,
.calc-explanation .dados-fornecidos p:last-child,
.legal-explanation .dados-fornecidos p:last-child,
.calc-legal .dados-fornecidos p:last-child {
    border-bottom: none !important;
}

.explanation .dados-fornecidos strong,
.calc-explanation .dados-fornecidos strong,
.legal-explanation .dados-fornecidos strong,
.calc-legal .dados-fornecidos strong {
    color: var(--secondary) !important;
    font-weight: 700 !important;
}

/* ===================================
   ESTILIZAÇÃO ADICIONAL DOS CARDS EXPLICATIVOS
   ================================== */
.explanation ul,
.calc-explanation ul,
.legal-explanation ul,
.calc-legal ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1rem 0 !important;
}

.explanation li,
.calc-explanation li,
.legal-explanation li,
.calc-legal li {
    background: rgba(120, 113, 108, 0.03) !important;
    border-left: 3px solid var(--primary) !important;
    padding: 0.8rem 1rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 0 6px 6px 0 !important;
    color: #5a6c7d !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.explanation strong,
.calc-explanation strong,
.legal-explanation strong,
.calc-legal strong {
    color: var(--secondary) !important;
    font-weight: 600 !important;
}

.explanation em,
.calc-explanation em,
.legal-explanation em,
.calc-legal em {
    color: var(--primary) !important;
    font-style: normal !important;
    font-weight: 600 !important;
}

/* Estilização específica para divs com estilos inline nos cards */
.explanation div[style*="background"],
.calc-explanation div[style*="background"],
.legal-explanation div[style*="background"],
.calc-legal div[style*="background"] {
    border-radius: 8px !important;
    margin: 1rem 0 !important;
    padding: 1.2rem !important;
}

.explanation div[style*="background"] h4,
.calc-explanation div[style*="background"] h4,
.legal-explanation div[style*="background"] h4,
.calc-legal div[style*="background"] h4 {
    margin-bottom: 0.8rem !important;
    font-size: 1.1rem !important;
}

.explanation div[style*="background"] h5,
.calc-explanation div[style*="background"] h5,
.legal-explanation div[style*="background"] h5,
.calc-legal div[style*="background"] h5 {
    margin-bottom: 0.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/* Garantir que elementos com estilos inline sejam visíveis */
.explanation [style],
.calc-explanation [style],
.legal-explanation [style],
.calc-legal [style] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===================================
   FÓRMULAS DESTACADAS (PARA CARDS SEPARADOS)
   ================================== */
.calc-explanation .formula-highlight,
.calc-legal .formula-highlight,
.explanation .formula-highlight,
.legal-explanation .formula-highlight {
    background: linear-gradient(135deg, var(--light) 0%, rgba(120, 113, 108, 0.05) 100%);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-explanation .formula-highlight::before,
.calc-legal .formula-highlight::before,
.explanation .formula-highlight::before,
.legal-explanation .formula-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.formula-main {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ===================================
   CONTEÚDO EDUCACIONAL - VISUAL OBRIGATÓRIO
   ================================== */
/* Container educacional principal */
.educational-content {
    margin-top: 3rem;
}

.educational-content h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
}

/* Cards educacionais - ESSENCIAL para visual bonito */
.content-block {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.content-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.content-block h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-block h4 {
    color: #2c3e50;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.content-block p {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ===================================
   ELEMENTOS VISUAIS ESPECIAIS
   ================================== */
/* Destaque de fórmulas */
.formula-highlight {
    background: linear-gradient(135deg, var(--light) 0%, rgba(120, 113, 108, 0.08) 100%);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.formula-main {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.formula-highlight p {
    color: var(--secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Passos numerados */
.steps-list {
    margin: 1.5rem 0;
}

.step-item {
    background: rgba(120, 113, 108, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.step-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Grid de exemplos */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.example-item {
    background: rgba(120, 113, 108, 0.03);
    border: 1px solid rgba(120, 113, 108, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.example-item:hover {
    transform: translateY(-2px);
}

.example-calculation {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border: 1px solid #e0e6ed;
}

.example-calculation p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* Lista de dicas estilizada */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.tips-list li {
    background: rgba(120, 113, 108, 0.05);
    border: 1px solid rgba(120, 113, 108, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.tips-list li:hover {
    background: rgba(120, 113, 108, 0.08);
    transform: translateX(5px);
}

/* Grid de aplicações */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.application-item {
    background: linear-gradient(135deg, var(--light) 0%, rgba(120, 113, 108, 0.08) 100%);
    border: 1px solid var(--primary);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.application-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(120, 113, 108, 0.15);
}

.application-item h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* Referências */
.references-container {
    margin: 1.5rem 0;
}

.references-list {
    list-style: none;
    padding: 0;
}

.references-list li {
    background: rgba(120, 113, 108, 0.03);
    border-left: 3px solid var(--primary);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.references-list em {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   ANIMAÇÕES
   ================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.iluminacao-lumens-resultado {
    animation: fadeIn 0.8s ease;
}

.lumens-display {
    animation: pulse 2s infinite;
}

/* ===================================
   RESPONSIVIDADE
   ================================== */
@media (max-width: 768px) {
    .iluminacao-lumens-header h1 {
        font-size: 2rem;
    }
    
    .iluminacao-lumens-container {
        padding: 1.5rem;
    }
    
    .iluminacao-lumens-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .iluminacao-lumens-input-group {
        min-width: 100%;
    }
    
    .iluminacao-lumens-buttons,
    .iluminacao-lumens-examples {
        flex-direction: column;
        align-items: center;
    }
    
    .iluminacao-lumens-calculate-btn,
    .iluminacao-lumens-clear-btn,
    .iluminacao-lumens-example-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .especificacoes-tecnicas {
        grid-template-columns: 1fr;
    }
    
    .lampada-opcao {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .content-block {
        padding: 1.5rem;
    }
    
    .educational-content h2 {
        font-size: 1.5rem;
    }
    
    .calc-explanation,
    .explanation,
    .calc-legal,
    .legal-explanation {
        padding: 1.5rem;
    }
    
    .lumens-display .lumens-numero {
        font-size: 2rem;
    }
}