/* =========================================================
   NEXTGEN VIRTUAL ACADEMY
   SELENIUM WAITS 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 {
    font-family: inherit;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   SHELL
========================================================= */

.waits-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.waits-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
========================================================= */

.waits-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #0f172a;

    font-size: 17px;
    font-weight: 700;

    white-space: nowrap;
}

.waits-brand strong {
    color: #0f172a;
}

.waits-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
========================================================= */

.waits-nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;
}

.waits-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;
}

.waits-nav a:hover {
    background: #f1f5ff;

    color: #2563eb;
}

.waits-nav a.active {
    background: #eff6ff;

    color: #2563eb;
}


/* =========================================================
   PROFILE
========================================================= */

.waits-profile {
    display: flex;
    align-items: center;

    gap: 10px;

    padding-left: 16px;

    border-left: 1px solid #dce3ee;
}

.waits-profile > span:last-child {
    display: flex;
    flex-direction: column;
}

.waits-profile strong {
    color: #0f172a;

    font-size: 12px;
}

.waits-profile small {
    color: #64748b;

    font-size: 10px;
}

.waits-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
========================================================= */

.waits-content {
    width: min(
        1280px,
        calc(100% - 48px)
    );

    margin: 28px auto 50px;

    flex: 1;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.waits-back-row {
    margin-bottom: 14px;
}

.waits-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;
}

.waits-back-button:hover {
    background: #eff6ff;

    color: #1d4ed8;

    transform:
        translateY(-1px);

    box-shadow:
        0 5px 12px
        rgba(
            37,
            99,
            235,
            0.12
        );
}


/* =========================================================
   HERO
========================================================= */

.waits-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
        );
}

.waits-eyebrow {
    display: inline-block;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.7px;
}

.waits-hero .waits-eyebrow {
    color: #dbeafe;
}

.waits-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;
}

.waits-hero h1 em {
    display: block;

    color: #dbeafe;

    font-style: normal;
}

.waits-hero p {
    max-width: 760px;

    margin-top: 14px;

    color: #eff6ff;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   HERO BADGE
========================================================= */

.waits-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);
}

.waits-hero-badge span {
    color: #dbeafe;

    font-size: 11px;

    letter-spacing: 1px;

    font-weight: 700;
}

.waits-hero-badge strong {
    margin-top: 5px;

    font-size: 27px;

    letter-spacing: 0.5px;
}


/* =========================================================
   INFORMATION CARD
========================================================= */

.waits-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
        );
}

.waits-info-card h2 {
    margin-top: 7px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 19px;
}

.waits-info-card ul {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px 25px;

    padding-left: 20px;

    color: #475569;

    font-size: 12px;
}

.waits-info-card li::marker {
    color: #2563eb;
}


/* =========================================================
   LAB CARD
========================================================= */

.waits-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
========================================================= */

.waits-card-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.waits-card-header > div:first-child {
    display: flex;

    align-items: flex-start;

    gap: 12px;
}

.waits-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;
}

.waits-card-header h2 {
    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 18px;
}

.waits-card-header p {
    margin-top: 3px;

    color: #64748b;

    font-size: 12px;
}

.waits-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
========================================================= */

.waits-demo {
    min-height: 180px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 25px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );

    border: 1px solid #dce3ee;
}


/* =========================================================
   BUTTONS
========================================================= */

.waits-primary-button,
.waits-warning-button {
    min-width: 190px;

    padding: 11px 18px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.waits-primary-button {
    border: 0;

    background: #2563eb;

    color: #ffffff;

    box-shadow:
        0 5px 12px
        rgba(
            37,
            99,
            235,
            0.18
        );
}

.waits-primary-button:hover {
    background: #1d4ed8;

    transform:
        translateY(-1px);
}

.waits-warning-button {
    border: 1px solid #fed7aa;

    background: #fff7ed;

    color: #c2410c;
}

.waits-warning-button:hover {
    background: #ffedd5;

    transform:
        translateY(-1px);
}


/* =========================================================
   LOADING MESSAGE
========================================================= */

.waits-loading {
    min-height: 20px;

    color: #64748b;

    font-size: 11px;

    text-align: center;
}


/* =========================================================
   DELAYED ELEMENT
========================================================= */

.waits-delayed-element {
    display: none;

    min-width: 210px;

    padding: 13px 20px;

    border: 0;

    border-radius: 9px;

    background: #16a34a;

    color: #ffffff;

    font-size: 12px;

    font-weight: 800;

    box-shadow:
        0 5px 12px
        rgba(
            22,
            163,
            74,
            0.16
        );

    animation:
        waitsAppear 0.3s ease;
}

.waits-delayed-element.visible {
    display: block;
}

@keyframes waitsAppear {

    from {
        opacity: 0;

        transform:
            translateY(8px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   RESULT
========================================================= */

.waits-result {
    min-height: 24px;

    margin-top: 4px;

    color: #166534;

    font-size: 12px;

    font-weight: 700;

    text-align: center;
}


/* =========================================================
   POLLING
========================================================= */

.waits-polling {
    padding: 7px 12px;

    border-radius: 999px;

    background: #ffffff;

    border: 1px solid #bfdbfe;

    color: #2563eb;

    font-size: 10px;

    font-weight: 700;
}


/* =========================================================
   SCENARIOS
========================================================= */

.waits-scenarios {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 15px;
}

.wait-scenario {
    padding: 18px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );

    border: 1px solid #dce3ee;
}

.wait-scenario h3 {
    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 14px;
}

.wait-scenario p {
    min-height: 65px;

    margin-top: 8px;

    color: #64748b;

    font-size: 11px;

    line-height: 1.6;
}

.wait-options {
    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-top: 12px;
}

.wait-options button {
    padding: 9px;

    border: 1px solid #bfdbfe;

    border-radius: 7px;

    background: #ffffff;

    color: #2563eb;

    font-size: 10px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.wait-options button:hover {
    background: #2563eb;

    color: #ffffff;

    transform:
        translateY(-1px);
}

.wait-options button.correct {
    background: #dcfce7;

    border-color: #86efac;

    color: #15803d;
}

.wait-options button.incorrect {
    background: #fee2e2;

    border-color: #fecaca;

    color: #b91c1c;
}


/* =========================================================
   HINT
========================================================= */

.waits-hint {
    margin-top: 15px;

    padding: 14px 16px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-left: 3px solid #2563eb;

    border-radius: 9px;
}

.waits-hint strong {
    display: block;

    margin-bottom: 7px;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.waits-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
========================================================= */

.waits-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
        );
}

.waits-cheat-sheet .waits-eyebrow {
    color: #dbeafe;
}

.waits-cheat-sheet h2 {
    margin-top: 7px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 22px;
}

.waits-code-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 15px;

    margin-top: 20px;
}

.waits-code-grid > div {
    padding: 16px;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.16
        );
}

.waits-code-grid strong {
    display: block;

    margin-bottom: 9px;

    color: #dbeafe;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.waits-code-grid pre {
    margin: 0;

    overflow-x: auto;

    color: #ffffff;

    font-family:
        "Courier New",
        monospace;

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.waits-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) {

    .waits-header {
        gap: 15px;

        padding: 0 20px;
    }

    .waits-nav {
        gap: 3px;
    }

    .waits-nav a {
        padding: 8px 9px;

        font-size: 11px;
    }

    .waits-scenarios {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 900px) {

    .waits-hero {
        flex-direction: column;

        align-items: flex-start;
    }

    .waits-hero-badge {
        width: 110px;
        height: 110px;

        border-radius: 20px;
    }

    .waits-hero-badge strong {
        font-size: 22px;
    }

    .waits-info-card {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 800px) {

    .waits-header {
        min-height: 70px;

        padding: 12px 18px;

        flex-wrap: wrap;
    }

    .waits-nav {
        order: 3;

        width: 100%;

        justify-content: center;

        overflow-x: auto;
    }

    .waits-profile {
        margin-left: auto;
    }

    .waits-content {
        width: min(
            calc(100% - 24px),
            1280px
        );

        margin-top: 15px;
    }

    .waits-hero {
        padding: 27px;

        border-radius: 17px;
    }

    .waits-info-card ul {
        grid-template-columns: 1fr;
    }

    .waits-code-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .waits-brand > span:last-child {
        font-size: 14px;
    }

    .waits-profile > span:last-child {
        display: none;
    }

    .waits-hero h1 {
        font-size: 34px;

        letter-spacing: -1px;
    }

    .waits-lab-card {
        padding: 18px;
    }

    .waits-card-header {
        flex-direction: column;
    }

    .waits-demo {
        padding: 20px 15px;
    }

    .waits-cheat-sheet {
        padding: 20px;
    }

}