/* =========================================================
   STUDENT RESULTS
========================================================= */

.em-student-results {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 25px 70px;
    box-sizing: border-box;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.em-results-header {
    margin-bottom: 30px;
}

.em-results-header h2 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.em-results-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   EMPTY / MESSAGE
========================================================= */

.em-results-message {
    padding: 55px 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   SUMMARY CARDS
========================================================= */

.em-results-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.em-result-summary-card {
    position: relative;

    min-height: 145px;
    padding: 30px 32px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f8fbff 100%
    );

    border: 1px solid #dfe7f2;
    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.06),
        0 2px 5px rgba(15, 23, 42, 0.03);

    box-sizing: border-box;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* Left accent */

.em-result-summary-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 24px;
    bottom: 24px;

    width: 5px;

    background: linear-gradient(
        180deg,
        #2563eb,
        #3b82f6
    );

    border-radius: 0 6px 6px 0;
}


/* Decorative glow */

.em-result-summary-card::after {
    content: "";

    position: absolute;

    width: 110px;
    height: 110px;

    right: -35px;
    top: -35px;

    background: rgba(37, 99, 235, 0.05);

    border-radius: 50%;
}


.em-result-summary-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 35px rgba(15, 23, 42, 0.09),
        0 3px 8px rgba(15, 23, 42, 0.04);
}


.em-result-summary-card span {
    position: relative;
    z-index: 2;

    margin-bottom: 10px;

    color: #64748b;

    font-size: 14px;
    font-weight: 650;

    letter-spacing: 0.1px;
}


.em-result-summary-card strong {
    position: relative;
    z-index: 2;

    color: #172033;

    font-size: 34px;
    line-height: 1.2;

    font-weight: 750;

    letter-spacing: -0.5px;
}


/* =========================================================
   RESULTS TABLE CARD
========================================================= */

.em-results-table-wrapper {
    width: 100%;

    padding: 32px;

    background: #ffffff;

    border: 1px solid #dfe7f2;
    border-radius: 18px;

    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.06),
        0 2px 5px rgba(15, 23, 42, 0.03);

    box-sizing: border-box;

    overflow-x: auto;
}


.em-results-table-wrapper h3 {
    margin: 0 0 25px;

    color: #172033;

    font-size: 21px;
    line-height: 1.4;

    font-weight: 750;

    letter-spacing: -0.2px;
}


/* =========================================================
   TABLE
========================================================= */

.em-results-table {
    width: 100%;
    min-width: 980px;

    border-collapse: separate;
    border-spacing: 0;

    color: #334155;

    font-size: 14px;
}


/* =========================================================
   TABLE HEADER
========================================================= */

.em-results-table thead th {
    padding: 16px 17px;

    background: #f1f5f9;

    border-top: 1px solid #d9e2ec;
    border-bottom: 1px solid #d9e2ec;

    color: #334155;

    font-size: 12px;
    font-weight: 750;

    text-align: left;

    white-space: nowrap;

    letter-spacing: 0.15px;
}


.em-results-table thead th:first-child {
    border-left: 1px solid #d9e2ec;

    border-radius: 10px 0 0 0;
}


.em-results-table thead th:last-child {
    border-right: 1px solid #d9e2ec;

    border-radius: 0 10px 0 0;
}


/* =========================================================
   TABLE BODY
========================================================= */

.em-results-table tbody td {
    padding: 17px;

    background: #ffffff;

    border-bottom: 1px solid #e8edf3;

    color: #475569;

    font-size: 13px;

    line-height: 1.5;

    vertical-align: middle;

    white-space: nowrap;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}


/* =========================================================
   ALTERNATING ROWS
========================================================= */

.em-results-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}


/* =========================================================
   LAST ROW
========================================================= */

.em-results-table tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   EXAM NAME
========================================================= */

.em-results-table tbody td:first-child {
    color: #172033;

    font-weight: 700;
}


/* =========================================================
   SCORE
========================================================= */

.em-results-table tbody td:nth-child(2) {
    color: #2563eb;

    font-weight: 700;
}


/* =========================================================
   PERCENTAGE
========================================================= */

.em-results-table tbody td:nth-child(3) {
    color: #0f766e;

    font-weight: 700;
}


/* =========================================================
   RESULT
========================================================= */

.em-results-table tbody td:nth-child(8) {
    font-weight: 650;
}


/* =========================================================
   DATE
========================================================= */

.em-results-table tbody td:nth-child(9) {
    color: #64748b;

    font-size: 12px;
}


/* =========================================================
   HOVER
========================================================= */

.em-results-table tbody tr {
    transition: transform 0.18s ease;
}


.em-results-table tbody tr:hover td {
    background: #f0f7ff;
}


.em-results-table tbody tr:hover td:first-child {
    color: #1d4ed8;
}


/* =========================================================
   NUMERIC CELLS
========================================================= */

.em-results-table tbody td:nth-child(2),
.em-results-table tbody td:nth-child(3),
.em-results-table tbody td:nth-child(4),
.em-results-table tbody td:nth-child(5),
.em-results-table tbody td:nth-child(6),
.em-results-table tbody td:nth-child(7) {

    font-variant-numeric: tabular-nums;

}


/* =========================================================
   TABLE SCROLLBAR
========================================================= */

.em-results-table-wrapper::-webkit-scrollbar {
    height: 8px;
}


.em-results-table-wrapper::-webkit-scrollbar-track {
    background: #eef2f7;

    border-radius: 10px;
}


.em-results-table-wrapper::-webkit-scrollbar-thumb {
    background: #c3cfdd;

    border-radius: 10px;
}


.em-results-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .em-student-results {
        padding: 35px 16px 50px;
    }


    .em-results-header {
        margin-bottom: 25px;
    }


    .em-results-header h2 {
        font-size: 28px;
    }


    .em-results-header p {
        font-size: 14px;
    }


    .em-results-summary {

        grid-template-columns: 1fr;

        gap: 16px;

        margin-bottom: 24px;
    }


    .em-result-summary-card {

        min-height: 125px;

        padding: 26px 27px;
    }


    .em-result-summary-card strong {

        font-size: 30px;
    }


    .em-results-table-wrapper {

        padding: 22px;

        border-radius: 16px;
    }


    .em-results-table-wrapper h3 {

        font-size: 19px;

        margin-bottom: 20px;
    }


    .em-results-table {

        min-width: 980px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .em-student-results {

        padding: 28px 12px 40px;
    }


    .em-results-header h2 {

        font-size: 25px;
    }


    .em-results-header p {

        font-size: 13px;
    }


    .em-result-summary-card {

        min-height: 115px;

        padding: 23px;
    }


    .em-result-summary-card strong {

        font-size: 28px;
    }


    .em-results-table-wrapper {

        padding: 18px;

        border-radius: 14px;
    }


    .em-results-table-wrapper h3 {

        font-size: 18px;
    }

}