/* =========================================================
   SMART EXAM ENGINE
   STUDENT RESULTS
   PREMIUM FRONTEND UI
========================================================= */

.see-student-results {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 24px 80px;
    box-sizing: border-box;
    color: #0f172a;
    font-family: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.see-results-header {
    margin-bottom: 34px;
}

.see-results-label {
    display: inline-flex;
    align-items: center;

    padding: 7px 12px;
    margin-bottom: 14px;

    border: 1px solid #dbeafe;
    border-radius: 999px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    line-height: 1;
}

.see-results-header h1 {
    margin: 0;

    color: #0f172a;

    font-size: 38px;
    line-height: 1.2;
    font-weight: 800;

    letter-spacing: -0.8px;
}

.see-results-header p {
    margin: 12px 0 0;

    color: #64748b;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   RESULTS LIST
========================================================= */

.see-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* =========================================================
   RESULT CARD
========================================================= */

.see-result-item {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto;

    align-items: center;

    gap: 30px;

    padding: 26px 28px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    border: 1px solid #dbe4f0;
    border-radius: 20px;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.045);

    overflow: hidden;

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


/* TOP ACCENT */

.see-result-item::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #60a5fa
        );
}


/* HOVER */

.see-result-item:hover {
    transform: translateY(-3px);

    border-color: #bfdbfe;

    box-shadow:
        0 18px 42px rgba(37, 99, 235, 0.09);
}


/* =========================================================
   RESULT MAIN
========================================================= */

.see-result-main {
    min-width: 0;
}

.see-result-type {
    display: inline-block;

    margin-bottom: 9px;

    color: #2563eb;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}

.see-result-main h2 {
    margin: 0;

    color: #0f172a;

    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;

    word-break: break-word;
}

.see-result-exam {
    margin: 6px 0 16px;

    color: #64748b;

    font-size: 13px;
}


/* =========================================================
   META
========================================================= */

.see-result-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.see-result-meta span {
    display: inline-flex;
    align-items: center;

    padding: 7px 10px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    color: #64748b;

    font-size: 11px;
    line-height: 1.3;
}


/* =========================================================
   SCORE
========================================================= */

.see-result-score {
    min-width: 125px;

    padding: 18px 20px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #dbeafe;

    border-radius: 16px;

    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.035);
}

.see-result-score strong {
    display: block;

    color: #2563eb;

    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
}

.see-result-score span {
    display: block;

    margin-top: 7px;

    color: #64748b;

    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   ACTIONS
========================================================= */

.see-result-actions {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 12px;

    min-width: 125px;
}


/* =========================================================
   STATUS
========================================================= */

.see-result-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 12px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .5px;
}


/* PASS */

.see-result-status.pass {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #15803d;
}


/* FAIL */

.see-result-status.fail {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}


/* SUBMITTED */

.see-result-status.submitted {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
}


/* =========================================================
   VIEW RESULT BUTTON
========================================================= */

.see-result-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 125px;

    padding: 11px 16px;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #ffffff !important;

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

    text-decoration: none !important;

    box-shadow:
        0 7px 18px rgba(37, 99, 235, 0.18);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.see-result-view:hover {
    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow:
        0 11px 25px rgba(37, 99, 235, 0.25);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.see-results-empty {
    padding: 70px 30px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fbff
        );

    border: 1px dashed #cbd5e1;
    border-radius: 22px;
}

.see-results-empty-icon {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #eff6ff;
    border: 1px solid #dbeafe;

    color: #2563eb;

    font-size: 25px;
    font-weight: 800;
}

.see-results-empty h2 {
    margin: 0 0 9px;

    color: #0f172a;

    font-size: 24px;
    font-weight: 800;
}

.see-results-empty p {
    max-width: 520px;

    margin: 0 auto 24px;

    color: #64748b;

    font-size: 14px;
    line-height: 1.7;
}

.see-results-empty a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 12px 20px;

    border-radius: 10px;

    background: #2563eb;
    color: #ffffff !important;

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

    text-decoration: none !important;
}

.see-results-empty a:hover {
    background: #1d4ed8;
    color: #ffffff !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    .see-result-item {
        grid-template-columns: 1fr auto;

        gap: 20px;
    }

    .see-result-main {
        grid-column: 1;
    }

    .see-result-score {
        grid-column: 2;
        grid-row: 1;
    }

    .see-result-actions {
        grid-column: 1 / -1;

        flex-direction: row;

        align-items: center;
        justify-content: space-between;

        width: 100%;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .see-student-results {
        padding: 30px 15px 55px;
    }

    .see-results-header {
        margin-bottom: 24px;
    }

    .see-results-header h1 {
        font-size: 29px;
    }

    .see-results-header p {
        font-size: 13px;
    }

    .see-result-item {
        display: flex;
        flex-direction: column;

        align-items: stretch;

        gap: 18px;

        padding: 21px 18px;
    }

    .see-result-main h2 {
        font-size: 20px;
    }

    .see-result-score {
        width: 100%;
        box-sizing: border-box;
    }

    .see-result-actions {
        display: flex;
        flex-direction: row;

        align-items: center;
        justify-content: space-between;

        width: 100%;
    }

    .see-result-view {
        min-width: auto;
        flex: 1;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .see-student-results {
        padding-left: 12px;
        padding-right: 12px;
    }

    .see-results-header h1 {
        font-size: 26px;
    }

    .see-result-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .see-result-view {
        width: 100%;
        box-sizing: border-box;
    }

}