/* =========================================================
   STUDENT MY EXAMS
   ========================================================= */

.em-student-exams-header,
.em-student-today-section,
.em-student-upcoming-section,
.em-student-completed-section {

    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;

    box-sizing: border-box;

}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.em-student-exams-header {

    display: flex;
    align-items: center;

    gap: 20px;

    padding: 28px 32px;

    margin-bottom: 24px;

    border-radius: 16px;

    background: linear-gradient(
        135deg,
        #1457b8,
        #0d47a1
    );

    color: #ffffff;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12);

}


.em-student-header-icon {

    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    font-size: 28px;

}


.em-student-header-content h2 {

    margin: 0 0 6px 0;

    font-size: 28px;

    line-height: 1.2;

    color: #ffffff;

}


.em-student-header-content p {

    margin: 0;

    font-size: 14px;

    color: rgba(255, 255, 255, 0.9);

}


/* =========================================================
   SECTIONS
   ========================================================= */

.em-student-today-section,
.em-student-upcoming-section,
.em-student-completed-section {

    margin-bottom: 24px;

    padding: 24px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);

    box-sizing: border-box;

}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.em-student-section-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 14px;

    margin-bottom: 20px;

    border-bottom: 1px solid #e8e8e8;

}


.em-student-section-header h3 {

    margin: 0;

    font-size: 19px;

    font-weight: 700;

    color: #172033;

}


/* =========================================================
   NO EXAM STATE
   ========================================================= */

.em-student-no-exam,
.em-student-no-upcoming {

    min-height: 180px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 25px;

}


.em-student-no-exam-icon {

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 50%;

    background: #f1f5fb;

    font-size: 25px;

}


.em-student-no-exam h3,
.em-student-no-upcoming h3 {

    margin: 0 0 8px 0;

    font-size: 18px;

    color: #1d2939;

}


.em-student-no-exam p,
.em-student-no-upcoming p {

    margin: 0;

    color: #667085;

    font-size: 14px;

}


/* =========================================================
   EXAM CARD
   ========================================================= */

.em-student-exam-card {

    padding: 22px;

    margin-bottom: 16px;

    border: 1px solid #e4e7ec;

    border-radius: 14px;

    background: #ffffff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;

}


.em-student-exam-card:last-child {

    margin-bottom: 0;

}


.em-student-exam-card:hover {

    transform: translateY(-2px);

    border-color: #b8cdf2;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.08);

}


/* =========================================================
   CARD HEADER
   ========================================================= */

.em-student-exam-card-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;

}


.em-student-exam-card-header h3 {

    margin: 0 0 6px 0;

    font-size: 21px;

    color: #172033;

}


.em-student-session-name {

    font-size: 13px;

    color: #667085;

}


/* =========================================================
   STATUS
   ========================================================= */

.em-student-status {

    display: inline-flex;

    align-items: center;

    padding: 6px 11px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;

}


.em-status-live {

    background: #fee4e2;

    color: #b42318;

}


.em-status-upcoming {

    background: #fff4cc;

    color: #8a6100;

}


.em-status-completed {

    background: #dcfae6;

    color: #067647;

}


/* =========================================================
   EXAM DETAILS
   ========================================================= */

.em-student-exam-card-details {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    padding: 18px;

    border-radius: 12px;

    background: #f8fafc;

}


.em-student-exam-detail {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.em-detail-label {

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.4px;

    color: #667085;

}


.em-student-exam-detail strong {

    font-size: 14px;

    color: #1d2939;

    word-break: break-word;

}


/* =========================================================
   CARD FOOTER
   ========================================================= */

.em-student-exam-card-footer {

    display: flex;

    justify-content: flex-end;

    margin-top: 18px;

}


/* =========================================================
   BUTTON
   ========================================================= */

.em-student-exam-btn {

    border: none;

    border-radius: 8px;

    padding: 10px 18px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

}


.em-btn-start {

    background: #1457b8;

    color: #ffffff;

}


.em-btn-start:hover {

    background: #0d47a1;

}


.em-btn-upcoming {

    background: #eef2f6;

    color: #667085;

    cursor: not-allowed;

}


.em-btn-completed {

    background: #e8f5ed;

    color: #067647;

    cursor: not-allowed;

}


/* =========================================================
   COMPLETED EMPTY STATE
   ========================================================= */

.em-student-no-completed {

    padding: 25px;

    text-align: center;

    color: #667085;

    font-size: 14px;

}


/* =========================================================
   LOADING
   ========================================================= */

.em-student-loading {

    min-height: 120px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #667085;

    font-size: 14px;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .em-student-exams-header {

        padding: 22px;

    }


    .em-student-header-content h2 {

        font-size: 23px;

    }


    .em-student-today-section,
    .em-student-upcoming-section,
    .em-student-completed-section {

        padding: 18px;

    }


    .em-student-exam-card-details {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 520px) {

    .em-student-exams-header {

        gap: 12px;

    }


    .em-student-header-icon {

        width: 48px;
        height: 48px;

        font-size: 23px;

    }


    .em-student-header-content h2 {

        font-size: 20px;

    }


    .em-student-exam-card-header {

        flex-direction: column;

    }


    .em-student-exam-card-details {

        grid-template-columns: 1fr;

    }


    .em-student-card-footer {

        justify-content: stretch;

    }


    .em-student-exam-btn {

        width: 100%;

    }

}