/* assets/css/mei-das-valor.css */
/* CSS ISOLADO - Apenas para Calculadora MEI DAS Valor */

/* ===================================
   CORES FINANCEIRAS MEI DAS
   ================================== */
: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 MEI */
    --mei-success: #27ae60;      /* Verde aprovação */
    --mei-warning: #f39c12;      /* Amarelo atenção */
    --mei-danger: #e74c3c;       /* Vermelho urgente */
    --mei-info: #3498db;         /* Azul informação */
}

/* ===================================
   SEÇÃO DA CALCULADORA MEI DAS
   ================================== */
.mei-calculator-section {
    margin-bottom: 3rem;
}

.mei-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mei-header h1 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.mei-header p {
    font-size: 1.2rem;
    color: var(--secondary);
}

.mei-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.1);
    border: 1px solid var(--light);
}

.mei-inputs h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   DADOS BÁSICOS MEI
   ================================== */
.mei-dados-basicos {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.mei-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.mei-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mei-input-group label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.mei-input-group select,
.mei-input-group input {
    padding: 0.8rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.mei-input-group select:focus,
.mei-input-group input:focus {
    outline: none;
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

/* ===================================
   RESULTADO EM TEMPO REAL MEI
   ================================== */
.mei-resultado-real-time {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.mei-resultado-real-time h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.mei-resultado-principal {
    background: var(--gradient);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
    margin-bottom: 1.5rem;
}

.mei-valor-destaque {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.mei-currency {
    font-size: 1.5rem;
    opacity: 0.8;
}

.mei-value {
    font-size: 2.8rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.mei-periodo {
    font-size: 1.2rem;
    opacity: 0.8;
}

.mei-atividade-info {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Detalhamento MEI */
.mei-detalhamento {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--light);
    margin-bottom: 1.5rem;
}

.mei-detalhamento h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.mei-item-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mei-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;
}

.mei-item:hover {
    transform: translateX(5px);
    background: #d5d8dc;
}

.mei-item.destaque {
    background: var(--primary);
    color: white;
    border-left-color: var(--secondary);
    font-weight: bold;
}

.mei-item.destaque:hover {
    background: var(--secondary);
}

.mei-item-label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.mei-item.destaque .mei-item-label {
    color: white;
}

.mei-item-value {
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.mei-item.destaque .mei-item-value {
    color: white;
}

/* Informações MEI */
.mei-informacoes {
    background: #dbeafe;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--mei-info);
}

.mei-informacoes h4 {
    color: var(--mei-info);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--mei-info);
    padding-bottom: 0.5rem;
}

.mei-info-content p {
    margin: 0.5rem 0;
    color: #1e40af;
    font-size: 0.95rem;
}

.mei-info-content strong {
    color: var(--mei-info);
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO MEI
   ================================== */
.mei-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.mei-explanation h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.mei-step {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.mei-step h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.mei-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

/* ===================================
   EXEMPLOS E AJUDA MEI
   ================================== */
.mei-examples {
    text-align: center;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.mei-examples.hidden {
    display: none;
}

.mei-examples p {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.mei-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;
}

.mei-example-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.mei-help {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
    border: 1px solid var(--mei-warning);
    transition: all 0.3s ease;
}

.mei-help.hidden {
    display: none;
}

/* ===================================
   CONTEÚDO EDUCACIONAL MEI
   ================================== */
.mei-educational-content {
    margin-top: 3rem;
}

.mei-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);
}

.mei-content-block h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.mei-content-block h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.mei-content-block p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.mei-content-block strong {
    color: var(--primary);
}

/* Formula Display MEI */
.mei-formula-display {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.mei-formula-display h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.mei-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 MEI */
.mei-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mei-example-item {
    background: var(--light);
    border: 1px solid #bdc3c7;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.mei-example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.mei-example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.mei-example-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.mei-example-item p {
    color: var(--secondary);
    font-size: 0.95rem;
    margin: 0;
}

.mei-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mei-tip-item {
    background: #dbeafe;
    border: 1px solid var(--mei-info);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.mei-tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mei-tip-item h4 {
    color: var(--mei-info);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.mei-tip-item p {
    color: #1e40af;
    margin: 0;
    font-size: 0.95rem;
}

/* Exemplo de Solução MEI */
.mei-example-solution {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.mei-example-solution h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.mei-solution-step {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.mei-solution-step h5 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.mei-solution-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

.mei-solution-final {
    background: var(--primary);
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.mei-solution-final h5 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.mei-solution-final p {
    margin: 0;
    font-family: inherit;
}

/* Consequências MEI */
.mei-consequencias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mei-consequencia-item {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.mei-consequencia-item.urgente {
    background: #fef2f2;
    border: 2px solid var(--mei-danger);
}

.mei-consequencia-item.importante {
    background: #fef3c7;
    border: 2px solid var(--mei-warning);
}

.mei-consequencia-item.atencao {
    background: #f3e8ff;
    border: 2px solid #9333ea;
}

.mei-consequencia-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.mei-consequencia-item h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.mei-consequencia-item.urgente h4 {
    color: var(--mei-danger);
}

.mei-consequencia-item.importante h4 {
    color: var(--mei-warning);
}

.mei-consequencia-item.atencao h4 {
    color: #9333ea;
}

.mei-solucao-destaque {
    background: #d1fae5;
    border: 2px solid var(--mei-success);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.mei-solucao-destaque h4 {
    color: var(--mei-success);
    margin-bottom: 1rem;
}

.mei-solucao-destaque p {
    color: #065f46;
    margin: 0;
    font-weight: 600;
}

/* ===================================
   FAQ MEI
   ================================== */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    background: var(--light);
    border: 1px solid #bdc3c7;
    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(44, 62, 80, 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 #ecf0f1;
}

.faq-answer p {
    margin: 0.5rem 0;
    color: #444;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--primary);
}

/* ===================================
   REFERÊNCIAS MEI
   ================================== */
.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(44, 62, 80, 0.1);
}

.referencia-item em {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   CREDIBILIDADE MEI
   ================================== */
.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 MEI
   ================================== */
@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 MEI (PRESERVADA)
   ================================== */
.mei-detailed-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 2px solid var(--primary);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.mei-detailed-explanation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
}

.mei-legal-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mei-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);
}

.mei-legal-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.mei-legal-item {
    margin-bottom: 1rem;
}

.mei-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;
}

.mei-legal-content {
    padding-left: 1rem;
}

.mei-legal-content > p {
    color: var(--secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.mei-calculo-detalhe {
    background: var(--light);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.8rem;
}

.mei-calculo-detalhe p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

.mei-legal-footer {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
}

.mei-legal-footer p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* ===================================
   BOTÃO RESET MEI
   ================================== */
.mei-reset-button {
    background: var(--mei-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;
}

.mei-reset-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* ===================================
   RESPONSIVIDADE MEI
   ================================== */
@media (max-width: 1024px) {
    .mei-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .mei-header h1 {
        font-size: 2rem;
    }
    
    .mei-container {
        padding: 1rem;
    }
    
    .mei-dados-basicos {
        padding: 1rem;
    }
    
    .mei-input-group {
        min-width: auto;
    }
    
    .mei-value {
        font-size: 2.2rem;
    }
    
    .mei-examples-grid,
    .mei-tips-grid,
    .mei-consequencias-grid {
        grid-template-columns: 1fr;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .mei-header h1 {
        font-size: 1.8rem;
    }
    
    .mei-container {
        padding: 0.8rem;
    }
    
    .mei-dados-basicos {
        padding: 0.8rem;
    }
    
    .mei-value {
        font-size: 2rem;
    }
    
    .mei-currency {
        font-size: 1.3rem;
    }
    
    .mei-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .mei-example-icon {
        font-size: 2rem;
    }
    
    .credibilidade-badges {
        gap: 0.5rem;
    }
    
    .credibilidade-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}