/* ===================================================================
   CALCULADORA CLT vs PJ - Calculadora Física Real
   =================================================================== */

/* ===== SEÇÃO PRINCIPAL ===== */
.calculadora-section {
    padding: 120px 0 80px 0;
    background-color: #ebeef1;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== HEADER DA CALCULADORA ===== */
.calculadora-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calculadora-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.calculadora-header p {
    color: #6e6e73;
    font-size: 1.125rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== CALCULADORA FÍSICA ===== */
.calculadora-fisica {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5ea;
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.calc-marca {
    text-align: center;
    color: #8e8e93;
    font-size: 0.688rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

/* ===== DISPLAY LCD ===== */
.calc-display {
    background: #f9f9fb;
    border: 2px solid #e5e5ea;
    border-radius: 8px;
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    position: relative;
}

.display-label {
    font-size: 0.625rem;
    color: #8e8e93;
    font-weight: 600;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.display-valor {
    width: 100%;
    background: transparent;
    border: none;
    color: #1d1d1f;
    font-size: 2rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Mono', monospace;
    text-align: right;
    letter-spacing: 1px;
    outline: none;
    cursor: default;
}

/* ===== TECLADO NUMÉRICO ===== */
.calc-teclado {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calc-btn {
    background: #f5f5f7;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    padding: 1rem 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.calc-btn:hover {
    background: #e8e8ed;
    border-color: #c7c7cc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.calc-btn:active {
    transform: scale(0.96);
    background: #d1d1d6;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botões especiais */
.btn-limpar {
    background: #ffebee;
    color: #c62828;
    border-color: #ef9a9a;
    grid-column: span 1;
}

.btn-limpar:hover {
    background: #ffcdd2;
    border-color: #e57373;
}

.btn-apagar {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffcc80;
}

.btn-apagar:hover {
    background: #ffe0b2;
    border-color: #ffb74d;
}

/* Botão 0 largo */
.calc-btn[data-valor="0"] {
    grid-column: 1 / 3;
}

/* Botão Calcular Principal */
#formCalculadora {
    grid-column: 1 / 5;
    margin-top: 0.75rem;
}

.btn-calcular-principal {
    background: #007aff;
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    transition: all 0.2s ease;
}

.btn-calcular-principal:hover {
    background: #0051d5;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
    transform: translateY(-1px);
}

.btn-calcular-principal:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 122, 255, 0.3);
}

/* ===== INSTRUÇÕES ===== */
.calc-instrucoes {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.calc-instrucoes p {
    margin: 0;
    color: #6e6e73;
    font-size: 0.938rem;
}

.calc-instrucoes strong {
    color: #34c759;
    font-weight: 700;
}

/* ===== ÁREA DE RESULTADOS ===== */
.resultado-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #d1d1d6;
}

.resultado-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.resultado-header .text-muted {
    color: #6e6e73;
    font-size: 1rem;
}

.resultado-header .text-muted strong {
    color: #34c759;
    font-family: 'Courier New', monospace;
}

/* ===== CARDS DE RESULTADO ===== */
.resultado-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5ea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resultado-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Indicador de regime (CLT/PJ) */
.regime-badge {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.regime-badge.clt {
    background: linear-gradient(135deg, #0c63d1 0%, #084a9e 100%);
    color: #ffffff;
}

.regime-badge.pj {
    background: linear-gradient(135deg, #3ef47c 0%, #2bc765 100%);
    color: #1d1d1f;
}

/* Salário Bruto (Display Superior) */
.salario-bruto {
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #e5e5ea;
}

.salario-bruto strong {
    font-size: 1.25rem;
    color: #34c759;
}

/* Títulos de seção */
.h5-strong {
    color: #1d1d1f;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e5ea;
}

/* Itens de desconto/imposto */
.desconto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f2;
    transition: background-color 0.2s ease;
}

.desconto-item:hover {
    background-color: #f9f9fb;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 6px;
}

.desconto-item:last-child {
    border-bottom: none;
}

.desconto-label {
    color: #424245;
    font-weight: 500;
    font-size: 0.938rem;
}

.desconto-valor {
    font-weight: 700;
    color: #d1345b;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

/* Total de descontos (destaque) */
.total-descontos {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe5ec 100%);
    border-radius: 10px;
    padding: 0.75rem;
    margin: 1rem 0;
    border: 1px solid #ffd6e0;
}

.total-descontos .desconto-item {
    border-bottom: none;
    padding: 0.5rem 0;
}

.total-descontos .desconto-label,
.total-descontos .desconto-valor {
    font-size: 1.063rem;
}

/* Valor líquido (Display Principal) */
.salario-liquido {
    background: linear-gradient(135deg, #d4f4dd 0%, #b8f2c3 100%);
    padding: 1.75rem;
    border-radius: 14px;
    text-align: center;
    margin-top: 1.5rem;
    box-shadow: 0 4px 16px rgba(21, 128, 61, 0.15);
    border: 1px solid rgba(21, 128, 61, 0.1);
}

.salario-liquido-label {
    font-size: 0.813rem;
    font-weight: 700;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

.salario-liquido-valor {
    font-size: 2.5rem;
    font-weight: 800;
    color: #15803d;
    font-family: 'Courier New', monospace;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(21, 128, 61, 0.1);
}

/* Seção de benefícios */
.beneficios-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 1px solid #bae6fd;
}

.beneficios-title {
    font-weight: 700;
    color: #0369a1;
    font-size: 0.938rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.beneficio-item {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(186, 230, 253, 0.5);
    font-size: 0.938rem;
}

.beneficio-item:last-child {
    border-bottom: none;
}

.beneficio-item span {
    color: #075985;
    font-weight: 500;
}

.beneficio-item strong {
    font-family: 'Courier New', monospace;
}

/* Benefícios PJ (estilo alternativo) */
.beneficios-pj {
    background: linear-gradient(135deg, #fef3f2 0%, #fee2e2 100%);
    border: 1px solid #fecdd3;
    margin-top: 2.9rem;
}

.beneficios-pj .beneficios-title {
    color: #991b1b;
}

.list-beneficios-pj {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.875rem;
    color: #7f1d1d;
    list-style-type: disc;
}

.list-beneficios-pj li {
    padding: 0.375rem 0;
    font-weight: 500;
}

/* ===== COMPARAÇÃO FINAL ===== */
.comparacao-final {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5ea;
}

.comparacao-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.text-muted-small {
    color: #6e6e73;
    font-size: 1.063rem;
    margin-bottom: 0.75rem;
}

.diferenca-valor {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    letter-spacing: -1px;
    margin: 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.diferenca-valor.positiva {
    color: #3ef47c;
    animation: pulsePositive 2s ease-in-out infinite;
}

.diferenca-valor.negativa {
    color: #0c63d1;
}

@keyframes pulsePositive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.diferenca-percentual {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6e6e73;
    margin-top: 0.5rem;
}

/* ===== AVISO IMPORTANTE ===== */
.aviso-importante {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.aviso-importante h6 {
    color: #92400e;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aviso-importante ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #78350f;
    font-size: 0.938rem;
    line-height: 1.7;
}

.aviso-importante li {
    margin-bottom: 0.5rem;
}

/* ===== UTILITY CLASSES ===== */
.svg-inline {
    vertical-align: middle;
}

.text-accent-clt {
    color: #0c63d1;
}

.text-accent-pj {
    color: #3ef47c;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .calculadora-section {
        padding: 100px 0 60px 0;
    }
    
    .calculadora-header h1 {
        font-size: 2rem;
    }
    
    .resultado-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .calculadora-section {
        padding: 80px 0 40px 0;
    }
    
    .calculadora-header h1 {
        font-size: 1.75rem;
    }
    
    .calculadora-header p {
        font-size: 1rem;
    }
    
    .calculadora-fisica {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .display-valor {
        font-size: 1.75rem;
    }
    
    .calc-btn {
        padding: 0.875rem 0.5rem;
        font-size: 1.125rem;
    }
    
    .btn-calcular-principal {
        font-size: 1rem;
        padding: 0.875rem;
    }
    
    .salario-liquido-valor {
        font-size: 2rem;
    }
    
    .diferenca-valor {
        font-size: 2.25rem;
    }
    
    .resultado-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .calculadora-header h1 {
        font-size: 1.5rem;
    }
    
    .calculadora-fisica {
        padding: 1.25rem;
    }
    
    .display-valor {
        font-size: 1.5rem;
    }
    
    .calc-teclado {
        gap: 6px;
    }
    
    .calc-btn {
        padding: 0.75rem 0.5rem;
        font-size: 1rem;
    }
    
    .salario-liquido-valor {
        font-size: 1.75rem;
    }
    
    .diferenca-valor {
        font-size: 2rem;
    }
    
    .comparacao-final {
        padding: 1.75rem;
    }
}
