/* =========================================================
   CHECKMYPREP PERFORMANCE DASHBOARD
   ========================================================= */

.cmp-dashboard {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}


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

.cmp-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding: 32px 34px;

    margin-bottom: 22px;

    background:
        linear-gradient(
            135deg,
            #12325c,
            #1d5fbf
        );

    border-radius: 16px;

    color: #ffffff;

    box-shadow:
        0 12px 35px rgba(25, 74, 140, .16);
}


.cmp-dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 18px;
}


.cmp-dashboard-user-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

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

    border-radius: 50%;

    background: rgba(255,255,255,.16);

    border: 1px solid rgba(255,255,255,.25);

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

    color: #ffffff;
}


.cmp-dashboard-eyebrow {
    display: block;

    margin-bottom: 5px;

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

    letter-spacing: 1.2px;

    color: rgba(255,255,255,.68);
}


.cmp-dashboard-hero h1 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 29px;
    line-height: 1.25;
}


.cmp-dashboard-hero p {
    margin: 0;

    color: rgba(255,255,255,.78);

    font-size: 14px;
}


.cmp-dashboard-primary-btn {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    white-space: nowrap;

    padding: 12px 18px;

    border-radius: 8px;

    background: #ffffff;

    color: #174f9e !important;

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

    text-decoration: none !important;

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


.cmp-dashboard-primary-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(0,0,0,.15);
}


/* =========================================================
   PERFORMANCE INSIGHT
   ========================================================= */

.cmp-dashboard-insight {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 17px 20px;

    margin-bottom: 30px;

    border-radius: 12px;

    border: 1px solid #e1e9f5;

    background: #ffffff;
}


.cmp-dashboard-insight-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

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

    border-radius: 10px;

    font-size: 20px;
}


.cmp-insight-positive .cmp-dashboard-insight-icon {
    background: #edf9f1;
    color: #24945a;
}


.cmp-insight-improve .cmp-dashboard-insight-icon {
    background: #fff7e8;
    color: #d58a18;
}


.cmp-insight-neutral .cmp-dashboard-insight-icon {
    background: #eef4ff;
    color: #2864dc;
}


.cmp-dashboard-insight strong {
    display: block;

    margin-bottom: 3px;

    color: #183a64;

    font-size: 15px;
}


.cmp-dashboard-insight p {
    margin: 0;

    color: #70839e;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   SECTION
   ========================================================= */

.cmp-dashboard-section {
    margin-bottom: 32px;
}


.cmp-dashboard-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 16px;
}


.cmp-dashboard-section-heading span {
    display: block;

    margin-bottom: 4px;

    color: #7790b1;

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

    letter-spacing: 1px;
}


.cmp-dashboard-section-heading h2 {
    margin: 0;

    color: #183a64;

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


/* =========================================================
   STATISTICS
   ========================================================= */

.cmp-dashboard-stats-grid {
    display: grid;

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

    gap: 16px;
}


.cmp-dashboard-stat-card {
    display: flex;
    align-items: center;

    gap: 14px;

    min-height: 118px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e3ebf5;

    border-radius: 13px;

    box-shadow:
        0 4px 14px rgba(22, 55, 96, .04);

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


.cmp-dashboard-stat-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(22, 55, 96, .09);
}


.cmp-dashboard-stat-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

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

    border-radius: 11px;

    font-size: 20px;
}


.stat-blue {
    color: #2864dc;
    background: #edf3ff;
}


.stat-purple {
    color: #7656c9;
    background: #f2efff;
}


.stat-green {
    color: #24945a;
    background: #ecf9f0;
}


.stat-orange {
    color: #dc7d28;
    background: #fff4e9;
}


.stat-gold {
    color: #c18b18;
    background: #fff9e8;
}


.stat-red {
    color: #d65a5a;
    background: #fff0f0;
}


.cmp-dashboard-stat-card span {
    display: block;

    margin-bottom: 4px;

    color: #7386a1;

    font-size: 12px;
}


.cmp-dashboard-stat-card strong {
    display: block;

    color: #183a64;

    font-size: 24px;
    line-height: 1.15;
}


.cmp-dashboard-stat-card small {
    display: block;

    margin-top: 5px;

    color: #94a2b5;

    font-size: 11px;
}


.cmp-stat-status {
    font-weight: 600;
}


.cmp-stat-status.excellent,
.cmp-stat-status.strong {
    color: #24945a;
}


.cmp-stat-status.good {
    color: #2864dc;
}


.cmp-stat-status.improving {
    color: #d58a18;
}


.cmp-stat-status.practice {
    color: #d65a5a;
}


/* =========================================================
   TWO COLUMN LAYOUT
   ========================================================= */

.cmp-dashboard-two-column {
    display: grid;

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

    gap: 22px;

    margin-bottom: 32px;
}


/* =========================================================
   PANELS
   ========================================================= */

.cmp-dashboard-panel,
.cmp-dashboard-table-panel {
    background: #ffffff;

    border: 1px solid #e3ebf5;

    border-radius: 14px;

    box-shadow:
        0 4px 14px rgba(22, 55, 96, .04);
}


.cmp-dashboard-panel {
    padding: 24px;
}


.cmp-dashboard-panel-heading {
    margin-bottom: 20px;
}


.cmp-dashboard-panel-heading h2 {
    margin: 0 0 5px;

    color: #183a64;

    font-size: 18px;
}


.cmp-dashboard-panel-heading p {
    margin: 0;

    color: #8494aa;

    font-size: 12px;
}


/* =========================================================
   CHART
   ========================================================= */

.cmp-chart-wrapper {
    position: relative;

    height: 285px;

    width: 100%;
}


/* =========================================================
   PREPARATION SUMMARY
   ========================================================= */

.cmp-preparation-summary {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


.cmp-summary-item {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 13px;

    background: #f9fbfe;

    border: 1px solid #edf1f7;

    border-radius: 10px;
}


.cmp-summary-icon {
    width: 39px;
    height: 39px;

    flex-shrink: 0;

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

    border-radius: 9px;

    font-size: 17px;
}


.cmp-summary-icon.strong {
    background: #fff8e7;
    color: #c58a13;
}


.cmp-summary-icon.weak {
    background: #fff1ef;
    color: #d96555;
}


.cmp-summary-icon.quiz {
    background: #edf4ff;
    color: #2864dc;
}


.cmp-summary-item span {
    display: block;

    margin-bottom: 2px;

    color: #8494aa;

    font-size: 11px;
}


.cmp-summary-item strong {
    display: block;

    color: #25466e;

    font-size: 14px;
}


.cmp-summary-item small {
    display: block;

    margin-top: 2px;

    color: #8494aa;

    font-size: 11px;
}


/* =========================================================
   TABLE
   ========================================================= */

.cmp-dashboard-table-panel {
    overflow: hidden;
}


.cmp-dashboard-table-wrap {
    width: 100%;

    overflow-x: auto;
}


.cmp-dashboard-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 760px;
}


.cmp-dashboard-table thead {
    background: #f7f9fc;
}


.cmp-dashboard-table th {
    padding: 14px 16px;

    text-align: left;

    color: #6f829f;

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

    letter-spacing: .3px;

    white-space: nowrap;

    border-bottom:
        1px solid #e5ebf3;
}


.cmp-dashboard-table td {
    padding: 15px 16px;

    color: #506783;

    font-size: 13px;

    border-bottom:
        1px solid #edf1f6;

    vertical-align: middle;
}


.cmp-dashboard-table tbody tr:last-child td {
    border-bottom: none;
}


.cmp-dashboard-table tbody tr {
    transition:
        background .15s ease;
}


.cmp-dashboard-table tbody tr:hover {
    background: #fbfcfe;
}


.cmp-dashboard-table td strong {
    color: #29496f;

    font-weight: 600;
}


.cmp-table-subtext {
    display: block;

    margin-top: 3px;

    color: #9aa8ba;

    font-size: 11px;
}


/* =========================================================
   ACCURACY PROGRESS
   ========================================================= */

.cmp-accuracy-cell {
    min-width: 120px;
}


.cmp-accuracy-cell > span {
    display: block;

    margin-bottom: 6px;

    color: #365575;

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


.cmp-progress-bar {
    width: 100%;
    height: 5px;

    overflow: hidden;

    background: #edf1f6;

    border-radius: 10px;
}


.cmp-progress-bar span {
    display: block;

    height: 100%;

    background: #2864dc;

    border-radius: inherit;
}


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

.cmp-performance-badge {
    display: inline-flex;

    align-items: center;

    padding: 5px 9px;

    border-radius: 20px;

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

    white-space: nowrap;
}


.cmp-performance-badge.excellent,
.cmp-performance-badge.strong {
    color: #218653;
    background: #eaf8ef;
}


.cmp-performance-badge.good {
    color: #2864dc;
    background: #edf3ff;
}


.cmp-performance-badge.improving {
    color: #b87812;
    background: #fff6df;
}


.cmp-performance-badge.practice {
    color: #c65353;
    background: #fff0f0;
}


/* =========================================================
   WEAK TOPICS
   ========================================================= */

.cmp-weak-topic-list {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


.cmp-weak-topic-item {
    display: flex;

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

    gap: 15px;

    padding: 13px 14px;

    background: #fafcff;

    border: 1px solid #edf1f6;

    border-radius: 9px;
}


.cmp-weak-topic-item strong {
    display: block;

    margin-bottom: 4px;

    color: #29496f;

    font-size: 13px;
}


.cmp-weak-topic-item span {
    color: #8b9aaf;

    font-size: 11px;
}


.cmp-topic-score {
    flex-shrink: 0;

    padding: 6px 9px;

    border-radius: 6px;

    background: #fff1ef;

    color: #ce5d4d;

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


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

.cmp-dashboard-actions {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}


.cmp-dashboard-action-card {
    display: flex;
    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 160px;

    padding: 15px 10px;

    text-align: center;

    background: #fafcff;

    border: 1px solid #e8eef6;

    border-radius: 11px;

    text-decoration: none !important;

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


.cmp-dashboard-action-card:hover {
    transform: translateY(-3px);

    border-color: #bfd1ef;

    box-shadow:
        0 8px 20px rgba(30, 70, 125, .08);
}


.cmp-dashboard-action-card > div {
    width: 42px;
    height: 42px;

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

    margin-bottom: 10px;

    border-radius: 10px;

    background: #edf3ff;

    color: #2864dc;

    font-size: 19px;
}


.cmp-dashboard-action-card span {
    display: block;

    color: #29496f;

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


.cmp-dashboard-action-card small {
    display: block;

    margin-top: 4px;

    color: #94a2b5;

    font-size: 10px;
}


/* =========================================================
   RECENT ATTEMPTS
   ========================================================= */

.cmp-attempt-score {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 6px;

    font-size: 11px;
    font-weight: 700;
}


.cmp-attempt-score.good {
    background: #eaf8ef;
    color: #218653;
}


.cmp-attempt-score.needs-work {
    background: #fff2f0;
    color: #c85d4d;
}


.cmp-dashboard-review-btn {
    display: inline-block;

    padding: 6px 11px;

    border-radius: 6px;

    background: #edf3ff;

    color: #2864dc !important;

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

    text-decoration: none !important;
}


.cmp-dashboard-review-btn:hover {
    background: #dfeaff;
}


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

.cmp-dashboard-empty {
    display: flex;
    flex-direction: column;

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

    min-height: 210px;

    padding: 30px;

    text-align: center;
}


.cmp-dashboard-empty > i {
    margin-bottom: 12px;

    color: #a6b4c6;

    font-size: 34px;
}


.cmp-dashboard-empty h3 {
    margin: 0 0 6px;

    color: #34516f;

    font-size: 16px;
}


.cmp-dashboard-empty p {
    max-width: 330px;

    margin: 0;

    color: #8b9aaf;

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


/* =========================================================
   LOGIN REQUIRED
   ========================================================= */

.cmp-dashboard-login {
    max-width: 500px;

    margin: 40px auto;

    padding: 45px 30px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e3ebf5;

    border-radius: 16px;
}


.cmp-dashboard-login-icon {
    width: 62px;
    height: 62px;

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

    margin: 0 auto 17px;

    border-radius: 50%;

    background: #edf3ff;

    color: #2864dc;

    font-size: 25px;
}


.cmp-dashboard-login h2 {
    margin: 0 0 8px;

    color: #183a64;
}


.cmp-dashboard-login p {
    margin: 0 0 22px;

    color: #7d8fa7;

    font-size: 14px;
}


.cmp-dashboard-login-btn {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    padding: 11px 18px;

    background: #2864dc;

    border-radius: 7px;

    color: #ffffff !important;

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

    text-decoration: none !important;
}


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

@media (max-width: 1024px) {

    .cmp-dashboard-stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .cmp-dashboard-actions {
        grid-template-columns:
            1fr;
    }


    .cmp-dashboard-action-card {
        min-height: 85px;

        flex-direction: row;

        justify-content: flex-start;

        gap: 10px;

        text-align: left;
    }


    .cmp-dashboard-action-card > div {
        margin-bottom: 0;
    }


    .cmp-dashboard-action-card small {
        display: none;
    }

}


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

@media (max-width: 700px) {

    .cmp-dashboard-hero {
        flex-direction: column;

        align-items: flex-start;

        padding: 25px 21px;
    }


    .cmp-dashboard-welcome {
        align-items: flex-start;
    }


    .cmp-dashboard-user-icon {
        width: 48px;
        height: 48px;

        font-size: 19px;
    }


    .cmp-dashboard-hero h1 {
        font-size: 23px;
    }


    .cmp-dashboard-hero-actions {
        width: 100%;
    }


    .cmp-dashboard-primary-btn {
        width: 100%;

        justify-content: center;
    }


    .cmp-dashboard-stats-grid {
        grid-template-columns: 1fr;
    }


    .cmp-dashboard-stat-card {
        min-height: 100px;
    }


    .cmp-dashboard-two-column {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .cmp-dashboard-section-heading h2 {
        font-size: 19px;
    }


    .cmp-dashboard-panel {
        padding: 19px;
    }


    .cmp-chart-wrapper {
        height: 240px;
    }


    .cmp-dashboard-insight {
        align-items: flex-start;
    }

}

/* =========================================================
   DASHBOARD VISUAL DEPTH IMPROVEMENTS
   ========================================================= */

.cmp-performance-dashboard {
    background:
        linear-gradient(
            180deg,
            #eef3f9 0%,
            #f5f7fa 45%,
            #edf2f7 100%
        );
}


/* =========================================================
   MAIN CARDS
   ========================================================= */

.cmp-dashboard-card,
.cmp-performance-card,
.cmp-dashboard-panel {

    background: #ffffff;

    border: 1px solid #cfd9e6;

    box-shadow:
        0 3px 12px
        rgba(30, 55, 90, 0.06);

}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.cmp-dashboard-section-title,
.cmp-dashboard-section h2 {

    color: #1f3654;

    font-weight: 700;

}


.cmp-dashboard-section-label {

    color: #60738c;

    font-weight: 700;

    letter-spacing: 0.12em;

}


/* =========================================================
   STAT CARDS
   ========================================================= */

.cmp-dashboard-stat-card {

    background: #ffffff;

    border: 1px solid #ccd7e4;

    box-shadow:
        0 2px 8px
        rgba(25, 55, 90, 0.05);

}


.cmp-dashboard-stat-card:hover {

    transform: translateY(-2px);

    border-color: #aebed2;

    box-shadow:
        0 7px 18px
        rgba(25, 55, 90, 0.10);

}


/* =========================================================
   ANALYTICS PANELS
   ========================================================= */

.cmp-dashboard-chart-card,
.cmp-dashboard-summary-card {

    background: #ffffff;

    border: 1px solid #cbd7e5;

    box-shadow:
        0 4px 14px
        rgba(32, 57, 88, 0.06);

}


/* =========================================================
   TABLES
   ========================================================= */

.cmp-dashboard-table {

    background: #ffffff;

    border: 1px solid #c8d4e2;

    box-shadow:
        0 4px 14px
        rgba(30, 55, 90, 0.05);

}


.cmp-dashboard-table thead {

    background: #e7edf5;

}


.cmp-dashboard-table th {

    color: #38506d;

    font-weight: 700;

    border-bottom: 1px solid #becbd9;

}


.cmp-dashboard-table td {

    border-color: #d9e1ea;

    color: #40536b;

}


.cmp-dashboard-table tbody tr {

    background: #ffffff;

}


.cmp-dashboard-table tbody tr:nth-child(even) {

    background: #f8fafc;

}


.cmp-dashboard-table tbody tr:hover {

    background: #eef5fc;

}


/* =========================================================
   TOPICS NEEDING ATTENTION
   ========================================================= */

.cmp-dashboard-topic-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.cmp-dashboard-topic-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 14px;

    background: #f9fbfd;

    border: 1px solid #d7e0ea;

    border-radius: 10px;

    transition:
        0.2s ease;

}


.cmp-dashboard-topic-item:hover {

    background: #ffffff;

    border-color: #b7c7d8;

    box-shadow:
        0 4px 12px
        rgba(30, 55, 90, 0.08);

    transform:
        translateY(-1px);

}


.cmp-dashboard-topic-icon {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    flex-shrink: 0;

}


.cmp-dashboard-topic-info {

    display: flex;

    flex-direction: column;

    flex: 1;

    min-width: 0;

}


.cmp-dashboard-topic-info strong {

    color: #263b56;

    font-size: 14px;

}


.cmp-dashboard-topic-info span {

    margin-top: 3px;

    font-size: 11px;

    color: #718096;

}


.cmp-dashboard-topic-score {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

}


.cmp-dashboard-topic-score strong {

    font-size: 15px;

    color: #243b55;

}


.cmp-dashboard-topic-score small {

    font-size: 10px;

    margin-top: 2px;

    color: #718096;

}


/* Critical */

.cmp-topic-critical {

    border-left:
        4px solid #d9534f;

}


.cmp-topic-critical
.cmp-dashboard-topic-icon {

    color: #c9433f;

    background: #fff0ef;

}


/* Weak */

.cmp-topic-weak {

    border-left:
        4px solid #e29a3b;

}


.cmp-topic-weak
.cmp-dashboard-topic-icon {

    color: #d0831d;

    background: #fff7e8;

}


/* Improving */

.cmp-topic-improving {

    border-left:
        4px solid #d4a72c;

}


.cmp-topic-improving
.cmp-dashboard-topic-icon {

    color: #b98c18;

    background: #fff9e7;

}


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

.cmp-dashboard-empty {

    min-height: 170px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: #718096;

    background: #f8fafc;

    border: 1px dashed #c5d1df;

    border-radius: 10px;

}


.cmp-dashboard-empty-icon {

    font-size: 30px;

    color: #8da0b5;

    margin-bottom: 12px;

}


.cmp-dashboard-empty p {

    max-width: 300px;

    margin: 0;

    font-size: 12px;

    line-height: 1.6;

}