/* assets/css/desconto-simples.css */
/* CSS ISOLADO - Apenas para Calculadora de Desconto Simples */
/* CORES MATEMÁTICA FINANCEIRA APLICADAS */

/* ===================================
   SEÇÃO DA CALCULADORA DESCONTO SIMPLES
   ================================== */
.desconto-simples-calculator-section {
    margin-bottom: 3rem;
}

.desconto-simples-header {
    text-align: center;
    margin-bottom: 2rem;
}

.desconto-simples-header h1 {
    color: #27ae60;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.desconto-simples-subtitle {
    color: #424242;
    font-size: 1.2rem;
    margin: 0;
}

/* ===================================
   CALCULADORA
   ================================== */
.desconto-simples-calculator {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(39, 174, 96, 0.1);
    border: 2px solid #e8f5e8;
}

.desconto-simples-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.desconto-simples-inputs .input-group {
    display: flex;
    flex-direction: column;
}

.desconto-simples-inputs label {
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.desconto-simples-inputs input,
.desconto-simples-inputs select {
    padding: 0.75rem;
    border: 2px solid #2ecc71;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.desconto-simples-inputs input:focus,
.desconto-simples-inputs select:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* ===================================
   BOTÕES
   ================================== */
.desconto-simples-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-calcular {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-calcular:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.btn-limpar {
    background: #757575;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-limpar:hover {
    background: #616161;
    transform: translateY(-2px);
}

/* ===================================
   RESULTADO
   ================================== */
.desconto-simples-resultado {
    background: linear-gradient(135deg, #e8f5e8, #ffffff);
    border: 2px solid #2ecc71;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.desconto-simples-resultado h3 {
    color: #27ae60;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.resultado-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.resultado-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #f1c40f;
    transition: transform 0.3s ease;
}

.resultado-card:hover {
    transform: translateY(-3px);
}

.resultado-card.principal {
    border-color: #2ecc71;
    background: linear-gradient(135deg, #e8f5e8, #ffffff);
}

.resultado-label {
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.resultado-valor {
    color: #27ae60;
    font-size: 1.8rem;
    font-weight: 700;
}

.resultado-card.principal .resultado-valor {
    font-size: 2.2rem;
}

/* ===================================
   EXPLICAÇÃO
   ================================== */
.desconto-simples-explanation {
    background: linear-gradient(135deg, #fff3cd, #fce4ec);
    border: 2px solid #f1c40f;
    border-radius: 15px;
    padding: 0.5rem;
    margin-bottom: 2rem;
}

.desconto-simples-explanation h3 {
    color: #f39c12;
    margin-bottom: 1rem;
    text-align: center;
}

#calculationSteps {
    color: #d68910;
    line-height: 1.6;
}

#calculationSteps .step {
    background: white;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    border-left: 4px solid #f1c40f;
}

/* ===================================
   EXEMPLOS
   ================================== */
.desconto-simples-examples-section {
    margin-bottom: 3rem;
}

.desconto-simples-examples-section h2 {
    color: #27ae60;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.example-card {
    background: linear-gradient(135deg, #e8f5e8, #2ecc71);
    border: 2px solid #27ae60;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(39, 174, 96, 0.2);
    border-color: #2ecc71;
}

.example-card h3 {
    color: #27ae60;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.example-card p {
    color: #424242;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* ===================================
   CONTEÚDO EDUCACIONAL
   ================================== */
.desconto-simples-educational-content {
    margin-bottom: 3rem;
}

.desconto-simples-content-block {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e6ed;
}

.desconto-simples-content-block h2 {
    color: #27ae60;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 3px solid #27ae60;
    padding-bottom: 0.5rem;
}

.desconto-simples-content-block h3 {
    color: #2ecc71;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.desconto-simples-content-block p {
    color: #424242;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.desconto-simples-content-block strong {
    color: #27ae60;
}

/* Grid de Conceitos */
.conceitos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.conceito-card {
    background: linear-gradient(135deg, #e8f5e8, #ffffff);
    border: 2px solid #2ecc71;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.conceito-card:hover {
    transform: translateY(-3px);
    border-color: #27ae60;
}

.conceito-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.conceito-card h4 {
    color: #27ae60;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.conceito-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Exemplo Prático */
.exemplo-pratico {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
    border: 2px solid #2ecc71;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.calculo-exemplo {
    margin-top: 1.5rem;
}

.calculo-exemplo h4 {
    color: #27ae60;
    margin-bottom: 1rem;
}

.calculo-exemplo ol {
    color: #27ae60;
    font-weight: 500;
}

.calculo-exemplo ol li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.resultado-exemplo {
    background: #2ecc71;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

/* Tipos de Desconto */
.tipos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tipo-card {
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 3px solid;
}

.tipo-card.comercial {
    background: linear-gradient(135deg, #e8f5e8, #ffffff);
    border-color: #27ae60;
}

.tipo-card.racional {
    background: linear-gradient(135deg, #fff3cd, #ffffff);
    border-color: #f1c40f;
}

.tipo-card h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tipo-card.comercial h4 {
    color: #27ae60;
}

.tipo-card.racional h4 {
    color: #f39c12;
}

.tipo-card .formula {
    background: #37474f;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.tipo-card p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* Grid de Fórmulas */
.formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.formula-card {
    background: linear-gradient(135deg, #e8f5e8, #ffffff);
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.formula-card h4 {
    color: #27ae60;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.formula {
    background: #27ae60;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.formula-card p {
    color: #2c3e50;
    font-size: 0.9rem;
    margin: 0.2rem 0;
    font-style: italic;
}

/* ===================================
   FAQ, REFERÊNCIAS E CREDIBILIDADE
   ================================== */

/* Containers dos novos elementos */
.content-block {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e6ed;
}

.content-block h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #27ae60;
    padding-bottom: 0.5rem;
}

/* FAQ Específico */
.faq-container {
    margin-top: 1rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #e8f5e8;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #27ae60;
    border: none;
    list-style: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #27ae60;
    color: white;
}

.faq-question::marker {
    display: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e0e6ed;
}

.faq-answer p {
    margin: 0.8rem 0;
    line-height: 1.6;
    color: #444;
}

.faq-answer strong {
    color: #27ae60;
}

/* Referências Específicas */
.referencias-container {
    margin-top: 1rem;
}

.referencias-lista {
    list-style: none;
    padding: 0;
}

.referencia-item {
    background: #e8f5e8;
    margin-bottom: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    transition: all 0.3s ease;
}

.referencia-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.1);
}

.referencia-item em {
    color: #27ae60;
    font-style: italic;
}

/* Credibilidade Específica */
.credibilidade-container {
    background: linear-gradient(135deg, #e8f5e8, #ffffff);
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.credibilidade-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.credibilidade-icon {
    font-size: 2rem;
    color: #27ae60;
}

.credibilidade-title {
    color: #27ae60;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.credibilidade-content {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
}

.credibilidade-logo {
    color: #27ae60;
    font-weight: 700;
    font-size: 1.1em;
}

.credibilidade-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.credibilidade-badge {
    background: #27ae60;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.credibilidade-badge:hover {
    background: #2ecc71;
    transform: translateY(-2px);
}

/* ===================================
   UTILITÁRIOS
   ================================== */
.hidden {
    display: none;
}

/* ===================================
   RESPONSIVIDADE
   ================================== */
@media (max-width: 768px) {
    .desconto-simples-header h1 {
        font-size: 2rem;
    }
    
    .desconto-simples-subtitle {
        font-size: 1rem;
    }
    
    .desconto-simples-calculator {
        padding: 1.5rem;
    }
    
    .desconto-simples-inputs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .desconto-simples-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-calcular,
    .btn-limpar {
        width: 100%;
        max-width: 300px;
    }
    
    .resultado-cards {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .conceitos-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .tipos-grid {
        grid-template-columns: 1fr;
    }
    
    .formulas-grid {
        grid-template-columns: 1fr;
    }

    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }

    .content-block {
        padding: 1.5rem;
    }

    .faq-question {
        padding: 0.8rem 1rem;
    }

    .faq-answer {
        padding: 1rem;
    }
}

/* ===================================
   SOBRESCREVER CSS BASE - TÍTULO
   ================================== */
/* Regra específica para sobrescrever o CSS base que usa !important */

/* Estratégia 1: Maior especificidade */
.main-container .content section.desconto-simples-calculator-section .desconto-simples-header h1 {
    color: #27ae60 !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(39, 174, 96, 0.2) !important;
}

/* Estratégia 2: Sobrescrever a variável CSS no contexto específico */
.desconto-simples-calculator-section {
    --primary: #27ae60;
    --primary-financeiro: #27ae60;
}