/* Utilweb: Estilos para a Calculadora de Salário Líquido v2.1 */

.tool-container-large { max-width: 900px; }
.calculadora-header { text-align: center; margin-bottom: 25px; }
.calculadora-header h1 { font-size: 2.5rem; line-height: 1.2; }
.calculadora-header p { font-size: 1.1rem; max-width: 700px; margin: 10px auto 0; color: var(--text-secondary-light); }

/* Abas */
.tabs { display: flex; border-bottom: 2px solid var(--border-color); margin-bottom: 25px; }
.tab-link { flex-grow: 1; text-align: center; padding: 12px 20px; cursor: pointer; border: none; background: none; font-size: 1rem; font-weight: 500; color: var(--text-secondary-light); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s ease-in-out; }
.tab-link.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.tab-content { display: none; padding-top: 10px; animation: fadeIn 0.5s; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Formulário */
.form-grid-salario { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; border: none; padding: 0; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }

/* Seção de Resultados */
.results-layout { display: grid; grid-template-columns: 1fr; gap: 35px; align-items: center; margin-top: 20px; }
@media (min-width: 768px) { .results-layout { grid-template-columns: 280px 1fr; } }

.chart-container { position: relative; max-width: 280px; height: 280px; margin: 0 auto; }

/* Legenda do Gráfico - NOVO */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--text-secondary-light);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.legend-color-box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}


.breakdown-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.breakdown-table td { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.breakdown-table tr:last-child td { border-bottom: none; }
.breakdown-table td:first-child { color: var(--text-secondary-light); }
.breakdown-table td:last-child { text-align: right; font-weight: 600; font-family: 'Roboto Mono', monospace; }
.breakdown-table .positive { color: var(--text-primary-light); }
.breakdown-table .negative { color: #E53935; }
.breakdown-table .final-result td { font-size: 1.4rem; font-weight: 700; border-top: 2px solid var(--text-primary-light); padding-top: 12px;}
.breakdown-table .final-result td:first-child { color: var(--text-primary-light); }
.breakdown-table .final-result td:last-child { color: var(--accent-color); }

/* Resultado da Aba Reversa */
.reverse-result-container { text-align: center; padding: 20px 0; }
.reverse-result-container .label { font-size: 1.1rem; color: var(--text-secondary-light); }
.reverse-result-container .value { font-size: 2.8rem; font-weight: 700; color: var(--primary-color); line-height: 1.1; margin-top: 10px; }