/* =========================================================
   NEXTGEN VIRTUAL ACADEMY
   SELENIUM SHADOW DOM PRACTICE LAB
========================================================= */

* {
    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 {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   SHELL
========================================================= */

.shadow-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.shadow-header {
    min-height: 72px;

    display: flex;
    align-items: center;

    gap: 30px;

    padding: 0 38px;

    background: #ffffff;

    border-bottom: 1px solid #dce3ee;

    position: sticky;
    top: 0;

    z-index: 1000;
}


/* =========================================================
   BRAND
========================================================= */

.shadow-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #0f172a;

    font-size: 17px;
    font-weight: 700;

    white-space: nowrap;
}

.shadow-brand strong {
    color: #0f172a;
}

.shadow-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
========================================================= */

.shadow-nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;
}

.shadow-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;
}

.shadow-nav a:hover {
    background: #f1f5ff;

    color: #2563eb;
}

.shadow-nav a.active {
    background: #eff6ff;

    color: #2563eb;
}


/* =========================================================
   PROFILE
========================================================= */

.shadow-profile {
    display: flex;
    align-items: center;

    gap: 10px;

    padding-left: 16px;

    border-left: 1px solid #dce3ee;
}

.shadow-profile > span:last-child {
    display: flex;
    flex-direction: column;
}

.shadow-profile strong {
    color: #0f172a;

    font-size: 12px;
}

.shadow-profile small {
    color: #64748b;

    font-size: 10px;
}

.shadow-avatar {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf2ff;

    color: #2563eb;

    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   MAIN
========================================================= */

.shadow-content {
    width: min(
        1280px,
        calc(100% - 48px)
    );

    margin: 28px auto 50px;

    flex: 1;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.shadow-back-row {
    margin-bottom: 14px;
}

.shadow-back-button {
    display: inline-flex;
    align-items: center;

    padding: 9px 14px;

    border: 1px solid #bfdbfe;

    border-radius: 8px;

    background: #ffffff;

    color: #2563eb;

    font-size: 12px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.shadow-back-button:hover {
    background: #eff6ff;

    color: #1d4ed8;

    transform:
        translateY(-1px);

    box-shadow:
        0 5px 12px
        rgba(
            37,
            99,
            235,
            0.12
        );
}


/* =========================================================
   HERO
========================================================= */

.shadow-hero {
    min-height: 250px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 38px;

    border-radius: 22px;

    background:
        linear-gradient(
            115deg,
            #1e3a8a 0%,
            #2563eb 58%,
            #3b82f6 100%
        );

    border: 1px solid
        rgba(
            59,
            130,
            246,
            0.35
        );

    box-shadow:
        0 16px 35px
        rgba(
            30,
            64,
            175,
            0.18
        );
}

.shadow-eyebrow {
    display: inline-block;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.7px;
}

.shadow-hero .shadow-eyebrow {
    color: #dbeafe;
}

.shadow-hero h1 {
    margin-top: 12px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size:
        clamp(
            38px,
            4vw,
            55px
        );

    line-height: 1.08;

    letter-spacing: -2px;

    color: #ffffff;

    font-weight: 800;
}

.shadow-hero h1 em {
    display: block;

    color: #dbeafe;

    font-style: normal;
}

.shadow-hero p {
    max-width: 760px;

    margin-top: 14px;

    color: #eff6ff;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   HERO BADGE
========================================================= */

.shadow-hero-badge {
    width: 150px;
    height: 150px;

    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    border-radius: 28px;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );

    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.25
        );

    color: #ffffff;

    backdrop-filter: blur(8px);
}

.shadow-hero-badge span {
    color: #dbeafe;

    font-size: 10px;

    letter-spacing: 1px;

    font-weight: 700;
}

.shadow-hero-badge strong {
    margin-top: 5px;

    font-size: 27px;

    letter-spacing: 0.5px;
}


/* =========================================================
   INFORMATION CARD
========================================================= */

.shadow-info-card {
    margin-top: 20px;

    display: grid;

    grid-template-columns:
        280px 1fr;

    gap: 30px;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #dce3ee;

    border-radius: 16px;

    box-shadow:
        0 5px 14px
        rgba(
            15,
            23,
            42,
            0.04
        );
}

.shadow-info-card h2 {
    margin-top: 7px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 19px;
}

.shadow-info-card ul {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px 25px;

    padding-left: 20px;

    color: #475569;

    font-size: 12px;
}

.shadow-info-card li::marker {
    color: #2563eb;
}


/* =========================================================
   LAB CARD
========================================================= */

.shadow-lab-card {
    margin-top: 20px;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #dce3ee;

    border-radius: 18px;

    box-shadow:
        0 6px 16px
        rgba(
            15,
            23,
            42,
            0.04
        );
}


/* =========================================================
   CARD HEADER
========================================================= */

.shadow-card-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.shadow-card-header > div:first-child {
    display: flex;

    align-items: flex-start;

    gap: 12px;
}

.shadow-number {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 12px;

    font-weight: 800;
}

.shadow-card-header h2 {
    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 18px;
}

.shadow-card-header p {
    margin-top: 3px;

    color: #64748b;

    font-size: 12px;
}

.shadow-tag {
    flex-shrink: 0;

    padding: 6px 10px;

    border-radius: 999px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.5px;
}


/* =========================================================
   DEMO AREA
========================================================= */

.shadow-demo {
    min-height: 180px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 14px;

    padding: 25px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );

    border: 1px solid #dce3ee;
}


/* =========================================================
   BUTTONS
========================================================= */

.shadow-primary-button {
    min-width: 210px;

    padding: 11px 18px;

    border: 0;

    border-radius: 8px;

    background: #2563eb;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    box-shadow:
        0 5px 12px
        rgba(
            37,
            99,
            235,
            0.18
        );

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.shadow-primary-button:hover {
    background: #1d4ed8;

    transform:
        translateY(-1px);

    box-shadow:
        0 7px 15px
        rgba(
            37,
            99,
            235,
            0.22
        );
}


/* =========================================================
   RESULT
========================================================= */

.shadow-result {
    min-height: 22px;

    color: #166534;

    font-size: 12px;

    font-weight: 700;

    text-align: center;
}


/* =========================================================
   SHADOW HOST
========================================================= */

.shadow-host-box {
    width: min(
        500px,
        100%
    );

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 18px;

    border: 2px solid #93c5fd;

    border-radius: 11px;

    background: #ffffff;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.shadow-host-box span {
    color: #64748b;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;
}

.shadow-host-box strong {
    color: #2563eb;

    font-family:
        "Courier New",
        monospace;

    font-size: 12px;
}

.shadow-host-box.selected {
    border-color: #22c55e;

    background: #f0fdf4;

    box-shadow:
        0 0 0 4px
        rgba(
            34,
            197,
            94,
            0.08
        );
}


/* =========================================================
   SHADOW ROOT
========================================================= */

.shadow-root-demo {
    width: min(
        500px,
        100%
    );

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 18px;

    border: 1px solid #bfdbfe;

    border-radius: 11px;

    background: #ffffff;
}

.shadow-root-demo span {
    color: #64748b;

    font-size: 11px;

    font-weight: 700;
}

.shadow-root-demo strong {
    padding: 6px 11px;

    border-radius: 999px;

    background: #dcfce7;

    color: #15803d;

    font-size: 9px;

    letter-spacing: 0.5px;
}

.shadow-root-demo.opened {
    border-color: #86efac;
}


/* =========================================================
   SHADOW COMPONENT
========================================================= */

.shadow-component {
    width: min(
        500px,
        100%
    );

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    padding: 20px;

    border: 2px solid #c4b5fd;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #faf5ff,
            #eff6ff
        );
}

.shadow-component > span {
    color: #64748b;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.6px;
}

.shadow-component input {
    width: min(
        380px,
        100%
    );

    min-height: 43px;

    padding: 10px 13px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    outline: none;

    background: #ffffff;

    color: #0f172a;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.shadow-component input:focus {
    border-color: #8b5cf6;

    box-shadow:
        0 0 0 3px
        rgba(
            139,
            92,
            246,
            0.08
        );
}

.shadow-component input.selected {
    border-color: #22c55e;

    background: #f0fdf4;
}


/* =========================================================
   SHADOW INNER BUTTON
========================================================= */

.shadow-inner-button {
    padding: 10px 17px;

    border: 1px solid #93c5fd;

    border-radius: 8px;

    background: #ffffff;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.shadow-inner-button:hover {
    background: #eff6ff;

    transform:
        translateY(-1px);
}

.shadow-inner-button.selected {
    background: #dcfce7;

    border-color: #86efac;

    color: #15803d;
}


/* =========================================================
   SHADOW MESSAGE
========================================================= */

.shadow-message {
    width: min(
        550px,
        100%
    );

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    padding: 20px;

    border: 1px solid #bfdbfe;

    border-radius: 11px;

    background: #ffffff;
}

.shadow-message span {
    color: #64748b;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;
}

.shadow-message strong {
    color: #1d4ed8;

    font-size: 13px;
}

.shadow-message.selected {
    border-color: #86efac;

    background: #f0fdf4;
}


/* =========================================================
   NESTED SHADOW
========================================================= */

.nested-shadow-box {
    width: min(
        600px,
        100%
    );

    padding: 20px;

    border: 2px solid #93c5fd;

    border-radius: 14px;

    background: #ffffff;
}

.nested-shadow-box > span {
    display: block;

    margin-bottom: 12px;

    color: #2563eb;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}

.nested-inner-box {
    padding: 18px;

    border: 2px solid #c4b5fd;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #faf5ff,
            #f8fafc
        );
}

.nested-inner-box span {
    display: block;

    margin-bottom: 6px;

    color: #7c3aed;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}

.nested-inner-box strong {
    display: block;

    color: #334155;

    font-size: 12px;
}

.nested-inner-box.selected {
    border-color: #22c55e;

    background: #f0fdf4;
}


/* =========================================================
   EMPLOYEE SHADOW CARD
========================================================= */

.employee-shadow-card {
    width: min(
        700px,
        100%
    );

    display: grid;

    grid-template-columns:
        1fr 1fr auto;

    align-items: center;

    gap: 20px;

    padding: 20px;

    border: 2px solid #c4b5fd;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #faf5ff,
            #eff6ff
        );
}

.employee-shadow-card > div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.employee-shadow-card span {
    color: #64748b;

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.employee-shadow-card strong {
    color: #0f172a;

    font-size: 12px;
}

.employee-shadow-card.selected {
    border-color: #22c55e;

    background: #f0fdf4;
}


/* =========================================================
   HINT
========================================================= */

.shadow-hint {
    margin-top: 15px;

    padding: 14px 16px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-left: 3px solid #2563eb;

    border-radius: 9px;
}

.shadow-hint strong {
    display: block;

    margin-bottom: 7px;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.shadow-hint code {
    display: block;

    padding: 9px 11px;

    overflow-x: auto;

    border-radius: 7px;

    background: #0f172a;

    color: #e2e8f0;

    font-family:
        "Courier New",
        monospace;

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   CHEAT SHEET
========================================================= */

.shadow-cheat-sheet {
    margin-top: 20px;

    padding: 28px;

    border-radius: 18px;

    background:
        linear-gradient(
            115deg,
            #1e3a8a,
            #2563eb
        );

    color: #ffffff;

    box-shadow:
        0 12px 28px
        rgba(
            30,
            64,
            175,
            0.15
        );
}

.shadow-cheat-sheet .shadow-eyebrow {
    color: #dbeafe;
}

.shadow-cheat-sheet h2 {
    margin-top: 7px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 22px;
}

.shadow-code-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 15px;

    margin-top: 20px;
}

.shadow-code-grid > div {
    padding: 16px;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.16
        );
}

.shadow-code-grid strong {
    display: block;

    margin-bottom: 9px;

    color: #dbeafe;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.shadow-code-grid pre {
    margin: 0;

    overflow-x: auto;

    color: #ffffff;

    font-family:
        "Courier New",
        monospace;

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.shadow-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: 1050px) {

    .shadow-header {
        gap: 15px;

        padding: 0 20px;
    }

    .shadow-nav {
        gap: 3px;
    }

    .shadow-nav a {
        padding: 8px 9px;

        font-size: 11px;
    }

}


@media (max-width: 900px) {

    .shadow-hero {
        flex-direction: column;

        align-items: flex-start;
    }

    .shadow-hero-badge {
        width: 110px;
        height: 110px;

        border-radius: 20px;
    }

    .shadow-hero-badge strong {
        font-size: 23px;
    }

    .shadow-info-card {
        grid-template-columns: 1fr;
    }

    .employee-shadow-card {
        grid-template-columns:
            1fr 1fr;
    }

    .employee-shadow-card .shadow-inner-button {
        grid-column: 1 / -1;

        justify-self: center;
    }

}


@media (max-width: 800px) {

    .shadow-header {
        min-height: 70px;

        padding: 12px 18px;

        flex-wrap: wrap;
    }

    .shadow-nav {
        order: 3;

        width: 100%;

        justify-content: center;

        overflow-x: auto;
    }

    .shadow-profile {
        margin-left: auto;
    }

    .shadow-content {
        width: min(
            calc(100% - 24px),
            1280px
        );

        margin-top: 15px;
    }

    .shadow-hero {
        padding: 27px;

        border-radius: 17px;
    }

    .shadow-info-card ul {
        grid-template-columns: 1fr;
    }

    .shadow-code-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .shadow-brand > span:last-child {
        font-size: 14px;
    }

    .shadow-profile > span:last-child {
        display: none;
    }

    .shadow-hero h1 {
        font-size: 34px;

        letter-spacing: -1px;
    }

    .shadow-lab-card {
        padding: 18px;
    }

    .shadow-card-header {
        flex-direction: column;
    }

    .shadow-demo {
        padding: 20px 15px;
    }

    .shadow-host-box,
    .shadow-root-demo {
        flex-direction: column;

        align-items: flex-start;
    }

    .employee-shadow-card {
        grid-template-columns: 1fr;
    }

    .employee-shadow-card .shadow-inner-button {
        grid-column: auto;

        justify-self: center;
    }

    .shadow-cheat-sheet {
        padding: 20px;
    }

}