/* =========================================================
   NEXTGEN VIRTUAL ACADEMY
   SELENIUM WEB TABLES 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
========================================================= */

.tables-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.tables-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
========================================================= */

.tables-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #0f172a;

    font-size: 17px;
    font-weight: 700;

    white-space: nowrap;
}

.tables-brand strong {
    color: #0f172a;
}

.tables-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
========================================================= */

.tables-nav {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 8px;
}

.tables-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;
}

.tables-nav a:hover {
    background: #f1f5ff;
    color: #2563eb;
}

.tables-nav a.active {
    background: #eff6ff;
    color: #2563eb;
}


/* =========================================================
   PROFILE
========================================================= */

.tables-profile {
    display: flex;
    align-items: center;

    gap: 10px;

    padding-left: 16px;

    border-left: 1px solid #dce3ee;
}

.tables-profile > span:last-child {
    display: flex;
    flex-direction: column;
}

.tables-profile strong {
    font-size: 12px;
    color: #0f172a;
}

.tables-profile small {
    font-size: 10px;
    color: #64748b;
}

.tables-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
========================================================= */

.tables-content {
    width: min(
        1280px,
        calc(100% - 48px)
    );

    margin: 28px auto 50px;

    flex: 1;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.tables-back-row {
    margin-bottom: 14px;
}

.tables-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;
}

.tables-back-button:hover {
    background: #eff6ff;
    color: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px
        rgba(37, 99, 235, 0.12);
}


/* =========================================================
   HERO
========================================================= */

.tables-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);
}

.tables-eyebrow {
    display: inline-block;

    color: #2563eb;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.7px;
}

.tables-hero .tables-eyebrow {
    color: #dbeafe;
}

.tables-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;
}

.tables-hero h1 em {
    display: block;

    color: #dbeafe;

    font-style: normal;
}

.tables-hero p {
    max-width: 760px;

    margin-top: 14px;

    color: #eff6ff;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   HERO BADGE
========================================================= */

.tables-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);
}

.tables-hero-badge span {
    font-size: 11px;

    letter-spacing: 1px;

    color: #dbeafe;

    font-weight: 700;
}

.tables-hero-badge strong {
    margin-top: 5px;

    font-size: 27px;
    letter-spacing: 0.5px;
}


/* =========================================================
   INFORMATION CARD
========================================================= */

.tables-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);
}

.tables-info-card h2 {
    margin-top: 7px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 19px;
}

.tables-info-card ul {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px 25px;

    padding-left: 20px;

    color: #475569;

    font-size: 12px;
}

.tables-info-card li::marker {
    color: #2563eb;
}


/* =========================================================
   LAB CARD
========================================================= */

.tables-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
========================================================= */

.tables-card-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.tables-card-header > div:first-child {
    display: flex;

    align-items: flex-start;

    gap: 12px;
}

.tables-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;
}

.tables-card-header h2 {
    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 18px;
}

.tables-card-header p {
    margin-top: 3px;

    color: #64748b;

    font-size: 12px;
}

.tables-tag {
    flex-shrink: 0;

    padding: 6px 10px;

    border-radius: 999px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.5px;
}


/* =========================================================
   TABLE WRAPPER
========================================================= */

.tables-wrapper {
    width: 100%;

    overflow-x: auto;

    border: 1px solid #dce3ee;

    border-radius: 12px;

    background: #ffffff;
}


/* =========================================================
   EMPLOYEE TABLE
========================================================= */

.employee-table {
    width: 100%;

    min-width: 900px;

    border-collapse: collapse;

    font-size: 12px;
}

.employee-table thead {
    background:
        linear-gradient(
            135deg,
            #1e3a8a,
            #2563eb
        );
}

.employee-table th {
    padding: 14px 13px;

    text-align: left;

    color: #ffffff;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.4px;

    white-space: nowrap;
}

.employee-table td {
    padding: 14px 13px;

    border-bottom: 1px solid #e5eaf1;

    color: #334155;

    vertical-align: middle;
}

.employee-table tbody tr {
    transition:
        background 0.2s ease;
}

.employee-table tbody tr:hover {
    background: #f8fbff;
}

.employee-table tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   STATUS
========================================================= */

.status-active,
.status-inactive {
    display: inline-flex;

    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 9px;

    font-weight: 800;
}

.status-active {
    background: #ecfdf5;

    color: #15803d;
}

.status-inactive {
    background: #fff7ed;

    color: #c2410c;
}


/* =========================================================
   TABLE ACTIONS
========================================================= */

.table-action {
    padding: 6px 9px;

    margin-right: 4px;

    border: 1px solid #bfdbfe;

    border-radius: 6px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 10px;

    font-weight: 700;
}

.table-action:hover {
    background: #dbeafe;
}

.table-action.danger {
    border-color: #fecaca;

    background: #fef2f2;

    color: #dc2626;
}

.table-action.danger:hover {
    background: #fee2e2;
}


/* =========================================================
   RESULT
========================================================= */

.tables-result {
    min-height: 22px;

    margin-top: 14px;

    color: #166534;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   HINT
========================================================= */

.tables-hint {
    margin-top: 15px;

    padding: 14px 16px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-left: 3px solid #2563eb;

    border-radius: 9px;
}

.tables-hint strong {
    display: block;

    margin-bottom: 7px;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.tables-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;
}


/* =========================================================
   CONTROLS
========================================================= */

.table-controls {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    padding: 20px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );

    border: 1px solid #dce3ee;
}

.tables-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;
}

.tables-action-button:hover {
    background: #1d4ed8;

    transform:
        translateY(-1px);
}

.tables-action-button.secondary {
    background: #ffffff;

    color: #2563eb;

    border: 1px solid #bfdbfe;

    box-shadow: none;
}

.tables-action-button.secondary:hover {
    background: #eff6ff;
}


/* =========================================================
   SEARCH
========================================================= */

.employee-search {
    display: grid;

    grid-template-columns:
        180px 1fr auto;

    align-items: end;

    gap: 12px;

    padding: 20px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );

    border: 1px solid #dce3ee;
}

.employee-search label,
.salary-validation label,
.add-employee-form label {
    display: block;

    margin-bottom: 6px;

    color: #334155;

    font-size: 11px;

    font-weight: 700;
}

.employee-search input,
.salary-validation input,
.salary-validation select,
.add-employee-form input {
    width: 100%;

    min-height: 40px;

    padding: 9px 11px;

    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;
}

.employee-search input:focus,
.salary-validation input:focus,
.salary-validation select:focus,
.add-employee-form input:focus {
    border-color: #60a5fa;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.08);
}


/* =========================================================
   SALARY VALIDATION
========================================================= */

.salary-validation {
    display: grid;

    grid-template-columns:
        1fr 1fr auto;

    align-items: end;

    gap: 12px;

    padding: 20px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );

    border: 1px solid #dce3ee;
}


/* =========================================================
   ADD EMPLOYEE
========================================================= */

.add-employee-form {
    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(120px, 1fr)
        );

    gap: 12px;

    padding: 20px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );

    border: 1px solid #dce3ee;
}

.add-employee-form button {
    align-self: end;

    min-height: 40px;
}


/* =========================================================
   CHEAT SHEET
========================================================= */

.tables-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);
}

.tables-cheat-sheet .tables-eyebrow {
    color: #dbeafe;
}

.tables-cheat-sheet h2 {
    margin-top: 7px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 22px;
}

.tables-code-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 15px;

    margin-top: 20px;
}

.tables-code-grid > div {
    padding: 16px;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.16
        );
}

.tables-code-grid strong {
    display: block;

    margin-bottom: 9px;

    color: #dbeafe;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.tables-code-grid pre {
    margin: 0;

    overflow-x: auto;

    color: #ffffff;

    font-family:
        "Courier New",
        monospace;

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.tables-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) {

    .tables-header {
        gap: 15px;
        padding: 0 20px;
    }

    .tables-nav {
        gap: 3px;
    }

    .tables-nav a {
        padding: 8px 9px;
        font-size: 11px;
    }

    .add-employee-form {
        grid-template-columns:
            repeat(
                3,
                minmax(150px, 1fr)
            );
    }
}


@media (max-width: 900px) {

    .tables-hero {
        flex-direction: column;

        align-items: flex-start;
    }

    .tables-hero-badge {
        width: 110px;
        height: 110px;

        border-radius: 20px;
    }

    .tables-hero-badge strong {
        font-size: 22px;
    }

    .tables-info-card {
        grid-template-columns: 1fr;
    }

    .employee-search {
        grid-template-columns: 1fr;
    }

    .salary-validation {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 800px) {

    .tables-header {
        min-height: 70px;

        padding: 12px 18px;

        flex-wrap: wrap;
    }

    .tables-nav {
        order: 3;

        width: 100%;

        justify-content: center;

        overflow-x: auto;
    }

    .tables-profile {
        margin-left: auto;
    }

    .tables-content {
        width: min(
            calc(100% - 24px),
            1280px
        );

        margin-top: 15px;
    }

    .tables-hero {
        padding: 27px;

        border-radius: 17px;
    }

    .tables-info-card ul {
        grid-template-columns: 1fr;
    }

    .tables-code-grid {
        grid-template-columns: 1fr;
    }

    .add-employee-form {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 600px) {

    .tables-brand > span:last-child {
        font-size: 14px;
    }

    .tables-profile > span:last-child {
        display: none;
    }

    .tables-hero h1 {
        font-size: 34px;

        letter-spacing: -1px;
    }

    .tables-lab-card {
        padding: 18px;
    }

    .tables-card-header {
        flex-direction: column;
    }

    .table-controls {
        flex-direction: column;
    }

    .tables-action-button {
        width: 100%;
    }

    .add-employee-form {
        grid-template-columns: 1fr;
    }

    .tables-cheat-sheet {
        padding: 20px;
    }
}
/* =========================================================
   TABLE ROW HIGHLIGHT
========================================================= */

.table-row-highlight {
    background: #dbeafe !important;
}

.table-row-highlight td {
    color: #1e40af;
    font-weight: 600;
}

/* =========================================================
   EDIT EMPLOYEE PANEL
========================================================= */

.edit-employee-form {
    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(120px, 1fr)
        );

    gap: 12px;

    padding: 20px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );

    border: 1px solid #dce3ee;
}


.edit-employee-form label {
    display: block;

    margin-bottom: 6px;

    color: #334155;

    font-size: 11px;

    font-weight: 700;
}


.edit-employee-form input {
    width: 100%;

    min-height: 40px;

    padding: 9px 11px;

    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;
}


.edit-employee-form input:focus {
    border-color: #60a5fa;

    box-shadow:
        0 0 0 3px
        rgba(
            37,
            99,
            235,
            0.08
        );
}


.edit-employee-form input[readonly] {
    background: #f1f5f9;

    color: #64748b;

    cursor: not-allowed;
}


.edit-employee-actions {
    display: flex;

    gap: 10px;

    margin-top: 15px;
}


@media (max-width: 1050px) {

    .edit-employee-form {
        grid-template-columns:
            repeat(
                3,
                minmax(150px, 1fr)
            );
    }

}


@media (max-width: 600px) {

    .edit-employee-form {
        grid-template-columns: 1fr;
    }

    .edit-employee-actions {
        flex-direction: column;
    }

}