/*
|--------------------------------------------------------------------------
| NUMBER COUNTING FRONTEND
|--------------------------------------------------------------------------
*/

.nsc-frontend {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}


/*
|--------------------------------------------------------------------------
| DATE SECTION
|--------------------------------------------------------------------------
*/

.nsc-date-section {
    width: 100%;
    margin-bottom: 35px;
}


.nsc-date-selector-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}


.nsc-date-label {
    font-size: 17px;
    font-weight: 800;
    color: #222;
}


.nsc-date-selector {
    min-width: 210px;
    height: 46px;
    padding: 0 14px;

    border: 2px solid #222;
    border-radius: 9px;

    background: #fff;

    color: #222;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
    outline: none;
}


.nsc-date-selector:focus {
    border-color: #555;
}


/*
|--------------------------------------------------------------------------
| SELECTED DATE TITLE
|--------------------------------------------------------------------------
*/

.nsc-selected-date-title {
    text-align: center;
    margin: 12px 0 18px;

    font-size: 18px;
    color: #555;
}


.nsc-selected-date-title strong {
    color: #111;
}


/*
|--------------------------------------------------------------------------
| RESULT SCROLL
|--------------------------------------------------------------------------
*/

.nsc-result-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    padding: 8px 4px 18px;

    scrollbar-width: thin;
}


/*
|--------------------------------------------------------------------------
| RESULT ROW
|--------------------------------------------------------------------------
*/

.nsc-result-row {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    flex-wrap: nowrap;

    width: max-content;
    min-width: 100%;

    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| RESULT BOX
|--------------------------------------------------------------------------
*/

.nsc-result-box {
    width: 105px;
    min-width: 105px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    border: 2px solid rgba(0, 0, 0, 0.12);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.12);

    box-sizing: border-box;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.nsc-result-box:hover {
    transform: translateY(-4px);

    box-shadow:
        0 11px 24px rgba(0, 0, 0, 0.18);
}


.nsc-result-number {
    font-size: 28px;
    font-weight: 900;

    color: #111;

    letter-spacing: 1px;
}


/*
|--------------------------------------------------------------------------
| MULTI COLOR BOXES
|--------------------------------------------------------------------------
*/

.nsc-result-box.color-1 {
    background: #ffe2e2;
}


.nsc-result-box.color-2 {
    background: #e0f2ff;
}


.nsc-result-box.color-3 {
    background: #e3ffe8;
}


.nsc-result-box.color-4 {
    background: #fff0c7;
}


.nsc-result-box.color-5 {
    background: #eadfff;
}


.nsc-result-box.color-6 {
    background: #dff8f5;
}


.nsc-result-box.color-7 {
    background: #ffe5f3;
}


.nsc-result-box.color-8 {
    background: #e8e8ff;
}


/*
|--------------------------------------------------------------------------
| NO RESULTS
|--------------------------------------------------------------------------
*/

.nsc-no-results {
    width: 100%;
    padding: 22px;

    text-align: center;

    background: #f7f7f7;

    border: 1px solid #e1e1e1;
    border-radius: 10px;

    color: #777;

    box-sizing: border-box;
}


.nsc-no-date {
    padding: 12px 15px;

    background: #f7f7f7;

    border-radius: 8px;

    color: #777;
}


/*
|--------------------------------------------------------------------------
| COUNTING SECTION
|--------------------------------------------------------------------------
*/

.nsc-counting-section {
    width: 100%;
}


.nsc-counting-heading {
    text-align: center;

    margin-bottom: 24px;
}


.nsc-frontend-title {
    margin: 0 0 7px;

    font-size: 32px;
    line-height: 1.2;

    font-weight: 900;

    color: #111;
}


.nsc-cycle-info {
    margin-top: 5px;

    font-size: 14px;

    color: #666;
}


.nsc-cumulative-note {
    margin-top: 8px;

    font-size: 13px;

    color: #888;
}


/*
|--------------------------------------------------------------------------
| A / B GRID
|--------------------------------------------------------------------------
*/

.nsc-frontend-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 22px;
}


/*
|--------------------------------------------------------------------------
| SIDE CARD
|--------------------------------------------------------------------------
*/

.nsc-frontend-side {
    background: #fff;

    border-radius: 16px;

    border: 1px solid #e2e2e2;

    padding: 18px;

    box-sizing: border-box;

    box-shadow:
        0 7px 24px rgba(0, 0, 0, 0.07);
}


.nsc-a-side {
    border-top: 4px solid #333;
}


.nsc-b-side {
    border-top: 4px solid #777;
}


/*
|--------------------------------------------------------------------------
| SIDE HEADING
|--------------------------------------------------------------------------
*/

.nsc-side-heading {
    text-align: center;

    margin-bottom: 16px;
}


.nsc-side-heading h3 {
    margin: 0;

    font-size: 23px;

    font-weight: 900;

    color: #111;
}


/*
|--------------------------------------------------------------------------
| COUNTING LIST
|--------------------------------------------------------------------------
*/

.nsc-counting-list {
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| COUNTING ROW
|--------------------------------------------------------------------------
*/

.nsc-frontend-number {
    width: 100%;

    min-height: 54px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 8px 10px;

    margin-bottom: 9px;

    box-sizing: border-box;

    border: 1px solid #e2e2e2;

    border-radius: 10px;

    background: #fafafa;
}


.nsc-frontend-number:last-child {
    margin-bottom: 0;
}


/*
|--------------------------------------------------------------------------
| NUMBER LEFT
|--------------------------------------------------------------------------
*/

.nsc-number-left {
    display: flex;

    align-items: center;

    gap: 7px;

    white-space: nowrap;
}


.nsc-row-number {
    font-size: 17px;

    font-weight: 900;

    color: #111;
}


.nsc-equal {
    font-size: 17px;

    font-weight: 700;

    color: #777;
}


.nsc-triple {
    font-size: 17px;

    font-weight: 800;

    color: #333;
}


/*
|--------------------------------------------------------------------------
| COUNT BADGE
|--------------------------------------------------------------------------
*/

.nsc-count-badge {
    min-width: 42px;
    height: 36px;

    padding: 0 8px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    border-radius: 8px;

    background: #222;

    color: #fff;

    font-size: 17px;

    font-weight: 900;
}


.nsc-b-badge {
    background: #555;
}


/*
|--------------------------------------------------------------------------
| EMPTY
|--------------------------------------------------------------------------
*/

.nsc-frontend-empty {
    padding: 22px 10px;

    text-align: center;

    color: #777;

    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| SUMMARY
|--------------------------------------------------------------------------
*/

.nsc-frontend-summary {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 15px;

    margin-top: 22px;
}


.nsc-summary-card {
    min-height: 72px;

    padding: 14px 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    box-sizing: border-box;

    border-radius: 11px;

    border: 1px solid #e1e1e1;

    background: #fff;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.05);

    font-size: 15px;

    font-weight: 700;
}


.nsc-summary-card strong {
    font-size: 23px;

    font-weight: 900;

    color: #111;
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .nsc-frontend {
        padding: 15px;
    }


    .nsc-date-selector-wrap {
        flex-direction: column;

        gap: 8px;
    }


    .nsc-date-selector {
        width: 100%;

        max-width: 300px;
    }


    /*
     * Mobile पर boxes एक row में रहेंगे।
     * Horizontal scroll होगा।
     */

    .nsc-result-row {
        justify-content: flex-start;

        min-width: max-content;
    }


    .nsc-result-box {
        width: 90px;

        min-width: 90px;

        height: 64px;
    }


    .nsc-result-number {
        font-size: 24px;
    }


    .nsc-frontend-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .nsc-frontend-summary {
        grid-template-columns: 1fr;
    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 480px) {

    .nsc-frontend {
        padding: 10px;
    }


    .nsc-selected-date-title {
        font-size: 16px;
    }


    .nsc-result-row {
        gap: 10px;
    }


    .nsc-result-box {
        width: 78px;

        min-width: 78px;

        height: 56px;

        border-radius: 11px;
    }


    .nsc-result-number {
        font-size: 21px;
    }


    .nsc-frontend-title {
        font-size: 25px;
    }


    .nsc-frontend-side {
        padding: 12px;
    }


    .nsc-side-heading h3 {
        font-size: 21px;
    }


    .nsc-frontend-number {
        min-height: 48px;

        padding: 7px 9px;
    }


    .nsc-row-number,
    .nsc-equal,
    .nsc-triple {
        font-size: 15px;
    }


    .nsc-count-badge {
        min-width: 36px;

        height: 31px;

        font-size: 14px;
    }


    .nsc-summary-card {
        min-height: 62px;

        padding: 12px 14px;
    }


    .nsc-summary-card strong {
        font-size: 20px;
    }

}