
/* ==========================================================
   SCENARIO COMPARISON
   Clean responsive layout
   ========================================================== */

html[lang="id"] .sc-lang-en {
    display: none !important;
}

html[lang="en"] .sc-lang-id {
    display: none !important;
}


/* ----------------------------------------------------------
   PAGE
   ---------------------------------------------------------- */

.sc-page {
    max-width: 1320px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.sc-page .calculator-heading {
    margin-bottom: 24px;
}


/* ----------------------------------------------------------
   SECTION
   ---------------------------------------------------------- */

.sc-section {
    background: #ffffff;
    border: 1px solid #ebe7f2;
    border-radius: 18px;
    padding: 24px;

    box-shadow:
        0 6px 24px rgba(35, 25, 55, 0.045);

    margin-bottom: 20px;
}

.sc-section h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 17px;
    font-weight: 700;
}

.sc-section-subtitle {
    margin-top: -8px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.65;
    color: #777080;
}


/* ----------------------------------------------------------
   METHOD + SHARED PARAMETERS
   ---------------------------------------------------------- */

.sc-setup-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 2fr);
    gap: 24px;
    align-items: start;
}

.sc-method-box,
.sc-base-box {
    min-width: 0;
}

.sc-method-box {
    padding-right: 24px;
    border-right: 1px solid #eeeaf3;
}


/* ----------------------------------------------------------
   SCENARIOS
   ---------------------------------------------------------- */

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

.sc-scenario-card {
    min-width: 0;

    background: #faf9fc;
    border: 1px solid #e9e5f0;
    border-radius: 16px;

    padding: 20px;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}

.sc-scenario-card:hover {
    transform: translateY(-1px);

    box-shadow:
        0 6px 18px rgba(45, 30, 70, 0.06);
}

.sc-scenario-title {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 5px 11px;
    margin-bottom: 18px;

    background: #f0ecf8;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 750;
    letter-spacing: .02em;

    color: #6047a6;
}


/* ----------------------------------------------------------
   INPUTS
   ---------------------------------------------------------- */

.sc-page .shiny-input-container {
    width: 100% !important;
    max-width: none !important;
}

.sc-page .form-group {
    margin-bottom: 16px;
}

.sc-page .control-label {
    display: block;
    min-height: 0;

    margin-bottom: 7px;

    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.45;

    color: #514b5b;
}

.sc-page input.form-control,
.sc-page select.form-control,
.sc-page .selectize-input {
    width: 100%;
    min-height: 40px;

    border-radius: 9px;
    border-color: #ded9e7;

    box-shadow: none;
}

.sc-page input.form-control:focus,
.sc-page .selectize-input.focus {
    border-color: #8c7abf;

    box-shadow:
        0 0 0 2px rgba(96, 71, 166, 0.08);
}


/* ----------------------------------------------------------
   ACTION
   ---------------------------------------------------------- */

.sc-action-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    margin-top: 20px;
}

.sc-action-row .btn-calculate {
    min-width: 220px;
}


/* ----------------------------------------------------------
   SUMMARY
   ---------------------------------------------------------- */

.sc-summary {
    background: #f7f5fb;
    border: 1px solid #ebe6f4;

    border-radius: 16px;

    padding: 21px 24px;

    margin-bottom: 20px;

    line-height: 1.75;

    color: #585160;
}

.sc-summary h3 {
    margin-top: 0;
    margin-bottom: 10px;

    font-size: 16px;
}


/* ----------------------------------------------------------
   RESULTS GRID
   ---------------------------------------------------------- */

.sc-results-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, 0.9fr);

    gap: 20px;

    align-items: stretch;
}


/* ----------------------------------------------------------
   TABLE
   ---------------------------------------------------------- */

.sc-table-wrap {
    background: #ffffff;
    border: 1px solid #ebe7f2;

    border-radius: 18px;

    padding: 22px;

    overflow-x: auto;
}

.sc-table-wrap h3 {
    margin-top: 0;
    margin-bottom: 18px;
}

.sc-table-wrap table {
    width: 100%;
    margin-bottom: 0;

    font-size: 13px;
}

.sc-table-wrap th {
    white-space: nowrap;

    font-size: 11.5px;
    font-weight: 700;

    color: #625b6e;
}

.sc-table-wrap td {
    vertical-align: middle;
}


/* ----------------------------------------------------------
   GRAPH
   ---------------------------------------------------------- */

.sc-plot-card {
    background: #ffffff;
    border: 1px solid #ebe7f2;

    border-radius: 18px;

    padding: 22px;

    min-width: 0;
}

.sc-plot-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}


/* ----------------------------------------------------------
   EXPLANATION
   ---------------------------------------------------------- */

.sc-help-card {
    margin-top: 20px;

    background: #faf9fc;
    border: 1px solid #eeeaf3;

    border-radius: 16px;

    padding: 22px 24px;
}

.sc-help-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.sc-help-card p {
    margin-bottom: 9px;

    font-size: 13px;
    line-height: 1.7;

    color: #686170;
}


/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 1100px) {

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

    .sc-results-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 850px) {

    .sc-setup-grid {
        grid-template-columns: 1fr;
    }

    .sc-method-box {
        padding-right: 0;
        padding-bottom: 20px;

        border-right: 0;
        border-bottom: 1px solid #eeeaf3;
    }
}


@media (max-width: 680px) {

    .sc-section {
        padding: 18px;
    }

    .sc-scenario-grid {
        grid-template-columns: 1fr;
    }

    .sc-scenario-card {
        padding: 17px;
    }

    .sc-action-row {
        justify-content: stretch;
    }

    .sc-action-row .btn-calculate {
        width: 100%;
    }

    .sc-table-wrap,
    .sc-plot-card {
        padding: 17px;
    }
}

