/* assets/css/simples-nacional-calculo.css */
/* CSS ISOLADO - Apenas para Calculadora Simples Nacional */

/* ===================================
   CORES FINANCEIRAS SIMPLES NACIONAL
   ================================== */
:root {
    --primary: #27ae60;          /* Verde dinheiro */
    --secondary: #2ecc71;        /* Verde crescimento */
    --accent: #f1c40f;           /* Dourado riqueza */
    --light: #e8f5e8;            /* Fundo verde claro */
    --gradient: linear-gradient(135deg, #27ae60, #2ecc71);
    
    /* Cores específicas Simples */
    --simples-success: #27ae60;  /* Verde aprovação */
    --simples-warning: #f39c12;  /* Amarelo atenção */
    --simples-danger: #e74c3c;   /* Vermelho urgente */
    --simples-info: #3498db;     /* Azul informação */
}

/* ===================================
   SEÇÃO DA CALCULADORA SIMPLES NACIONAL
   ================================== */
.simples-calculator-section {
    margin-bottom: 3rem;
}

.simples-header {
    text-align: center;
    margin-bottom: 2rem;
}

.simples-header h1 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.simples-header p {
    font-size: 1.2rem;
    color: var(--secondary);
}

.simples-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.1);
    border: 1px solid var(--light);
}

.simples-inputs h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   DADOS BÁSICOS SIMPLES NACIONAL
   ================================== */
.simples-dados-basicos {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.simples-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.simples-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.simples-input-group label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.simples-input-group select,
.simples-input-group input {
    padding: 0.8rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.simples-input-group select:focus,
.simples-input-group input:focus {
    outline: none;
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.simples-money-input {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.simples-money-input:focus-within {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.simples-money-input span {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1rem;
    font-weight: bold;
    font-size: 1rem;
}

.simples-money-input input {
    border: none;
    padding: 0.8rem;
    flex: 1;
    font-size: 1rem;
    background: transparent;
}

.simples-money-input input:focus {
    outline: none;
    transform: none;
    box-shadow: none;
}

/* ===================================
   RESULTADO EM TEMPO REAL SIMPLES
   ================================== */
.simples-resultado-real-time {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.simples-resultado-real-time h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.simples-resultado-principal {
    background: var(--gradient);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    margin-bottom: 1.5rem;
}

.simples-faixa-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.simples-faixa-label {
    font-size: 1rem;
    opacity: 0.8;
}

.simples-faixa-value {
    font-size: 1.3rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
}

.simples-anexo-info {
    font-size: 0.9rem;
    opacity: 0.9;
}

.simples-aliquota-destaque {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.simples-aliquota-value {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.simples-percent {
    font-size: 1.8rem;
    opacity: 0.8;
}

.simples-limite-info {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Detalhamento Simples */
.simples-detalhamento {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--light);
    margin-bottom: 1.5rem;
}

.simples-detalhamento h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.simples-item-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.simples-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.simples-item:hover {
    transform: translateX(5px);
    background: #d5e7dd;
}

.simples-item.destaque {
    background: var(--primary);
    color: white;
    border-left-color: var(--secondary);
    font-weight: bold;
}

.simples-item.destaque:hover {
    background: var(--secondary);
}

.simples-item-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.simples-item.destaque .simples-item-label {
    color: white;
}

.simples-item-value {
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.simples-item.destaque .simples-item-value {
    color: white;
}

/* Informações do Anexo */
.simples-anexo-info-detalhada {
    background: #fef3c7;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--accent);
}

.simples-anexo-info-detalhada h4 {
    color: #d68910;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.simples-anexo-content p {
    margin: 0.5rem 0;
    color: #b7950b;
    font-size: 0.95rem;
}

.simples-anexo-content strong {
    color: #d68910;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO SIMPLES
   ================================== */
.simples-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.simples-explanation h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.simples-step {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.simples-step h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.simples-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

/* ===================================
   EXEMPLOS E AJUDA SIMPLES
   ================================== */
.simples-examples {
    text-align: center;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.simples-examples.hidden {
    display: none;
}

.simples-examples p {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.simples-example-btn {
    background: var(--light);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    margin: 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.simples-example-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.simples-help {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
}

.simples-help.hidden {
    display: none;
}

/* ===================================
   CONTEÚDO EDUCACIONAL SIMPLES
   ================================== */
.simples-educational-content {
    margin-top: 3rem;
}

.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 var(--light);
}

.simples-content-block h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.simples-content-block h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.simples-content-block p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.simples-content-block strong {
    color: var(--primary);
}

/* Formula Display Simples */
.simples-formula-display {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.simples-formula-display h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.simples-formula-display .formula p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Grids Exemplos e Dicas Simples */
.simples-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.simples-example-item {
    background: var(--light);
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.simples-example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.simples-example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.simples-example-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.simples-example-item p {
    color: var(--secondary);
    font-size: 0.95rem;
    margin: 0;
}

.simples-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.simples-tip-item {
    background: #fef3c7;
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.simples-tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.simples-tip-item h4 {
    color: #d68910;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.simples-tip-item p {
    color: #b7950b;
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================
   TABELA DE FAIXAS SIMPLES
   ================================== */
.simples-tabela-container {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.simples-tabela-container h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.simples-tabela-scroll {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.simples-tabela {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

.simples-tabela th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.simples-tabela td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--light);
    color: #2c3e50;
}

.simples-tabela tr:nth-child(even) {
    background: #f8f9fa;
}

.simples-tabela tr:hover {
    background: var(--light);
}

.simples-outras-tabelas {
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--light);
}

.simples-tabelas-resumo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.simples-tabela-resumo-item {
    padding: 0.8rem;
    background: var(--light);
    border-radius: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    border-left: 4px solid var(--primary);
}

/* Exemplo de Solução Simples */
.simples-example-solution {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.simples-example-solution h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.simples-solution-step {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.simples-solution-step h5 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.simples-solution-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

.simples-solution-final {
    background: var(--primary);
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.simples-solution-final h5 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.simples-solution-final p {
    margin: 0;
    font-family: inherit;
}

/* ===================================
   FAQ SIMPLES
   ================================== */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    background: var(--light);
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.1);
}

.faq-question {
    background: var(--primary);
    color: white;
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    display: block;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--secondary);
}

.faq-question::before {
    content: "▼ ";
    font-size: 0.8rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::before {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid var(--light);
}

.faq-answer p {
    margin: 0.5rem 0;
    color: #444;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--primary);
}

/* ===================================
   REFERÊNCIAS SIMPLES
   ================================== */
.referencias-container {
    margin-top: 1.5rem;
}

.referencias-lista {
    list-style: none;
    padding: 0;
}

.referencia-item {
    background: var(--light);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    font-size: 0.95rem;
    color: #444;
    transition: all 0.3s ease;
}

.referencia-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.1);
}

.referencia-item em {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   CREDIBILIDADE SIMPLES
   ================================== */
.credibilidade-container {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    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;
    margin: 0;
    font-weight: bold;
}

.credibilidade-content {
    font-size: 1.1rem;
    color: var(--secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.credibilidade-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: var(--primary);
    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: var(--secondary);
    transform: translateY(-2px);
}

/* ===================================
   ANIMAÇÕES SIMPLES
   ================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   FUNDAMENTAÇÃO LEGAL SIMPLES (PRESERVADA)
   ================================== */
.simples-detailed-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 2px solid var(--primary);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.simples-detailed-explanation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
}

.simples-legal-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.simples-legal-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.simples-legal-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.simples-legal-item {
    margin-bottom: 1rem;
}

.simples-legal-artigo {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.simples-legal-content {
    padding-left: 1rem;
}

.simples-legal-content > p {
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.simples-calculo-detalhe {
    background: var(--light);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.8rem;
}

.simples-calculo-detalhe p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

.simples-legal-footer {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
}

.simples-legal-footer p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* ===================================
   BOTÃO RESET SIMPLES
   ================================== */
.simples-reset-button {
    background: var(--simples-danger);
    border: 2px solid #c0392b;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    margin: 1rem auto;
    display: block;
    width: fit-content;
}

.simples-reset-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* ===================================
   RESPONSIVIDADE SIMPLES
   ================================== */
@media (max-width: 1024px) {
    .simples-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .simples-faixa-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .simples-header h1 {
        font-size: 2rem;
    }
    
    .simples-container {
        padding: 1rem;
    }
    
    .simples-dados-basicos {
        padding: 1rem;
    }
    
    .simples-input-group {
        min-width: auto;
    }
    
    .simples-aliquota-value {
        font-size: 2.2rem;
    }
    
    .simples-examples-grid,
    .simples-tips-grid,
    .simples-tabelas-resumo {
        grid-template-columns: 1fr;
    }
    
    .simples-tabela {
        font-size: 0.8rem;
    }
    
    .simples-tabela th,
    .simples-tabela td {
        padding: 0.6rem 0.8rem;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .simples-header h1 {
        font-size: 1.8rem;
    }
    
    .simples-container {
        padding: 0.8rem;
    }
    
    .simples-dados-basicos {
        padding: 0.8rem;
    }
    
    .simples-aliquota-value {
        font-size: 2rem;
    }
    
    .simples-percent {
        font-size: 1.5rem;
    }
    
    .simples-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .simples-example-icon {
        font-size: 2rem;
    }
    
    .simples-tabela {
        font-size: 0.75rem;
    }
    
    .simples-tabela th,
    .simples-tabela td {
        padding: 0.5rem 0.6rem;
    }
    
    .credibilidade-badges {
        gap: 0.5rem;
    }
    
    .credibilidade-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}