:root {
    --page-bg: #f5f5f5;
    --header-text: #464646;
    --white: #ffffff;
    --module-color: #a8a8a8;
    --label-color: #6b6b6b;
    --status-completed-score: #30b34a;
    --status-not-attempted: #808080;
    --score-not-attempted: #a8a8a8;
    --review-link: #565656;
    --divider-color: #dfdfdf;
    --final-title: #363636;
    --font-main: "Plus Jakarta Sans", sans-serif;
}

* {                                                                                                   
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    display: flex;
    /* justify-content: center; */
    background-color: var(--page-bg);
}

/* App Container */
.app {
    /* max-width: 420px; */
    background: transparent;
    border-radius: 28px;
    padding: 16px;
    width: 100%;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 90px;
    margin-bottom:8px;
    padding: 12px 0;
    background: transparent;
}

.header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--header-text);
}

/* Mobile only - center h3 title */
@media (max-width: 767px) {
    .header h3 {
        text-align: center;
        flex: 1;
        margin-right: 90px;
    }
}

/* Breadcrumb styles */
.breadcrumb {
    display: none !important; /* Hide on mobile by default */
}

.app .breadcrumb {
    display: none !important; /* Higher specificity */
}

@media (min-width: 768px) {
    .breadcrumb {
        display: flex !important;
        align-items: center;
        gap: 6px;
        font-size: 16px;
        color: #808080;
        padding: 40px 0px;
        position: sticky;
        top: 0;
        z-index: 150;
    }
    
    .app .breadcrumb {
        display: flex !important;
    }
}

@media (min-width: 1024px) {
    .breadcrumb-divider {
        display: block;
    }
}

/* Assessment Card */
.assessment-card {
    background: var(--white);
    border-radius: 31px;
    padding: 36px 28px;
    margin-bottom: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.11);
}

/* Course Title */
.course-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Hide content by default */
.course-content {
    display: none;
}

/* Show when active */
.assessment-card.active .course-content {
    display: block;
}
/* Arrow base */
.arrow {
    transition: transform 0.3s ease;
}

/* Expanded state */
.assessment-card.active .arrow {
    transform: rotate(180deg);
}


.course-title h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--header-text);
    width: 85%;
    /* margin-top: 16px; */
}

.module {
    font-size: 12px;
    font-weight: 600;
    color: var(--module-color);
    margin-top: 16px;
}

/* Assessment Item */


.topic {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 800;
    color: var(--header-text);
}

/* Row */
.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label {
    margin-top: 16px;
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--label-color);
}

.status {
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;    
    align-items: center;   
    gap: 4px;
    white-space: nowrap; 
}
.status.completed {
    color: var(--status-completed-score);
}
.status img {
    width: 14px;             
    height: 14px;
    position: relative;
    /* top: 0px;             */
}

.status.not-attempted {
    color: var(--status-not-attempted);
}

.score-label {
    margin-top: 16px;
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--label-color);
}
.score {
    font-size: 14px;
    font-weight:800;
    color: var(--status-completed-score);
}

.right {
    text-align: right;
}

/* Links */
.review-link {
    display: inline-flex;
    align-items: center;
    /* gap: 4px; */
    font-size: 13px;
    color: var(--review-link);
    text-decoration: none;
    font-weight: 600;
    margin-top: 16px;
}


.review-row {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end; 
    gap: 4px;
}
.review-row img {
    position: relative;
    top: 2px;
}

/* Divider */
.assessment-divider {
    border: none;
    height: 1px;
    background: var(--divider-color);
    margin: 18px 0;
}
.score.not-attempted {
    color: var(--module-color);
}
/* .review-row:last-child {
    margin-bottom: 16px;
} */

.assessment-card.collapsed {
    padding: 28px;
}
.final{
    font-size: 15px;
    font-weight: 600;
    color: var(--final-title);
    margin-top: 16px;
    /* margin-bottom: 14px; */
}



/* Tablet & Laptop */
@media (min-width: 768px) {
    /* body {
        display: flex;
        justify-content: start;
    } */

    #sidebar-placeholder {
        display: block;
        width: 280px;
        flex-shrink: 0;
    }

    .app {
        /* max-width: 600px; */
        margin-left: 30px;
        margin-right: 30px;
        padding: 0px;
    }

    .header {
        margin-bottom: 20px;
        justify-content: center;
        gap: 0;
    }

    .header a {
        display: none; /* hide back arrow */
    }

    .header h3 {
        text-align: center;
        font-size: 22px;
    }

    .course-list {
        gap: 12px;
    }

    .course-card {
        /* padding: 36px 24px; */
        padding: 24px;
    }

    /* .course-card:last-child {
        margin-bottom: 0px;
    } */
}

/* Desktop - larger screens */
@media (min-width: 1024px) {
    .app {
        /* max-width: 700px; */
        padding: 0px;
    }

    .header h3 {
        font-size: 24px;
    }
    .assessment-list{
        margin-top: 30px;
    }

    .course-card {
        padding: 40px 28px;
    }

    .course-card h4 {
        font-size: 16px;
    }

    .lesson {
        font-size: 16px;
    }
}