/* Utilweb: Estilos para a Calculadora de 13º Salário */

.calculadora-header {
    text-align: center;
    margin-bottom: 35px;
}

.calculadora-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.calculadora-header p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 10px auto 0;
}

/* Estrutura de grid consistente para formulários */
.tool-form-grid {
    display: grid;
    grid-template-columns: 1fr; /* Padrão de 1 coluna para mobile */
    gap: 20px;
    border: none;
    padding: 0;
    margin-bottom: 10px;
}

/* Em telas maiores, aplica um grid de 3 colunas para esta ferramenta */
@media (min-width: 768px) {
    .tool-form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-full-width {
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    font-size: 1.1rem;
}

/* --- Seção de Resultados --- */
.results-header {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 25px;
}

.results-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-row span:last-child {
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
}

.breakdown-row.positive span:last-child {
    color: var(--accent-color);
}

.breakdown-row.negative span:last-child {
    color: #E53935;
}

body.dark-mode .breakdown-row.negative span:last-child {
    color: #EF5350;
}

.sub-breakdown {
    padding-left: 20px;
    border-left: 3px solid var(--border-color);
    margin: 5px 0 5px 10px;
}

.sub-breakdown .breakdown-row {
    padding: 8px 0;
    font-size: 0.95rem;
    border-bottom: none;
}

.results-divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 15px 0;
}

.results-summary-final {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.results-summary-final span:last-child {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.sr-only {
	border: 0 !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	-webkit-clip-path: inset(50%) !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
	white-space: nowrap !important;
}

@media (max-width: 767px) {
    .calculadora-header h1 {
        font-size: 2.1rem;
    }
}
