/* =========================================================
   SMART EXAM ENGINE
   STUDENT SINGLE RESULT
   PREMIUM FRONTEND UI
========================================================= */

.see-student-single-result {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 24px 80px;
    box-sizing: border-box;

    color: #0f172a;
    font-family: inherit;
}


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

.see-single-result-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}

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

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

    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-single-result-header h1 {
    margin: 0;

    color: #0f172a;

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

    letter-spacing: -0.8px;
}

.see-single-result-header p {
    margin: 10px 0 0;

    color: #64748b;

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

.see-result-dot {
    margin: 0 7px;
    color: #94a3b8;
}


/* =========================================================
   STUDENT INFO
========================================================= */

.see-result-student {
    min-width: 190px;

    padding: 16px 20px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    text-align: right;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.04);
}

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

    margin-bottom: 6px;

    color: #2563eb;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

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

    color: #0f172a;

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


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

.see-result-hero {
    display: flex;
    align-items: center;

    gap: 45px;

    padding: 35px;

    margin-bottom: 25px;

    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #eff6ff 100%
        );

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

    box-shadow:
        0 12px 35px rgba(37, 99, 235, 0.06);

    overflow: hidden;

    position: relative;
}

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

    position: absolute;

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

    height: 4px;

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


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

.see-result-score-circle {
    flex: 0 0 190px;

    width: 190px;
    height: 190px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

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

    border-radius: 50%;

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

    color: #ffffff;

    box-shadow:
        0 20px 45px rgba(37, 99, 235, 0.25);

    text-align: center;
}

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

    color: #ffffff;

    font-size: 45px;
    line-height: 1;

    font-weight: 900;

    letter-spacing: -1px;
}

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

    margin-top: 10px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   HERO INFORMATION
========================================================= */

.see-result-hero-info {
    min-width: 0;
}

.see-result-mini-label {
    display: block;

    margin-bottom: 8px;

    color: #2563eb;

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

    letter-spacing: 1.2px;
}

.see-result-hero-info h2 {
    margin: 0;

    color: #0f172a;

    font-size: 27px;
    line-height: 1.3;

    font-weight: 800;
}

.see-result-hero-info p {
    margin: 12px 0 18px;

    color: #64748b;

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

.see-result-hero-info p strong {
    color: #0f172a;
}


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

.see-result-status-wrap {
    margin-top: 8px;
}

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

    min-width: 95px;

    padding: 8px 15px;

    border-radius: 999px;

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

    text-transform: uppercase;
    letter-spacing: 0.6px;
}


/* PASS */

.see-single-result-status.pass {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #15803d;
}


/* FAIL */

.see-single-result-status.fail {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}


/* SUBMITTED / OTHER */

.see-single-result-status.submitted,
.see-single-result-status.complete,
.see-single-result-status.completed {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
}


/* =========================================================
   STAT GRID
========================================================= */

.see-result-stat-grid {
    display: grid;

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

    gap: 14px;

    margin-bottom: 25px;
}


/* =========================================================
   STAT CARD
========================================================= */

.see-result-stat-card {
    position: relative;

    min-height: 125px;

    padding: 20px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.04);

    overflow: hidden;

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

.see-result-stat-card::before {
    content: "";

    position: absolute;

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

    height: 3px;

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

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

    border-color: #bfdbfe;

    box-shadow:
        0 14px 32px rgba(37, 99, 235, 0.08);
}

.see-result-stat-card > span {
    display: block;

    margin-bottom: 12px;

    color: #64748b;

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

    letter-spacing: 0.8px;
}

.see-result-stat-card > strong {
    display: block;

    color: #0f172a;

    font-size: 27px;
    line-height: 1.1;

    font-weight: 900;
}

.see-result-stat-card > small {
    display: block;

    margin-top: 8px;

    color: #94a3b8;

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


/* =========================================================
   CORRECT
========================================================= */

.see-result-stat-card.see-result-correct {
    border-color: #dcfce7;
}

.see-result-stat-card.see-result-correct::before {
    background: #22c55e;
}

.see-result-stat-card.see-result-correct > strong {
    color: #16a34a;
}


/* =========================================================
   WRONG
========================================================= */

.see-result-stat-card.see-result-wrong {
    border-color: #fee2e2;
}

.see-result-stat-card.see-result-wrong::before {
    background: #ef4444;
}

.see-result-stat-card.see-result-wrong > strong {
    color: #dc2626;
}


/* =========================================================
   MARKS
========================================================= */

.see-result-stat-card.see-result-marks::before {
    background:
        linear-gradient(
            90deg,
            #7c3aed,
            #a78bfa
        );
}

.see-result-stat-card.see-result-marks > strong {
    color: #7c3aed;
}

.see-marks-total {
    display: inline !important;

    margin: 0 !important;

    color: #94a3b8 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
}


/* =========================================================
   PERFORMANCE REVIEW
========================================================= */

.see-result-actions-box {
    display: flex;

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

    gap: 30px;

    padding: 28px 30px;

    background: #ffffff;

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

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

.see-result-actions-box > div:first-child {
    min-width: 0;
}

.see-result-actions-box > div:first-child > span {
    display: block;

    margin-bottom: 7px;

    color: #2563eb;

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

    letter-spacing: 1px;
}

.see-result-actions-box h2 {
    margin: 0;

    color: #0f172a;

    font-size: 21px;
    line-height: 1.3;

    font-weight: 800;
}

.see-result-actions-box p {
    margin: 7px 0 0;

    color: #64748b;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   BUTTONS
========================================================= */

.see-result-buttons {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.see-result-primary-button,
.see-result-secondary-button {
    display: inline-flex;

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

    min-height: 45px;

    padding: 0 18px;

    border-radius: 11px;

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

    text-decoration: none;

    box-sizing: border-box;

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


/* PRIMARY */

.see-result-primary-button {
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #ffffff;

    border: 1px solid #2563eb;

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

.see-result-primary-button:hover {
    color: #ffffff;

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

    transform: translateY(-2px);

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


/* SECONDARY */

.see-result-secondary-button {
    background: #ffffff;

    color: #2563eb;

    border: 1px solid #bfdbfe;
}

.see-result-secondary-button:hover {
    background: #eff6ff;

    color: #1d4ed8;

    border-color: #93c5fd;

    transform: translateY(-2px);
}


/* =========================================================
   ERROR
========================================================= */

.see-student-result-error {
    max-width: 600px;

    margin: 70px auto;

    padding: 45px 30px;

    text-align: center;

    background: #ffffff;

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

    box-shadow:
        0 15px 45px rgba(15, 23, 42, 0.08);
}

.see-student-result-error h2 {
    margin: 0 0 10px;

    color: #0f172a;

    font-size: 25px;
}

.see-student-result-error p {
    margin: 0 0 22px;

    color: #64748b;

    font-size: 14px;
}

.see-student-result-error a {
    display: inline-flex;

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

    padding: 12px 20px;

    border-radius: 10px;

    background: #2563eb;
    color: #ffffff;

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

    text-decoration: none;
}

.see-student-result-error a:hover {
    background: #1d4ed8;
}


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

@media (max-width: 1000px) {

    .see-result-stat-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .see-student-single-result {
        padding:
            35px 18px 60px;
    }

    .see-single-result-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 18px;
    }

    .see-result-student {
        width: 100%;

        box-sizing: border-box;

        text-align: left;
    }

    .see-result-hero {
        align-items: center;

        gap: 28px;

        padding: 28px;
    }

    .see-result-score-circle {
        flex-basis: 160px;

        width: 160px;
        height: 160px;
    }

    .see-result-score-circle strong {
        font-size: 38px;
    }

    .see-result-actions-box {
        align-items: flex-start;

        flex-direction: column;
    }

    .see-result-buttons {
        width: 100%;
    }

}


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

@media (max-width: 600px) {

    .see-student-single-result {
        padding:
            28px 14px 50px;
    }


    /* HEADER */

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

    .see-single-result-header h1 {
        font-size: 29px;

        letter-spacing: -0.5px;
    }

    .see-single-result-header p {
        font-size: 12px;
    }


    /* HERO */

    .see-result-hero {
        flex-direction: column;

        align-items: stretch;

        gap: 24px;

        padding: 24px 18px;

        border-radius: 18px;
    }

    .see-result-score-circle {
        flex: none;

        width: 155px;
        height: 155px;

        margin: 0 auto;
    }

    .see-result-score-circle strong {
        font-size: 36px;
    }

    .see-result-hero-info h2 {
        font-size: 22px;
    }

    .see-result-hero-info p {
        font-size: 12px;
    }


    /* STATS */

    .see-result-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .see-result-stat-card {
        min-height: 110px;

        padding: 16px;
    }

    .see-result-stat-card > strong {
        font-size: 23px;
    }


    /* ACTIONS */

    .see-result-actions-box {
        padding: 22px 18px;

        border-radius: 17px;
    }

    .see-result-actions-box h2 {
        font-size: 19px;
    }

    .see-result-actions-box p {
        font-size: 11px;
    }

    .see-result-buttons {
        flex-direction: column;

        width: 100%;
    }

    .see-result-primary-button,
    .see-result-secondary-button {
        width: 100%;
    }

}


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

@media (max-width: 380px) {

    .see-student-single-result {
        padding-left: 11px;
        padding-right: 11px;
    }

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

    .see-result-stat-card > strong {
        font-size: 21px;
    }

    .see-result-stat-card > span {
        font-size: 8px;
    }

}