/* =========================================================
   NEXTGEN VIRTUAL ACADEMY
   SELENIUM MOUSE ACTIONS 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,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   SHELL
========================================================= */

.mouse-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.mouse-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
========================================================= */

.mouse-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #0f172a;

    font-size: 17px;
    font-weight: 700;

    white-space: nowrap;
}

.mouse-brand strong {
    color: #0f172a;
}

.mouse-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
========================================================= */

.mouse-nav {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 8px;
}

.mouse-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;
}

.mouse-nav a:hover {
    background: #f1f5ff;
    color: #2563eb;
}

.mouse-nav a.active {
    background: #eff6ff;
    color: #2563eb;
}


/* =========================================================
   PROFILE
========================================================= */

.mouse-profile {
    display: flex;
    align-items: center;

    gap: 10px;

    padding-left: 16px;

    border-left: 1px solid #dce3ee;
}

.mouse-profile > span:last-child {
    display: flex;
    flex-direction: column;
}

.mouse-profile strong {
    font-size: 12px;
    color: #0f172a;
}

.mouse-profile small {
    font-size: 10px;
    color: #64748b;
}

.mouse-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
========================================================= */

.mouse-content {
    width: min(
        1280px,
        calc(100% - 48px)
    );

    margin: 28px auto 50px;

    flex: 1;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.mouse-back-row {
    margin-bottom: 14px;
}

.mouse-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;
}

.mouse-back-button:hover {
    background: #eff6ff;
    color: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px
        rgba(37, 99, 235, 0.12);
}


/* =========================================================
   HERO
========================================================= */

.mouse-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);
}

.mouse-eyebrow {
    display: inline-block;

    color: #2563eb;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.7px;
}

.mouse-hero .mouse-eyebrow {
    color: #dbeafe;
}

.mouse-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;
}

.mouse-hero h1 em {
    display: block;

    color: #dbeafe;

    font-style: normal;
}

.mouse-hero p {
    max-width: 760px;

    margin-top: 14px;

    color: #eff6ff;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   HERO BADGE
========================================================= */

.mouse-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);
}

.mouse-hero-badge span {
    font-size: 11px;

    letter-spacing: 1px;

    color: #dbeafe;

    font-weight: 700;
}

.mouse-hero-badge strong {
    margin-top: 5px;

    font-size: 25px;
    letter-spacing: 0.5px;
}


/* =========================================================
   INFORMATION CARD
========================================================= */

.mouse-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);
}

.mouse-info-card h2 {
    margin-top: 7px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 19px;
}

.mouse-info-card ul {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px 25px;

    padding-left: 20px;

    color: #475569;

    font-size: 12px;
}

.mouse-info-card li::marker {
    color: #2563eb;
}


/* =========================================================
   LAB CARD
========================================================= */

.mouse-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
========================================================= */

.mouse-card-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.mouse-card-header > div:first-child {
    display: flex;

    align-items: flex-start;

    gap: 12px;
}

.mouse-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;
}

.mouse-card-header h2 {
    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 18px;
}

.mouse-card-header p {
    margin-top: 3px;

    color: #64748b;

    font-size: 12px;
}

.mouse-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
========================================================= */

.mouse-demo {
    position: relative;

    min-height: 150px;

    padding: 25px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );

    border: 1px solid #dce3ee;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   RESULT
========================================================= */

.mouse-result {
    min-height: 22px;

    margin-top: 15px;

    color: #166534;

    font-size: 12px;

    font-weight: 700;

    text-align: center;
}


/* =========================================================
   HOVER
========================================================= */

.hover-area {
    position: relative;

    display: inline-flex;

    justify-content: center;
}

.hover-button {
    min-width: 190px;

    padding: 13px 22px;

    border-radius: 9px;

    background: #2563eb;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    text-align: center;

    box-shadow:
        0 6px 15px
        rgba(37, 99, 235, 0.18);
}

.hover-menu {
    position: absolute;

    top: calc(100% + 8px);

    left: 50%;

    transform:
        translateX(-50%)
        translateY(-5px);

    width: 190px;

    padding: 7px;

    border-radius: 9px;

    background: #ffffff;

    border: 1px solid #dce3ee;

    box-shadow:
        0 10px 25px
        rgba(15, 23, 42, 0.12);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 10;
}

.hover-area:hover .hover-menu {
    opacity: 1;

    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}

.hover-menu button {
    width: 100%;

    padding: 9px;

    border: 0;

    border-radius: 6px;

    background: transparent;

    color: #334155;

    font-size: 11px;

    font-weight: 600;

    text-align: left;
}

.hover-menu button:hover {
    background: #eff6ff;

    color: #2563eb;
}


/* =========================================================
   RIGHT CLICK
========================================================= */

.mouse-action-target {
    min-width: 190px;

    padding: 13px 22px;

    border: 0;

    border-radius: 9px;

    background: #2563eb;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    box-shadow:
        0 6px 15px
        rgba(37, 99, 235, 0.18);
}

.mouse-action-target:hover {
    background: #1d4ed8;
}

.context-menu {
    position: absolute;

    display: none;

    min-width: 150px;

    padding: 7px;

    border-radius: 9px;

    background: #ffffff;

    border: 1px solid #dce3ee;

    box-shadow:
        0 10px 25px
        rgba(15, 23, 42, 0.12);

    z-index: 20;
}

.context-menu.visible {
    display: block;
}

.context-menu button {
    display: block;

    width: 100%;

    padding: 9px;

    border: 0;

    border-radius: 6px;

    background: transparent;

    color: #334155;

    font-size: 11px;

    text-align: left;
}

.context-menu button:hover {
    background: #eff6ff;

    color: #2563eb;
}


/* =========================================================
   DOUBLE CLICK
========================================================= */

.mouse-double-target {
    min-width: 190px;

    padding: 14px 22px;

    border: 2px dashed #2563eb;

    border-radius: 10px;

    background: #ffffff;

    color: #2563eb;

    font-size: 12px;

    font-weight: 800;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.mouse-double-target:hover {
    background: #eff6ff;
}

.mouse-double-target.clicked {
    background: #2563eb;

    color: #ffffff;

    transform: scale(1.04);
}


/* =========================================================
   DRAG & DROP
========================================================= */

.drag-demo {
    min-height: 190px;

    display: grid;

    grid-template-columns:
        1fr 80px 1fr;

    align-items: center;

    gap: 20px;
}

.drag-source,
.drop-target {
    min-height: 110px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    font-size: 12px;

    font-weight: 800;

    text-align: center;
}

.drag-source {
    background: #2563eb;

    color: #ffffff;

    border: 2px solid #1d4ed8;

    cursor: grab;

    user-select: none;
}

.drag-source:active {
    cursor: grabbing;
}

.drop-target {
    background: #ffffff;

    color: #64748b;

    border: 2px dashed #93c5fd;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.drop-target.drag-over {
    background: #dbeafe;

    border-color: #2563eb;

    color: #1d4ed8;
}

.drop-target.dropped {
    background: #ecfdf5;

    border-color: #22c55e;

    color: #15803d;
}

.drag-arrow {
    color: #2563eb;

    font-size: 30px;

    font-weight: 800;

    text-align: center;
}


/* =========================================================
   CLICK & HOLD
========================================================= */

.click-hold-target {
    min-width: 210px;

    padding: 16px 25px;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font-size: 12px;

    font-weight: 800;

    text-align: center;

    user-select: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.click-hold-target.holding {
    background: #1e3a8a;

    transform: scale(0.97);
}


/* =========================================================
   MOVE TO ELEMENT
========================================================= */

.move-area {
    width: 100%;

    min-height: 110px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.move-target {
    min-width: 210px;

    padding: 15px 25px;

    border-radius: 10px;

    background: #ffffff;

    border: 2px solid #bfdbfe;

    color: #2563eb;

    font-size: 12px;

    font-weight: 800;

    text-align: center;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.move-target:hover,
.move-target.moved {
    background: #2563eb;

    border-color: #2563eb;

    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 8px 18px
        rgba(37, 99, 235, 0.18);
}


/* =========================================================
   HINT
========================================================= */

.mouse-hint {
    margin-top: 15px;

    padding: 14px 16px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-left: 3px solid #2563eb;

    border-radius: 9px;
}

.mouse-hint strong {
    display: block;

    margin-bottom: 7px;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.mouse-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
========================================================= */

.mouse-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);
}

.mouse-cheat-sheet .mouse-eyebrow {
    color: #dbeafe;
}

.mouse-cheat-sheet h2 {
    margin-top: 7px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 22px;
}

.mouse-code-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 15px;

    margin-top: 20px;
}

.mouse-code-grid > div {
    padding: 16px;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.16
        );
}

.mouse-code-grid strong {
    display: block;

    margin-bottom: 9px;

    color: #dbeafe;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.mouse-code-grid pre {
    margin: 0;

    overflow-x: auto;

    color: #ffffff;

    font-family:
        "Courier New",
        monospace;

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.mouse-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) {

    .mouse-header {
        gap: 15px;

        padding: 0 20px;
    }

    .mouse-nav {
        gap: 3px;
    }

    .mouse-nav a {
        padding: 8px 9px;

        font-size: 11px;
    }

}


@media (max-width: 900px) {

    .mouse-hero {
        flex-direction: column;

        align-items: flex-start;
    }

    .mouse-hero-badge {
        width: 110px;
        height: 110px;

        border-radius: 20px;
    }

    .mouse-hero-badge strong {
        font-size: 21px;
    }

    .mouse-info-card {
        grid-template-columns: 1fr;
    }

    .drag-demo {
        grid-template-columns: 1fr;
    }

    .drag-arrow {
        transform: rotate(90deg);
    }

}


@media (max-width: 800px) {

    .mouse-header {
        min-height: 70px;

        padding: 12px 18px;

        flex-wrap: wrap;
    }

    .mouse-nav {
        order: 3;

        width: 100%;

        justify-content: center;

        overflow-x: auto;
    }

    .mouse-profile {
        margin-left: auto;
    }

    .mouse-content {
        width: min(
            calc(100% - 24px),
            1280px
        );

        margin-top: 15px;
    }

    .mouse-hero {
        padding: 27px;

        border-radius: 17px;
    }

    .mouse-info-card ul {
        grid-template-columns: 1fr;
    }

    .mouse-code-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .mouse-brand > span:last-child {
        font-size: 14px;
    }

    .mouse-profile > span:last-child {
        display: none;
    }

    .mouse-hero h1 {
        font-size: 34px;

        letter-spacing: -1px;
    }

    .mouse-lab-card {
        padding: 18px;
    }

    .mouse-card-header {
        flex-direction: column;
    }

    .mouse-demo {
        padding: 20px 15px;
    }

    .mouse-cheat-sheet {
        padding: 20px;
    }

}