
/* =========================================
   AKL LEARNER DASHBOARD
========================================= */

#learner-dashboard-page {
    min-height: 100vh;
    background: #FFFFFF;
    color: #25213A;
    font-family: Arial, sans-serif;
}


/* =========================================
   DASHBOARD HEADER AND NAVIGATION
========================================= */

.learner-dashboard-header {
    min-height: 86px;
    padding: 10px 4.5%;
    background: linear-gradient(110deg, #351078, #4B2490);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    box-shadow: 0 3px 12px rgba(34, 0, 112, 0.15);

    position: sticky;
    top: 0;
    z-index: 1000;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.learner-dashboard-logo {
    width: 85px;
    height: 60px;
    object-fit: contain;
}

.dashboard-brand-text h2 {
    margin: 0;
    color: #FFFFFF;
    font-size: 21px;
    font-weight: 700;
}

.dashboard-brand-text p {
    margin: 5px 0 0;
    color: #E8DFFB;
    font-size: 13px;
}

.dashboard-portal-title {
    margin-left: 28px;
    padding-left: 28px;
    border-left: 2px solid rgba(255,255,255,0.7);
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 600;
}


/* NAVIGATION */

.dashboard-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-nav-btn {
    position: relative;
    border: none;
    border-radius: 10px;
    padding: 13px 19px;
    background: transparent;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.dashboard-nav-btn span:first-child {
    font-size: 23px;
    line-height: 1;
}

.dashboard-nav-btn:hover,
.dashboard-nav-btn.active {
    background: rgba(255,255,255,0.20);
}

.notification-dot {
    position: absolute;
    top: 7px;
    right: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF6262;
}




/* MAIN CONTENT */

.learner-dashboard-content {
    width: 100%;
    max-width: 1600px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 36px 3%;
}

/* =========================================
   WELCOME BANNER - DESKTOP
========================================= */

.dashboard-welcome {
    position: relative;
    min-height: 185px;
    padding: 23px 18px 110px;

    display: flex;
    align-items: center;

    background-color: #F1EAFE;

    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(34, 0, 112, 0.08);

    overflow: hidden;
}

/* Decorative artwork on the right */


.dashboard-welcome::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;

    background-image: url("../assets/img/learner-dashboard-banner.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;

    z-index: 0;
    pointer-events: none;
}


/* Welcome text */

.dashboard-welcome-text {
    position: relative;
    z-index: 1;

    max-width: 54%;
}

/* Hide the old illustration element */

.dashboard-welcome-illustration {
    display: none;
}


/* MAIN TWO-COLUMN LAYOUT */

.dashboard-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
    gap: 28px;
    margin-top: 32px;
    align-items: stretch;
}

/* SECTION HEADINGS */

.dashboard-section-heading {
    margin-bottom: 20px;
}

.dashboard-section-heading h2,
.dashboard-journey-header h2 {
    margin: 0;
    color: #220070;
    font-size: 21px;
    font-weight: 700;
}

.dashboard-section-heading p {
    margin: 7px 0 0;
    color: #77718B;
    font-size: 13px;
    line-height: 1.5;
}


/* ACTIVITY CARDS */

.learner-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.learner-dashboard-card {
    min-height: 260px;
    padding: 26px;
    border: 1px solid transparent;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.learner-dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 22px rgba(34, 0, 112, 0.10);
}

.diagnostic-card {
    background: #F0EAFE;
    border-color: #E2D6FF;
    color: #45218B;
}

.courses-card {
    background: #E8F2FF;
    border-color: #D4E5FF;
    color: #18549A;
}

.performance-card {
    background: #E8F7EE;
    border-color: #D3EBDD;
    color: #216C42;
}

.completion-card {
    background: #FFF3E4;
    border-color: #F5E2C7;
    color: #95601B;
}

.dashboard-card-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.dashboard-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-card-title {
    font-size: 20px;
    font-weight: 700;
}

.dashboard-card-description {
    color: #5F5B70;
    font-size: 12px;
    line-height: 1.55;
}

.dashboard-card-action {
    margin-top: auto;
    padding: 11px 20px;
    border-radius: 9px;
    background: #4930A5;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card-action span {
    margin-left: 0;
    font-size: 21px;
    line-height: 1;
}

.dashboard-card-action span {
    margin-left: 5px;
    font-size: 18px;
}


/* LEARNING JOURNEY */

.dashboard-journey {
    padding: 25px;
    border: 1px solid #E9E5F0;
    border-radius: 15px;
    background: #FFFFFF;
    box-shadow: 0 3px 14px rgba(34, 0, 112, 0.04);
}

.dashboard-journey-header {
    margin: -25px -25px 25px;
    padding: 20px 25px;
    background: linear-gradient(110deg, #220070, #4930A5);
    border-radius: 15px 15px 0 0;
}

.dashboard-journey-header h2 {
    margin: 0;
    color: #FFFFFF;
    font-size: 21px;
    font-weight: 700;
}

.dashboard-journey-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dashboard-journey-list::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 19px;
    bottom: 19px;
    width: 2px;
    background: #E4DEEF;
}

.journey-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.journey-marker {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 2px solid #DDD6EA;
    border-radius: 50%;
    background: #FFFFFF;
    color: #89819C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.journey-item.completed .journey-marker {
    border-color: #27965C;
    background: #27965C;
    color: #FFFFFF;
}

.journey-item.current .journey-marker {
    border-color: #220070;
    background: #220070;
    color: #FFFFFF;
}

.journey-details h3 {
    margin: 2px 0 5px;
    color: #30294A;
    font-size: 14px;
    font-weight: 700;
}

.journey-details p {
    margin: 0;
    color: #888197;
    font-size: 12px;
    line-height: 1.5;
}


/* WHAT'S NEXT */

.dashboard-next-step {
    margin-top: 28px;
    padding: 23px 28px;
    border: 1px solid #DCD3F1;
    border-radius: 14px;
    background: #EEE9FA;
    display: flex;
    align-items: center;
    gap: 18px;
}

.next-step-icon {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #220070;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: 700;
}

.next-step-content h2 {
    margin: 0 0 6px;
    color: #220070;
    font-size: 17px;
}

.next-step-content p {
    margin: 0;
    color: #5E5675;
    font-size: 13px;
    line-height: 1.6;
}


/* FOOTER */

.dashboard-footer {
    margin-top: 32px;
    padding: 20px 0;
    border-top: 1px solid #E6E2ED;
    text-align: center;
}

.dashboard-footer p {
    margin: 5px 0;
    color: #77718B;
    font-size: 12px;
}

.dashboard-footer p:first-child {
    color: #220070;
    font-weight: 700;
}


/* TABLET */

/* Hide mobile header actions on desktop */

.mobile-header-actions {
    display: none;
}

@media (max-width: 900px) {

    .learner-dashboard-header {
        flex-wrap: wrap;
    }

    .dashboard-navigation {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .dashboard-main-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-journey-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .dashboard-journey-list::before {
        display: none;
    }

}



/* =========================================
   MOBILE DASHBOARD - COMPLETE RESPONSIVE CSS
========================================= */

@media (max-width: 600px) {

    /* =====================================
       MOBILE HEADER
    ===================================== */

    .learner-dashboard-header {
        position: sticky;
        z-index: 1000;

        min-height: 76px;
        padding: 10px 14px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        flex-wrap: nowrap;
        gap: 8px;
    }

    .dashboard-brand {
        display: flex;
        align-items: center;

        flex: 1;
        min-width: 0;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .mobile-menu-toggle {
        display: block;
        flex-shrink: 0;

        border: none;
        background: transparent;
        color: #FFFFFF;

        font-size: 30px;
        padding: 4px;
        cursor: pointer;
    }

    .learner-dashboard-logo {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .dashboard-brand-text {
        min-width: 0;
    }

    .dashboard-brand-text h2 {
        font-size: 12px;
        line-height: 1.3;
    }

    .dashboard-brand-text p {
        font-size: 9px;
        margin-top: 3px;
    }

    .dashboard-portal-title {
        display: none;
    }


    /* =====================================
       MOBILE HEADER ICONS
    ===================================== */

    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .mobile-header-btn {
        position: relative;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        border: none;
        background: transparent;
        color: #FFFFFF;

        font-size: 25px;
        padding: 5px;
        cursor: pointer;
        box-shadow: none;
    }

    .notification-dot {
        position: absolute;
        top: 2px;
        right: 1px;

        width: 9px;
        height: 9px;

        border-radius: 50%;
        background: #FF6262;
    }


    /* =====================================
       DESKTOP NAVIGATION - HIDDEN ON MOBILE
    ===================================== */

    .dashboard-navigation {
        display: none !important;
    }


    /* =====================================
       MOBILE NAVIGATION DRAWER
    ===================================== */

    .dashboard-mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        width: 100%;
        z-index: 1001;

        display: none;
        flex-direction: column;

        padding: 10px 16px;

        background: #351078;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
    }

    .dashboard-mobile-menu:not(.hidden) {
        display: flex;
    }

    .dashboard-mobile-menu button {
        width: 100%;
        padding: 14px 12px;

        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);

        background: transparent;
        color: #FFFFFF;

        text-align: left;
        font-size: 15px;
        cursor: pointer;
    }

    .dashboard-mobile-menu button:last-child {
        border-bottom: none;
    }


    /* =====================================
       DASHBOARD CONTENT
    ===================================== */

    .learner-dashboard-content {
        padding: 18px 4%;
    }


/* =====================================
   MOBILE WELCOME BANNER
===================================== */

.dashboard-welcome {
    position: relative;

    height: 150px;
    min-height: 150px;
    box-sizing: border-box;

    padding: 18px;

    display: flex;
    align-items: flex-start;

    overflow: hidden;
    border-radius: 14px;

    background-color: #F1EAFE;
    background-image: none;
}


.dashboard-welcome::after {
    content: "";
    position: absolute;

    right: 0;
    bottom: 0;

    width: 60%;
    height: 43%;

    background-image: url("../assets/img/learner-dashboard-banner.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;

    pointer-events: none;
    z-index: 0;
}

.dashboard-welcome-text {
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.dashboard-welcome h1 {
    max-width: 100%;
    font-size: clamp(20px, 5.2vw, 24px);
    line-height: 1.3;
}

.dashboard-welcome-text > p:last-child {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.5;
}

.dashboard-welcome-illustration {
    display: none;
}



    /* =====================================
       MAIN DASHBOARD LAYOUT
    ===================================== */

    .dashboard-main-layout {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 25px;
    }

    .dashboard-section-heading h2,
    .dashboard-journey-header h2 {
        font-size: 18px;
    }

    .learner-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .learner-dashboard-card {
        min-height: 175px;
        padding: 18px;
    }


    /* =====================================
       LEARNING JOURNEY
    ===================================== */

    .dashboard-journey {
        padding: 20px 16px;
    }

    .dashboard-journey-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* =====================================
       WHAT'S NEXT
    ===================================== */

    .dashboard-next-step {
        padding: 18px;
        align-items: flex-start;
        gap: 12px;
    }

    .next-step-icon {
        width: 35px;
        height: 35px;
        font-size: 19px;
    }

    .next-step-content h2 {
        font-size: 15px;
    }

    .next-step-content p {
        font-size: 12px;
    }

}



/* =========================================
   MOBILE ACTIVITY CARDS - HORIZONTAL LAYOUT
========================================= */

@media (max-width: 600px) {

    .learner-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .learner-dashboard-card {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr) 24px;
        align-items: center;
        column-gap: 12px;

        min-height: 125px;
        padding: 16px;

        text-align: left;
    }

    .dashboard-card-icon {
        grid-column: 1;
        grid-row: 1;
        width: 58px;
        height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
    }

    .dashboard-card-content {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }

    .dashboard-card-title {
        font-size: 16px;
        line-height: 1.3;
    }

    .dashboard-card-description {
        font-size: 12px;
        line-height: 1.5;
    }

    .dashboard-card-action {
        grid-column: 3;
        grid-row: 1;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 0;
        padding: 0;
        margin: 0;
        white-space: nowrap;
    }

    .dashboard-card-action > span {
        font-size: 26px;
        line-height: 1;
    }

}


/* MOBILE CARD ARROW - SIMPLE CHEVRON */

@media (max-width: 600px) {

    .dashboard-card-action {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #220070 !important;
        width: auto;
        height: auto;
    }

    .dashboard-card-action > span {
        color: #220070;
        font-size: 30px;
        font-weight: 400;
    }

}

/* =====================================
   DASHBOARD PROFILE DROPDOWN
===================================== */

.dashboard-profile-dropdown {
    position: relative;
}

.dashboard-profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;

    min-width: 210px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

    padding: 6px;

    z-index: 1000;
}

.dashboard-profile-menu button {
    display: block;
    width: 100%;

    padding: 11px 12px;

    border: none;
    border-radius: 7px;

    background: transparent;

    color: #220070;

    text-align: left;
    font-size: 14px;

    cursor: pointer;
}

.dashboard-profile-menu button:hover {
    background: rgba(34, 0, 112, 0.08);
}

/* Hide mobile menu toggle on desktop */

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}


