/* =========================================================
   NEXTGEN VIRTUAL ACADEMY
   SELENIUM DASHBOARD
   COMPLETE CSS
========================================================= */


/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", sans-serif;
    background: #f4f7fb;
    color: #0f172a;
    line-height: 1.6;
}


button,
input,
textarea,
select {
    font-family: inherit;
}


button {
    cursor: pointer;
}


a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   MAIN SHELL
========================================================= */

.selenium-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.selenium-header {
    height: 72px;

    background: #ffffff;

    border-bottom: 1px solid #dce3ee;

    display: flex;
    align-items: center;

    padding: 0 38px;

    gap: 30px;

    position: sticky;
    top: 0;

    z-index: 1000;
}


/* BRAND */

.selenium-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #0f172a;

    font-size: 17px;
    font-weight: 700;

    white-space: nowrap;
}


.selenium-brand strong {
    color: #0f172a;
}


.selenium-mark {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color: #ffffff;

    font-size: 19px;
    font-weight: 800;

    box-shadow:
        0 6px 15px rgba(37, 99, 235, 0.25);
}


/* NAVIGATION */

.selenium-nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;
}


.selenium-nav a {
    padding: 10px 14px;

    border-radius: 9px;

    color: #334155;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.selenium-nav a:hover {
    background: #f1f5ff;
    color: #2563eb;
}


.selenium-nav a.active {
    background: #eff6ff;
    color: #2563eb;
}


/* PROFILE */

.selenium-profile {
    display: flex;
    align-items: center;

    gap: 10px;

    padding-left: 16px;

    border-left: 1px solid #dce3ee;
}


.selenium-profile > span:last-child {
    display: flex;
    flex-direction: column;
}


.selenium-profile strong {
    font-size: 12px;
    color: #0f172a;
}


.selenium-profile small {
    font-size: 10px;
    color: #64748b;
}


.selenium-avatar {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: #eaf2ff;

    color: #2563eb;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.selenium-content {
    width: min(1280px, calc(100% - 48px));

    margin: 28px auto 50px;

    flex: 1;
}


/* =========================================================
   HERO
========================================================= */

.selenium-hero {
    min-height: 280px;

    border-radius: 22px;

    padding: 34px 38px;

    display: grid;

    grid-template-columns: 1fr 360px;

    align-items: center;

    gap: 32px;

    background:
        linear-gradient(
            115deg,
            #1e3a8a 0%,
            #2563eb 58%,
            #3b82f6 100%
        );

    box-shadow:
        0 16px 35px rgba(30, 64, 175, 0.18);

    border: 1px solid rgba(59, 130, 246, 0.35);
}


.selenium-hero-content {
    color: #ffffff;
}


.selenium-eyebrow {
    display: inline-block;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.7px;
}


.selenium-hero .selenium-eyebrow {
    color: #dbeafe;
}


.selenium-hero h1 {
    margin-top: 12px;

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: clamp(38px, 4vw, 58px);

    line-height: 1.08;

    letter-spacing: -2px;

    font-weight: 800;
}


.selenium-hero h1 em {
    color: #dbeafe;

    font-style: normal;
}


.selenium-hero p {
    max-width: 720px;

    margin-top: 14px;

    color: #eff6ff;

    font-size: 14px;

    line-height: 1.7;
}


/* HERO BUTTONS */

.hero-actions {
    display: flex;

    gap: 10px;

    margin-top: 22px;
}


/* =========================================================
   BUTTONS
========================================================= */

.selenium-btn {
    border: 0;

    min-height: 40px;

    padding: 10px 18px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.selenium-btn:hover {
    transform: translateY(-1px);
}


.selenium-btn-primary {
    background: #ffffff;

    color: #2563eb;

    box-shadow:
        0 7px 18px rgba(15, 23, 42, 0.12);
}


.selenium-btn-primary:hover {
    background: #f8fafc;
}


.selenium-btn-secondary {
    background: transparent;

    color: #2563eb;

    border: 1px solid #b9c8df;
}


.selenium-hero .selenium-btn-secondary {
    color: #ffffff;

    border-color: rgba(255, 255, 255, 0.55);
}


.selenium-hero .selenium-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}


.selenium-complete {
    background: #2563eb;

    color: #ffffff;

    border: 1px solid #2563eb;
}


.selenium-complete:hover {
    background: #1d4ed8;
}


/* =========================================================
   PROGRESS CARD
========================================================= */

.selenium-progress-card {
    min-height: 190px;

    background: #ffffff;

    border-radius: 18px;

    padding: 25px;

    display: flex;

    align-items: center;

    gap: 22px;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.10);
}


.selenium-progress-card > span {
    color: #2563eb;

    font-size: 34px;

    line-height: 1;

    font-weight: 800;

    min-width: 70px;
}


.selenium-progress-card strong {
    display: block;

    color: #0f172a;

    font-size: 13px;
}


.selenium-progress-card p {
    margin-top: 5px;

    color: #64748b;

    font-size: 11px;
}


/* PROGRESS BAR */

.selenium-progress {
    width: 100%;

    min-width: 170px;

    height: 5px;

    margin-top: 14px;

    background: #e8eef7;

    border-radius: 999px;

    overflow: hidden;
}


.selenium-progress span {
    display: block;

    height: 100%;

    width: 0%;

    background: #2563eb;

    border-radius: inherit;

    transition: width 0.35s ease;
}


/* =========================================================
   RESET PROGRESS BUTTON
========================================================= */

.selenium-reset-btn {
    display: inline-block;

    margin-top: 12px;

    padding: 7px 13px;

    border: 1px solid #d7deea;

    border-radius: 7px;

    background: #ffffff;

    color: #64748b;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.selenium-reset-btn:hover {
    background: #f5f8ff;

    color: #2563eb;

    border-color: #2563eb;
}


.selenium-reset-btn:active {
    transform: translateY(1px);
}


/* =========================================================
   TABS
========================================================= */

.selenium-tabs {
    margin-top: 20px;

    min-height: 62px;

    background: #ffffff;

    border: 1px solid #dce3ee;

    border-radius: 13px;

    padding: 7px;

    display: flex;

    align-items: center;

    gap: 4px;

    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.04);
}


.selenium-tab {
    border: 0;

    background: transparent;

    color: #475569;

    padding: 10px 17px;

    border-radius: 9px;

    font-size: 12px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.selenium-tab:hover {
    color: #2563eb;

    background: #f5f8ff;
}


.selenium-tab.active {
    color: #ffffff;

    background: #2563eb;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.20);
}


/* =========================================================
   VIEWS
========================================================= */

.selenium-view {
    display: none;
}


.selenium-view.active {
    display: block;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin: 30px 0 20px;
}


.section-heading h2 {
    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 22px;

    line-height: 1.2;
}


.section-heading p {
    margin-top: 5px;

    color: #64748b;

    font-size: 13px;
}


.module-count {
    display: inline-flex;

    align-items: center;

    white-space: nowrap;

    padding: 7px 12px;

    border-radius: 999px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;
}


/* =========================================================
   ROADMAP
========================================================= */

.selenium-roadmap-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}


.selenium-roadmap-grid article {
    background: #ffffff;

    border: 1px solid #dce3ee;

    border-radius: 15px;

    padding: 22px;

    min-height: 145px;

    box-shadow:
        0 5px 14px rgba(15, 23, 42, 0.04);
}


.selenium-roadmap-grid article > span {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;
}


.selenium-roadmap-grid h3 {
    margin-top: 14px;

    font-size: 14px;
}


.selenium-roadmap-grid p {
    margin-top: 5px;

    color: #64748b;

    font-size: 11px;
}


/* =========================================================
   SUMMARY
========================================================= */

.selenium-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-top: 18px;
}


.selenium-summary-grid article {
    background: #ffffff;

    border: 1px solid #dce3ee;

    border-radius: 15px;

    padding: 22px;

    min-height: 145px;
}


.selenium-summary-grid h3 {
    margin-top: 8px;

    font-size: 15px;
}


.selenium-summary-grid p {
    margin-top: 5px;

    color: #64748b;

    font-size: 12px;
}


.selenium-text-link {
    margin-top: 14px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #2563eb;

    font-size: 12px;

    font-weight: 800;
}


.selenium-text-link:hover {
    text-decoration: underline;
}


/* =========================================================
   LESSON LAYOUT
========================================================= */

.selenium-lesson-layout {
    display: grid;

    grid-template-columns: 280px minmax(0, 1fr);

    gap: 20px;

    align-items: start;
}


/* =========================================================
   LESSON LIST
========================================================= */

.selenium-lesson-list {
    max-height: 720px;

    overflow-y: auto;

    padding-right: 5px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    scrollbar-width: thin;
}


.selenium-lesson-list::-webkit-scrollbar {
    width: 5px;
}


.selenium-lesson-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;

    border-radius: 999px;
}


/* LESSON ITEM */

.selenium-lesson-item {
    width: 100%;

    text-align: left;

    background: #ffffff;

    border: 1px solid #dce3ee;

    border-left: 3px solid transparent;

    border-radius: 11px;

    padding: 13px 14px;

    color: #0f172a;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.selenium-lesson-item:hover {
    background: #f8fbff;

    border-color: #bfdbfe;
}


.selenium-lesson-item.active {
    background: #eff6ff;

    border-color: #2563eb;

    border-left-color: #2563eb;
}


.selenium-lesson-item.completed {
    border-left-color: #16a34a;
}


.selenium-lesson-number {
    display: block;

    color: #2563eb;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}


.selenium-lesson-item strong {
    display: block;

    margin-top: 3px;

    font-size: 12px;
}


.selenium-lesson-status {
    display: block;

    margin-top: 4px;

    color: #64748b;

    font-size: 10px;
}


.selenium-lesson-item.completed
.selenium-lesson-status {
    color: #16a34a;

    font-weight: 700;
}


/* =========================================================
   LESSON READER
========================================================= */

.selenium-lesson-reader {
    min-height: 560px;

    background: #ffffff;

    border: 1px solid #dce3ee;

    border-radius: 16px;

    padding: 30px;

    box-shadow:
        0 6px 16px rgba(15, 23, 42, 0.04);
}


.selenium-lesson-reader h2 {
    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 24px;

    line-height: 1.3;

    margin-bottom: 18px;
}


.selenium-lesson-reader h3 {
    margin-top: 24px;

    margin-bottom: 8px;

    font-size: 16px;
}


.selenium-lesson-reader p {
    color: #475569;

    font-size: 13px;

    line-height: 1.8;

    margin-bottom: 12px;
}


.selenium-lesson-reader ul,
.selenium-lesson-reader ol {
    margin: 10px 0 15px 22px;

    color: #475569;

    font-size: 13px;
}


.selenium-lesson-reader li {
    margin-bottom: 6px;
}


/* CODE */

.lesson-code {
    margin: 15px 0;

    padding: 18px;

    background: #0f172a;

    color: #e2e8f0;

    border-radius: 10px;

    overflow-x: auto;

    font-family:
        "Courier New",
        monospace;

    font-size: 12px;

    line-height: 1.7;
}


/* LESSON ACTIONS */

.selenium-lesson-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 28px;

    padding-top: 20px;

    border-top: 1px solid #e2e8f0;
}


/* =========================================================
   PRACTICE LAB
========================================================= */

.selenium-practice-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}


.selenium-practice-card {
    background: #ffffff;

    border: 1px solid #dce3ee;

    border-radius: 15px;

    padding: 22px;

    min-height: 200px;

    box-shadow:
        0 5px 14px rgba(15, 23, 42, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.selenium-practice-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.08);
}


.practice-number {
    display: inline-flex;

    width: 34px;
    height: 34px;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;
}


.selenium-practice-card h3 {
    margin-top: 14px;

    font-size: 15px;
}


.selenium-practice-card p {
    margin-top: 6px;

    color: #64748b;

    font-size: 12px;
}


.selenium-practice-link {
    display: inline-block;

    margin-top: 15px;

    color: #2563eb;

    font-size: 12px;

    font-weight: 800;
}


.selenium-practice-link:hover {
    text-decoration: underline;
}


.practice-coming {
    display: inline-block;

    margin-top: 15px;

    color: #94a3b8;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   CHALLENGES
========================================================= */

.selenium-challenge-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}


.selenium-challenge-card {
    background: #ffffff;

    border: 1px solid #dce3ee;

    border-radius: 15px;

    padding: 20px;
}


.selenium-challenge-card.passed {
    border-color: #22c55e;

    border-left: 4px solid #22c55e;
}


.challenge-badge {
    display: inline-block;

    padding: 5px 8px;

    border-radius: 6px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 10px;

    font-weight: 800;
}


.selenium-challenge-card h3 {
    margin-top: 12px;

    font-size: 15px;
}


.selenium-challenge-card p {
    margin-top: 6px;

    color: #64748b;

    font-size: 12px;
}


/* =========================================================
   CAPSTONE
========================================================= */

.selenium-capstone {
    background: #ffffff;

    border: 1px solid #dce3ee;

    border-radius: 18px;

    padding: 30px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 30px;

    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.04);
}


.selenium-capstone h3 {
    margin-top: 8px;

    font-size: 19px;
}


.selenium-capstone p {
    margin-top: 10px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.7;
}


.capstone-requirements h3 {
    margin-top: 0;
}


.capstone-requirements ul {
    margin: 12px 0 0 20px;

    color: #475569;

    font-size: 12px;
}


.capstone-requirements li {
    margin-bottom: 7px;
}


.selenium-capstone > .selenium-btn {
    grid-column: 1 / -1;

    justify-self: flex-start;
}


/* =========================================================
   FOOTER
========================================================= */

.selenium-footer {
    min-height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 15px 20px;

    border-top: 1px solid #dce3ee;

    background: #ffffff;

    color: #64748b;

    font-size: 10px;

    text-align: center;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .selenium-hero {
        grid-template-columns: 1fr;
    }


    .selenium-progress-card {
        max-width: 500px;
    }


    .selenium-roadmap-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .selenium-practice-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .selenium-challenge-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 800px) {

    .selenium-header {
        height: auto;

        min-height: 70px;

        padding: 12px 18px;

        flex-wrap: wrap;
    }


    .selenium-nav {
        order: 3;

        width: 100%;

        justify-content: center;

        overflow-x: auto;
    }


    .selenium-profile {
        margin-left: auto;
    }


    .selenium-content {
        width: min(
            100% - 24px,
            1280px
        );

        margin-top: 15px;
    }


    .selenium-hero {
        padding: 25px;

        border-radius: 16px;
    }


    .selenium-hero h1 {
        font-size: 38px;

        letter-spacing: -1.5px;
    }


    .selenium-tabs {
        overflow-x: auto;
    }


    .selenium-lesson-layout {
        grid-template-columns: 1fr;
    }


    .selenium-lesson-list {
        max-height: 280px;
    }


    .selenium-summary-grid {
        grid-template-columns: 1fr;
    }


    .selenium-capstone {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 560px) {

    .selenium-brand > span:last-child {
        font-size: 14px;
    }


    .selenium-profile > span:last-child {
        display: none;
    }


    .selenium-hero h1 {
        font-size: 32px;
    }


    .hero-actions {
        flex-direction: column;
    }


    .hero-actions .selenium-btn {
        width: 100%;
    }


    .selenium-progress-card {
        padding: 18px;

        gap: 12px;
    }


    .selenium-progress-card > span {
        font-size: 27px;

        min-width: 58px;
    }


    .selenium-roadmap-grid,
    .selenium-practice-grid,
    .selenium-challenge-grid {
        grid-template-columns: 1fr;
    }


    .selenium-lesson-reader {
        padding: 20px;
    }


    .selenium-lesson-actions {
        flex-direction: column;
    }


    .selenium-lesson-actions .selenium-btn {
        width: 100%;
    }

}