/* =========================================================
   NEXTGEN VIRTUAL ACADEMY
   SELENIUM WINDOWS & TABS PRACTICE LAB
   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;
}


/* =========================================================
   SHELL
========================================================= */

.windows-shell {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.windows-header {
    min-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
========================================================= */

.windows-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #0f172a;

    font-size: 17px;
    font-weight: 700;

    white-space: nowrap;
}


.windows-brand strong {
    color: #0f172a;
}


.windows-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
========================================================= */

.windows-nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;
}


.windows-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;
}


.windows-nav a:hover {
    background: #f1f5ff;

    color: #2563eb;
}


.windows-nav a.active {
    background: #eff6ff;

    color: #2563eb;
}


/* =========================================================
   PROFILE
========================================================= */

.windows-profile {
    display: flex;
    align-items: center;

    gap: 10px;

    padding-left: 16px;

    border-left: 1px solid #dce3ee;
}


.windows-profile > span:last-child {
    display: flex;
    flex-direction: column;
}


.windows-profile strong {
    font-size: 12px;

    color: #0f172a;
}


.windows-profile small {
    font-size: 10px;

    color: #64748b;
}


.windows-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
========================================================= */

.windows-content {
    width: min(
        1280px,
        calc(100% - 48px)
    );

    margin: 28px auto 50px;

    flex: 1;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.windows-back-row {
    margin-bottom: 14px;
}


.windows-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;
}


.windows-back-button:hover {
    background: #eff6ff;

    color: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px
        rgba(
            37,
            99,
            235,
            0.12
        );
}


/* =========================================================
   HERO
========================================================= */

.windows-hero {
    min-height: 250px;

    border-radius: 22px;

    padding: 38px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    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
        );
}


.windows-eyebrow {
    display: inline-block;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.7px;
}


.windows-hero .windows-eyebrow {
    color: #dbeafe;
}


.windows-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;
}


.windows-hero h1 em {
    display: block;

    color: #dbeafe;

    font-style: normal;
}


.windows-hero p {
    max-width: 720px;

    margin-top: 14px;

    color: #eff6ff;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   HERO BADGE
========================================================= */

.windows-hero-badge {
    width: 150px;
    height: 150px;

    flex-shrink: 0;

    border-radius: 28px;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );

    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.25
        );

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    color: #ffffff;

    backdrop-filter: blur(8px);
}


.windows-hero-badge span {
    font-size: 11px;

    letter-spacing: 1px;

    color: #dbeafe;

    font-weight: 700;
}


.windows-hero-badge strong {
    margin-top: 5px;

    font-size: 27px;

    letter-spacing: 0.5px;
}


/* =========================================================
   INFORMATION CARD
========================================================= */

.windows-info-card {
    margin-top: 20px;

    background: #ffffff;

    border: 1px solid #dce3ee;

    border-radius: 16px;

    padding: 25px;

    display: grid;

    grid-template-columns:
        280px 1fr;

    gap: 30px;

    box-shadow:
        0 5px 14px
        rgba(
            15,
            23,
            42,
            0.04
        );
}


.windows-info-card h2 {
    margin-top: 7px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 19px;
}


.windows-info-card ul {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 10px 25px;

    padding-left: 20px;

    color: #475569;

    font-size: 12px;
}


.windows-info-card li::marker {
    color: #2563eb;
}


/* =========================================================
   LAB CARD
========================================================= */

.windows-lab-card {
    margin-top: 20px;

    background: #ffffff;

    border: 1px solid #dce3ee;

    border-radius: 18px;

    padding: 25px;

    box-shadow:
        0 6px 16px
        rgba(
            15,
            23,
            42,
            0.04
        );
}


/* =========================================================
   CARD HEADER
========================================================= */

.windows-card-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}


.windows-card-header > div:first-child {
    display: flex;

    align-items: flex-start;

    gap: 12px;
}


.windows-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;
}


.windows-card-header h2 {
    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 18px;
}


.windows-card-header p {
    margin-top: 3px;

    color: #64748b;

    font-size: 12px;
}


.windows-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
========================================================= */

.windows-demo {
    padding: 22px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );

    border: 1px solid #dce3ee;
}


/* =========================================================
   PARENT WINDOW
========================================================= */

.window-demo-panel {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 18px;

    border-radius: 12px;

    background: #ffffff;

    border: 1px solid #dbe5f0;
}


.window-demo-panel > div {
    display: flex;

    flex-direction: column;
}


.window-demo-icon {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #2563eb;

    color: #ffffff;

    font-size: 17px;

    font-weight: 800;
}


.window-demo-panel strong {
    font-size: 13px;

    color: #0f172a;
}


.window-demo-panel small {
    margin-top: 2px;

    color: #64748b;

    font-size: 11px;
}


/* =========================================================
   ACTION BUTTON
========================================================= */

.windows-action-button {
    padding: 10px 17px;

    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;
}


.windows-action-button:hover {
    background: #1d4ed8;

    transform:
        translateY(-1px);

    box-shadow:
        0 7px 15px
        rgba(
            37,
            99,
            235,
            0.23
        );
}


.windows-action-button.secondary {
    background: #ffffff;

    color: #2563eb;

    border: 1px solid #bfdbfe;

    box-shadow: none;
}


.windows-action-button.secondary:hover {
    background: #eff6ff;
}


/* =========================================================
   RESULT
========================================================= */

.windows-result {
    margin-top: 14px;

    min-height: 22px;

    color: #166534;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   CHILD WINDOW
========================================================= */

.child-window-area {
    min-height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;
}


.window-box {
    min-width: 140px;

    min-height: 90px;

    padding: 15px;

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 6px;

    border: 1px solid #bfdbfe;

    background: #ffffff;

    color: #1e40af;
}


.window-box span {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eff6ff;

    color: #2563eb;

    font-weight: 800;
}


.window-box strong {
    font-size: 11px;
}


.child-box {
    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.child-box:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 8px 18px
        rgba(
            37,
            99,
            235,
            0.15
        );
}


.window-arrow {
    color: #2563eb;

    font-size: 25px;

    font-weight: 800;
}


/* =========================================================
   MULTIPLE WINDOWS
========================================================= */

.multi-window-controls {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


/* =========================================================
   TABS
========================================================= */

.tab-demo {
    display: flex;

    align-items: flex-end;

    gap: 6px;

    min-height: 100px;

    padding: 20px;

    background: #dbe4f0;

    border-radius: 10px 10px 0 0;
}


.browser-tab {
    min-width: 130px;

    padding: 12px 18px;

    border: 1px solid #cbd5e1;

    border-bottom: 0;

    border-radius: 8px 8px 0 0;

    background: #ffffff;

    color: #475569;

    font-size: 11px;

    font-weight: 700;
}


.active-tab {
    color: #2563eb;

    background: #ffffff;
}


.new-tab {
    cursor: pointer;

    color: #2563eb;

    transition:
        background 0.2s ease;
}


.new-tab:hover {
    background: #eff6ff;
}


/* =========================================================
   SWITCH WINDOWS
========================================================= */

.switch-window-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 15px;
}


.switch-window-card {
    padding: 22px;

    border-radius: 12px;

    background: #ffffff;

    border: 2px solid #dbe5f0;

    color: #334155;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.switch-window-card:hover {
    transform:
        translateY(-2px);

    border-color: #93c5fd;
}


.switch-window-card.selected {
    border-color: #2563eb;

    background: #eff6ff;

    color: #2563eb;
}


.switch-window-card span {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf2ff;

    font-weight: 800;
}


.switch-window-card strong {
    font-size: 12px;
}


/* =========================================================
   CLOSE WINDOW FLOW
========================================================= */

.close-window-flow {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    margin-bottom: 25px;
}


.close-step {
    min-width: 120px;

    padding: 15px;

    border-radius: 10px;

    background: #ffffff;

    border: 2px solid #dbe5f0;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.close-step.active {
    border-color: #2563eb;

    background: #eff6ff;
}


.close-step span {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf2ff;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;
}


.close-step strong {
    font-size: 11px;
}


.flow-arrow {
    color: #2563eb;

    font-size: 20px;

    font-weight: 800;
}


/* =========================================================
   HINT
========================================================= */

.windows-hint {
    margin-top: 15px;

    padding: 14px 16px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-left: 3px solid #2563eb;

    border-radius: 9px;
}


.windows-hint strong {
    display: block;

    margin-bottom: 7px;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


.windows-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.6;
}


/* =========================================================
   CHEAT SHEET
========================================================= */

.windows-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
        );
}


.windows-cheat-sheet .windows-eyebrow {
    color: #dbeafe;
}


.windows-cheat-sheet h2 {
    margin-top: 7px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 22px;
}


.windows-code-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 15px;

    margin-top: 20px;
}


.windows-code-grid > div {
    padding: 16px;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.16
        );
}


.windows-code-grid strong {
    display: block;

    margin-bottom: 9px;

    color: #dbeafe;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


.windows-code-grid pre {
    margin: 0;

    overflow-x: auto;

    color: #ffffff;

    font-family:
        "Courier New",
        monospace;

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.windows-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: 1000px) {

    .windows-hero {
        flex-direction: column;

        align-items: flex-start;
    }


    .windows-hero-badge {
        width: 110px;
        height: 110px;

        border-radius: 20px;
    }


    .windows-hero-badge strong {
        font-size: 22px;
    }


    .windows-info-card {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 800px) {

    .windows-header {
        height: auto;

        min-height: 70px;

        padding: 12px 18px;

        flex-wrap: wrap;
    }


    .windows-nav {
        order: 3;

        width: 100%;

        justify-content: center;

        overflow-x: auto;
    }


    .windows-profile {
        margin-left: auto;
    }


    .windows-content {
        width: min(
            100% - 24px,
            1280px
        );

        margin-top: 15px;
    }


    .windows-hero {
        padding: 27px;

        border-radius: 17px;
    }


    .windows-info-card ul {
        grid-template-columns: 1fr;
    }


    .switch-window-grid {
        grid-template-columns: 1fr;
    }


    .windows-code-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .windows-brand > span:last-child {
        font-size: 14px;
    }


    .windows-profile > span:last-child {
        display: none;
    }


    .windows-hero h1 {
        font-size: 34px;

        letter-spacing: -1px;
    }


    .windows-lab-card {
        padding: 18px;
    }


    .windows-card-header {
        flex-direction: column;
    }


    .window-demo-panel {
        flex-direction: column;

        align-items: flex-start;
    }


    .child-window-area {
        flex-direction: column;
    }


    .window-arrow {
        transform:
            rotate(90deg);
    }


    .multi-window-controls {
        flex-direction: column;
    }


    .windows-action-button {
        width: 100%;
    }


    .tab-demo {
        overflow-x: auto;
    }


    .close-window-flow {
        flex-direction: column;
    }


    .flow-arrow {
        transform:
            rotate(90deg);
    }


    .windows-cheat-sheet {
        padding: 20px;
    }

}