/* =========================================================
   PINPOINT UPSC DASHBOARD
   COMPLETE CONSOLIDATED STYLESHEET
========================================================= */


/* =========================================================
   1. GLOBAL RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.pp-dashboard-page {
    margin: 0;
    background: #f6f8fc;
}

.pp-dashboard {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    background: #f6f8fc;
    color: #172033;
    font-family: Inter, Arial, sans-serif;
}


/* =========================================================
   2. REMOVE ASTRA / WORDPRESS PAGE SPACING
========================================================= */

body.pp-dashboard-page .site-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

body.pp-dashboard-page .ast-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.pp-dashboard-page article {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.pp-dashboard-page .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.pp-dashboard-page .pp-dashboard {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
}


/* =========================================================
   3. SIDEBAR
========================================================= */

.pp-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;

    width: 220px;
    min-width: 220px;
    min-height: 100vh;

    padding: 24px 18px;

    background: #ffffff;
    border-right: 1px solid #e8ecf2;
}

.pp-logo {
    margin-bottom: 16px;
    padding: 4px 10px 20px;

    border-bottom: 1px solid #eef1f5;
}

.pp-logo h2 {
    margin: 0;

    color: #182238;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.25;
}

.pp-sidebar ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.pp-sidebar li {
    display: flex;
    align-items: center;

    min-height: 40px;
    margin-bottom: 5px;
    padding: 9px 11px;

    color: #586174;
    font-size: 13px;
    font-weight: 550;

    border-radius: 10px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.pp-sidebar li:hover {
    color: #255edb;
    background: #f2f6ff;
    transform: translateX(2px);
}

.pp-sidebar li.active {
    color: #245edb;
    background: #eaf1ff;
    font-weight: 700;
}


/* =========================================================
   4. MAIN DASHBOARD AREA
========================================================= */

.pp-main {
    flex: 1;
    min-width: 0;
    max-width: 1440px;

    margin: 0 auto;
    padding: 26px 28px 36px;
}


/* =========================================================
   5. HEADER
========================================================= */

.pp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;
    margin-bottom: 20px;
}

.pp-header-left {
    min-width: 0;
}

.pp-header-left h1 {
    margin: 0;

    color: #172033;
    font-size: 26px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.pp-header-left p {
    margin: 6px 0 0;

    color: #758095;
    font-size: 14px;
    line-height: 1.5;
}

.pp-header-right {
    flex-shrink: 0;
}

.pp-streak {
    min-width: 118px;
    padding: 13px 16px;

    text-align: center;

    background: #ffffff;
    border: 1px solid #e7ebf1;
    border-radius: 13px;
}

.pp-streak strong {
    display: block;

    margin-top: 4px;

    color: #172033;
    font-size: 18px;
    line-height: 1.2;
}

.pp-streak span {
    display: block;

    margin-top: 3px;

    color: #7b8495;
    font-size: 11px;
}


/* =========================================================
   6. BASE CARD STYLING
========================================================= */

.pp-card,
.pp-base-card,
.pp-continue-card,
.pp-streak {
    background: #ffffff;
    border: 1px solid #e7ebf1;
    border-radius: 16px;
}

.pp-card,
.pp-base-card {
    padding: 20px;
}

.pp-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.pp-card:hover {
    border-color: #d9e2f0;

    transform: translateY(-2px);

    box-shadow: 0 12px 30px rgba(27, 45, 79, 0.075);
}

.pp-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;
    margin-bottom: 16px;
}

.pp-card-heading h2 {
    margin: 4px 0 0;

    color: #172033;
    font-size: 20px;
    line-height: 1.25;
}

.pp-section-label {
    display: block;

    color: #2563eb;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}


/* =========================================================
   7. DASHBOARD TWO-COLUMN GRID
========================================================= */

.pp-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.9fr)
        minmax(300px, 0.8fr);

    align-items: start;

    gap: 18px;
}

.pp-left-column,
.pp-right-column {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


/* =========================================================
   8. STATISTICS CARDS
========================================================= */

.pp-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
    margin: 0;
}

.pp-card {
    min-height: 116px;
    padding: 18px;
}

.pp-card span {
    display: block;

    color: #778195;
    font-size: 12px;
    font-weight: 600;
}

.pp-card h2 {
    margin: 10px 0 5px;

    color: #172033;
    font-size: 24px;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.pp-card small {
    display: block;

    margin-top: 3px;

    color: #24a35a;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   9. CONTINUE LEARNING CARD
========================================================= */

.pp-continue-card {
    position: relative;

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

    min-height: 190px;
    margin: 0;
    padding: 26px;

    gap: 24px;

    overflow: hidden;

    box-shadow: 0 10px 28px rgba(31, 45, 75, 0.055);
}

.pp-continue-card::after {
    content: "";

    position: absolute;
    top: -90px;
    right: -70px;

    width: 190px;
    height: 190px;

    background: rgba(37, 99, 235, 0.055);
    border-radius: 50%;

    pointer-events: none;
}

.pp-continue-left {
    position: relative;
    z-index: 1;

    flex: 1;

    min-width: 0;
    max-width: 620px;
}

.pp-continue-right {
    position: relative;
    z-index: 1;

    flex-shrink: 0;
}

.pp-badge {
    display: inline-flex;
    align-items: center;

    min-height: 26px;
    margin-bottom: 13px;
    padding: 5px 10px;

    color: #245edb;
    font-size: 11px;
    font-weight: 750;

    background: #eaf1ff;
    border-radius: 999px;
}

.pp-continue-card h2 {
    margin: 0;

    color: #172033;
    font-size: 27px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.pp-topic-subject,
.pp-continue-card p {
    margin: 6px 0 0;

    color: #6f7b8f;
    font-size: 12px;
}

.pp-progress-row {
    display: flex;
    align-items: center;

    max-width: 540px;
    margin-top: 18px;

    gap: 12px;
}

.pp-progress {
    flex: 1;

    width: 100%;
    height: 10px;
    margin: 0;

    overflow: hidden;

    background: #edf1f6;
    border-radius: 999px;
}

.pp-progress-fill {
    width: 80%;
    height: 100%;

    background: linear-gradient(90deg, #2563eb, #4f7df0);
    border-radius: 999px;
}

.pp-progress-percent {
    color: #2563eb;
    font-size: 13px;
    white-space: nowrap;
}

.pp-learning-meta {
    display: flex;
    flex-wrap: wrap;

    margin-top: 13px;

    gap: 10px;
}

.pp-learning-meta span {
    padding: 6px 9px;

    color: #687386;
    font-size: 11px;

    background: #f8fafc;
    border: 1px solid #e6ebf2;
    border-radius: 8px;
}

.pp-learning-meta strong {
    color: #253046;
}

.pp-btn {
    min-width: 160px;
    min-height: 44px;
    padding: 12px 20px;

    color: #ffffff;
    font-size: 13px;
    font-weight: 700;

    background: #2563eb;
    border: 0;
    border-radius: 10px;

    cursor: pointer;

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

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.pp-btn:hover {
    background: #1e55c8;

    transform: translateY(-1px);

    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}


/* =========================================================
   10. TODAY'S REVISION CARD
========================================================= */

.pp-revision-card {
    width: 100%;
    min-height: 310px;
    padding: 22px;
}

.pp-revision-card .pp-card-heading {
    margin-bottom: 10px;
}

.pp-revision-count {
    padding: 6px 10px;

    color: #245edb;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;

    background: #eaf1ff;
    border-radius: 999px;
}

.pp-revision-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.pp-revision-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto 18px;
    align-items: center;

    width: 100%;
    min-height: 58px;
    padding: 11px 12px;

    gap: 12px;

    text-align: left;

    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: 11px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.pp-revision-item:hover {
    background: #f2f6ff;
    border-color: #dce6fb;

    transform: translateX(2px);
}

.pp-revision-dot {
    width: 9px;
    height: 9px;

    flex-shrink: 0;

    border-radius: 50%;
}

.pp-dot-red {
    background: #ef4444;
}

.pp-dot-orange {
    background: #f59e0b;
}

.pp-dot-green {
    background: #22c55e;
}

.pp-revision-info {
    display: flex;
    flex-direction: column;

    min-width: 0;

    gap: 3px;
}

.pp-revision-info strong {
    color: #172033;
    font-size: 13px;
}

.pp-revision-info small {
    color: #7b8496;
    font-size: 11px;
}

.pp-revision-time {
    color: #6e788b;
    font-size: 11px;
    white-space: nowrap;
}

.pp-row-arrow {
    color: #9aa4b5;
    font-size: 14px;
}

.pp-view-all-btn {
    display: inline-flex;
    align-items: center;

    min-height: 34px;
    margin-top: 15px;
    padding: 0;

    color: #2563eb;
    font-size: 12px;
    font-weight: 700;

    background: transparent;
    border: 0;

    cursor: pointer;
}


/* =========================================================
   11. SUBJECT PROGRESS
========================================================= */

.pp-subject-progress-card {
    min-height: 310px;
    padding: 20px;
}

.pp-small-link {
    padding: 0;

    color: #2563eb;
    font-size: 11px;
    font-weight: 700;

    background: transparent;
    border: 0;

    cursor: pointer;
}

.pp-subject-list {
    display: flex;
    flex-direction: column;

    gap: 17px;
}

.pp-subject-row {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.pp-subject-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pp-subject-meta strong {
    color: #172033;
    font-size: 12px;
}

.pp-subject-meta span {
    color: #687386;
    font-size: 11px;
    font-weight: 700;
}

.pp-subject-bar {
    width: 100%;
    height: 8px;

    overflow: hidden;

    background: #edf1f6;
    border-radius: 999px;
}

.pp-subject-fill {
    height: 100%;

    background: linear-gradient(90deg, #2563eb, #5f89f4);
    border-radius: 999px;

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


/* =========================================================
   12. LAPTOP RESPONSIVE STYLING
========================================================= */

@media (min-width: 768px) and (max-width: 1200px) {

    .pp-sidebar {
        width: 200px;
        min-width: 200px;
    }

    .pp-main {
        padding: 24px;
    }

    .pp-grid {
        grid-template-columns:
            minmax(0, 1.65fr)
            minmax(270px, 0.85fr);
    }

    .pp-continue-card {
        min-height: 175px;
        padding: 22px;
    }
}


/* =========================================================
   13. TABLET RESPONSIVE STYLING
========================================================= */

@media (max-width: 1024px) {

    .pp-grid {
        grid-template-columns: 1fr;
    }

    .pp-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* =========================================================
   14. MOBILE RESPONSIVE STYLING
========================================================= */

@media (max-width: 767px) {

    .pp-dashboard {
        display: block;
        min-height: auto;
    }

    .pp-sidebar {
        position: relative;

        width: 100%;
        min-width: 0;
        min-height: auto;

        padding: 14px;

        border-right: 0;
        border-bottom: 1px solid #e5eaf1;
    }

    .pp-logo {
        margin-bottom: 10px;
        padding: 2px 4px 12px;
    }

    .pp-sidebar ul {
        display: flex;

        gap: 7px;
        padding-bottom: 3px;

        overflow-x: auto;
    }

    .pp-sidebar li {
        flex: 0 0 auto;

        min-height: 36px;
        margin: 0;
        padding: 8px 11px;

        font-size: 12px;
        white-space: nowrap;
    }

    .pp-main {
        width: 100%;
        padding: 18px 14px 28px;
    }

    .pp-header {
        align-items: flex-start;

        margin-bottom: 18px;
    }

    .pp-header-left h1 {
        font-size: 22px;
    }

    .pp-header-left p {
        font-size: 12px;
    }

    .pp-streak {
        min-width: 94px;
        padding: 11px 10px;
    }

    .pp-streak strong {
        font-size: 15px;
    }

    .pp-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .pp-left-column,
    .pp-right-column {
        gap: 16px;
    }

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

        gap: 10px;
    }

    .pp-card {
        padding: 15px;
    }

    .pp-card h2 {
        font-size: 21px;
    }

    .pp-continue-card {
        align-items: flex-start;
        flex-direction: column;

        padding: 19px;
    }

    .pp-continue-card h2 {
        font-size: 22px;
    }

    .pp-continue-right,
    .pp-btn {
        width: 100%;
    }

    .pp-btn {
        min-height: 44px;
    }

    .pp-learning-meta {
        flex-direction: column;

        gap: 7px;
    }

    .pp-learning-meta span {
        width: 100%;
    }

    .pp-revision-card,
    .pp-subject-progress-card {
        min-height: auto;
    }

    .pp-revision-item {
        grid-template-columns: 10px minmax(0, 1fr) auto;
    }

    .pp-row-arrow {
        display: none;
    }
}