/* =========================================================
   SIMULADOR DE PRODUTIVIDADE
   Estilos exclusivos da ferramenta
   ========================================================= */

.productivity-input-section {
    margin-bottom: 24px;
}

.productivity-input-section h2 {
    margin-bottom: 8px;
}

.productivity-input-section .section-intro {
    margin-bottom: 22px;
}

/* =========================================================
   INTRODUÇÃO / ORIENTAÇÃO
   ========================================================= */

.productivity-intro {
    padding-top: 10px;
    padding-bottom: 35px;
}

.productivity-intro .tool-card {
    max-width: 1000px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.info-item {
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.info-item h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 17px;
}

.info-item p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

/* =========================================================
   DICA
   ========================================================= */

.productivity-tip {
    margin-top: 22px;
    padding: 16px 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    color: #1e40af;
    line-height: 1.6;
}

/* =========================================================
   CENÁRIOS
   ========================================================= */

.scenario-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.scenario-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.scenario-option:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.scenario-option input {
    margin-top: 4px;
    accent-color: #2563eb;
}

.scenario-option span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.scenario-option strong {
    color: #0f172a;
}

.scenario-option small {
    color: #64748b;
    line-height: 1.4;
}

/* =========================================================
   RESULTADO
   ========================================================= */

.result {
    display: none;
    margin-top: 28px;
}

.result.active {
    display: block;
}

.result-header {
    margin-bottom: 22px;
}

.result-header h2 {
    margin-bottom: 6px;
}

.result-header p {
    margin: 0;
    color: #64748b;
}

.result-total {
    padding: 28px;
    margin-bottom: 22px;
    text-align: center;
    background: linear-gradient(
        135deg,
        #eff6ff 0%,
        #ffffff 100%
    );
    border: 1px solid #bfdbfe;
    border-radius: 14px;
}

.result-total-label {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.result-total-value {
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
}

.result-total-note {
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
}

/* =========================================================
   CARDS DE RESUMO
   ========================================================= */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.summary-card {
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.summary-label {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.summary-value {
    color: #0f172a;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.summary-card small {
    display: block;
    margin-top: 6px;
    color: #64748b;
}

/* =========================================================
   COMPARAÇÃO
   ========================================================= */

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.comparison-card {
    padding: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.comparison-card.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.comparison-label {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 14px;
}

.comparison-card > strong {
    display: block;
    margin-bottom: 18px;
    color: #0f172a;
    font-size: 24px;
}

.comparison-metrics {
    display: grid;
    gap: 9px;
}

.comparison-metrics span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 14px;
}

.comparison-metrics b {
    color: #1e293b;
    font-weight: 700;
}

/* =========================================================
   GRÁFICO
   ========================================================= */

.chart-box {
    margin-bottom: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.chart-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.chart-box-header h3 {
    margin: 0;
    color: #0f172a;
}

.chart-box-header span {
    color: #64748b;
    font-size: 14px;
}

.time-chart {
    display: flex;
    width: 100%;
    min-height: 44px;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f5f9;
}

.chart-segment {
    min-width: 0;
    transition: flex-grow 0.25s ease;
}

.chart-segment-1 {
    background: #2563eb;
}

.chart-segment-2 {
    background: #60a5fa;
}

.chart-segment-3 {
    background: #f59e0b;
}

.chart-segment-4 {
    background: #f97316;
}

.chart-segment-5 {
    background: #8b5cf6;
}

.chart-segment-6 {
    background: #94a3b8;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 16px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 13px;
}

.legend-item i {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 3px;
}

.legend-item-1 i {
    background: #2563eb;
}

.legend-item-2 i {
    background: #60a5fa;
}

.legend-item-3 i {
    background: #f59e0b;
}

.legend-item-4 i {
    background: #f97316;
}

.legend-item-5 i {
    background: #8b5cf6;
}

.legend-item-6 i {
    background: #94a3b8;
}

/* =========================================================
   TABELA
   ========================================================= */

.result-section {
    margin-bottom: 24px;
}

.result-section h3 {
    margin-bottom: 18px;
}

/* =========================================================
   MEMÓRIA DE CÁLCULO
   ========================================================= */

.calculation-box {
    margin-bottom: 24px;
}

.calculation-box h3 {
    margin-bottom: 18px;
}

.calculation-item {
    padding: 13px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    line-height: 1.6;
}

.calculation-item:last-child {
    border-bottom: 0;
}

.calculation-title {
    display: block;
    margin-bottom: 3px;
    color: #0f172a;
    font-weight: 700;
}

/* =========================================================
   INFORMAÇÕES FINAIS
   ========================================================= */

.productivity-info {
    padding-top: 15px;
    padding-bottom: 35px;
}

.productivity-info .tool-card {
    max-width: 1000px;
    margin: 0 auto;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 1050px) {

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scenario-options,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .info-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .result-total {
        padding: 22px 16px;
    }

    .chart-box {
        padding: 18px;
    }

    .chart-box-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .time-chart {
        min-height: 36px;
    }

    .chart-legend {
        display: grid;
        grid-template-columns: 1fr;
    }

}

@media (max-width: 500px) {

    .scenario-option {
        padding: 15px;
    }

    .summary-card {
        padding: 17px;
    }

    .summary-value {
        font-size: 23px;
    }

}