/* assets/css/juros-simples.css */
/* CSS ISOLADO - Apenas para Calculadora de Juros Simples */
/* CORES MATEMÁTICA FINANCEIRA APLICADAS */

/* ===================================
   SEÇÃO DA CALCULADORA JUROS SIMPLES
   ================================== */
.juros-simples-calculator-section {
    margin-bottom: 3rem;
}

.juros-simples-header {
    text-align: center;
    margin-bottom: 2rem;
}

.juros-simples-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.juros-simples-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
}

.juros-simples-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;
}

.juros-simples-inputs h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   SISTEMA DE ABAS ESPECÍFICO
   ================================== */
.juros-simples-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 1rem;
}

.juros-simples-tab-btn {
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    color: #5a6c7d;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 120px;
}

.juros-simples-tab-btn:hover {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
    transform: translateY(-2px);
}

.juros-simples-tab-btn.active {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-color: #2ecc71;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

/* ===================================
   CONTEÚDO DAS ABAS ESPECÍFICO
   ================================== */
.juros-simples-tab-content {
    display: none;
}

.juros-simples-tab-content.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   INPUTS HORIZONTAIS ESPECÍFICOS
   ================================== */
.juros-simples-inputs-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.juros-simples-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid #e0e6ed;
    transition: all 0.3s ease;
    text-align: center;
}

.juros-simples-input-group:hover {
    border-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.1);
}

.juros-simples-input-group:focus-within {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
    transform: translateY(-3px);
}

.juros-simples-input-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.juros-simples-input-group input {
    width: 120px;
    padding: 0.8rem;
    border: 2px solid #27ae60;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    background: white;
    transition: all 0.3s ease;
}

.juros-simples-input-group input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
    transform: scale(1.03);
    background: #e8f5e8;
}

.juros-simples-input-group input:valid:not(:placeholder-shown) {
    border-color: #2ecc71;
    background: #e8f5e8;
}

.juros-simples-input-group .unit {
    color: #5a6c7d;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.2rem;
}

/* ===================================
   FÓRMULA ESPECÍFICA
   ================================== */
.juros-simples-formula {
    background: #e8f5e8;
    border: 2px solid #27ae60;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ===================================
   RESULTADO ESPECÍFICO JUROS SIMPLES
   ================================== */
.juros-simples-result {
    background: #e8f5e8;
    border: 2px solid #2ecc71;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    animation: slideInResult 0.5s ease;
}

.juros-simples-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.2);
}

.juros-simples-result .result-icon {
    font-size: 2rem;
    color: #27ae60;
    flex-shrink: 0;
}

.juros-simples-result .result-content {
    flex: 1;
    text-align: center;
}

.juros-simples-result .result-content h4 {
    color: #27ae60;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.juros-simples-result .result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #27ae60;
    font-family: 'Courier New', monospace;
}

/* ===================================
   EXEMPLOS ESPECÍFICOS
   ================================== */
.juros-simples-examples {
    text-align: center;
    margin: 1.5rem 0;
}

.juros-simples-examples p {
    margin-bottom: 1rem;
    color: #5a6c7d;
}

.juros-simples-example-btn {
    background: #e8f5e8;
    border: 2px solid #27ae60;
    color: #27ae60;
    padding: 0.5rem 1rem;
    margin: 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.juros-simples-example-btn:hover {
    background: #27ae60;
    color: white;
    transform: translateY(-2px);
}

.juros-simples-example-btn:active {
    transform: scale(0.95);
}

/* ===================================
   AJUDA E DICAS ESPECÍFICAS
   ================================== */
.juros-simples-help {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #f1c40f;
}

/* ===================================
   RESULTADOS DETALHADOS ESPECÍFICOS
   ================================== */
.juros-simples-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e6ed;
}

.juros-simples-result-item {
    background: #e8f5e8;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.juros-simples-result-item.success {
    background: #e8f5e8;
    border-color: #2ecc71;
}

.juros-simples-step-solution {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #27ae60;
    margin-top: 1rem;
}

.juros-simples-step-solution p {
    margin: 0.8rem 0;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: #2c3e50;
}

/* ===================================
   CONTEÚDO EDUCACIONAL ESPECÍFICO
   ================================== */
.juros-simples-educational-content {
    margin-top: 3rem;
}

.juros-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;
}

.juros-simples-content-block h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #27ae60;
    padding-bottom: 0.5rem;
}

.juros-simples-content-block p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.juros-simples-content-block strong {
    color: #27ae60;
}

/* ===================================
   FÓRMULA DISPLAY ESPECÍFICO
   ================================== */
.juros-simples-formula-display {
    background: #e8f5e8;
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.juros-simples-formula-display h4 {
    color: #27ae60;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.juros-simples-formula-display .formula p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #2c3e50;
    font-weight: 600;
}

/* ===================================
   GRIDS ESPECÍFICOS JUROS SIMPLES
   ================================== */
.juros-simples-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.juros-simples-example-item {
    background: #e8f5e8;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.juros-simples-example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #27ae60;
}

.juros-simples-example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.juros-simples-example-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.juros-simples-example-item p {
    color: #5a6c7d;
    font-size: 0.95rem;
    margin: 0;
}

.juros-simples-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.juros-simples-tip-item {
    background: #fff3cd;
    border: 1px solid #f1c40f;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.juros-simples-tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #f1c40f;
}

.juros-simples-tip-item h4 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.juros-simples-tip-item p {
    color: #856404;
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================
   EXEMPLO DE SOLUÇÃO ESPECÍFICO
   ================================== */
.juros-simples-example-solution {
    background: #e8f5e8;
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.juros-simples-example-solution h4 {
    color: #27ae60;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.juros-simples-solution-step {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.juros-simples-solution-step h5 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.juros-simples-solution-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

.juros-simples-solution-final {
    background: #e8f5e8;
    border: 2px solid #2ecc71;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.juros-simples-solution-final h5 {
    color: #27ae60;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.juros-simples-solution-final p {
    color: #27ae60;
    margin: 0;
    font-family: inherit;
}

/* ===================================
   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);
}

/* ===================================
   ANIMAÇÕES ESPECÍFICAS
   ================================== */
@keyframes slideInResult {
    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 ESPECÍFICA
   ================================== */
@media (max-width: 768px) {
    .juros-simples-header h1 {
        font-size: 2rem;
    }
    
    .juros-simples-tabs {
        gap: 0.3rem;
    }
    
    .juros-simples-tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .juros-simples-inputs-horizontal {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .juros-simples-input-group {
        padding: 0.8rem;
    }
    
    .juros-simples-input-group input {
        width: 120px;
    }
    
    .juros-simples-result {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 1.2rem;
    }
    
    .juros-simples-examples-grid,
    .juros-simples-tips-grid {
        grid-template-columns: 1fr;
    }

    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .juros-simples-header h1 {
        font-size: 1.8rem;
    }
    
    .juros-simples-container {
        padding: 1rem;
    }
    
    .juros-simples-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .juros-simples-tab-btn {
        width: 200px;
    }
    
    .juros-simples-input-group input {
        width: 100px;
        font-size: 0.9rem;
    }
    
    .juros-simples-result {
        padding: 1rem;
    }
    
    .juros-simples-result .result-value {
        font-size: 1.2rem;
    }

    .content-block {
        padding: 1.5rem;
    }

    .faq-question {
        padding: 0.8rem 1rem;
    }

    .faq-answer {
        padding: 1rem;
    }

    .credibilidade-container {
        padding: 1.5rem;
    }
}

/* ===================================
   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.juros-simples-calculator-section .juros-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 */
.juros-simples-calculator-section {
    --primary: #27ae60;
    --primary-financeiro: #27ae60;
}