/* =========================================================
   WaterFall Labs - Isolated Original Water Test Styles
   File: water_test_page.css
   Purpose: Full style isolation for original water_test.php
   ========================================================= */

/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Full-screen fixed background image */
.background img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* Header Styling */
header {
    background: rgb(0, 0, 0);
    color: white;
    border-bottom: 1px solid white;
    padding: 10px 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

nav {
    display: flex;
    flex: 1;
    justify-content: space-evenly;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 0px;
    font-size: 20px;
    font-family: 'Orbitron', sans-serif;
    transition: background 0.3s, color 0.3s;
}

.nav-item:hover {
    background: white;
    color: black;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown toggle */
.dropdown-toggle {
    cursor: pointer;
    padding: 10px;
    display: block;
}

/* Dropdown menu hidden by default */
.dropdown-menu {
    display: none;
    position: absolute;
    background: black;
    border: 1px solid white;
    min-width: 120px;
    z-index: 100;
}

/* Dropdown links */
.dropdown-menu a {
    color: white;
    padding: 8px 12px;
    display: block;
    text-decoration: none;
}

/* Hover styles */
.dropdown-menu a:hover {
    background: #333;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Spacer Div */
.top-spacer {
    height: 200px;
}

.top-spacer h1 {
    justify-self: center;
    padding-top: 80px;
}

.title {
    max-width: 460px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-top: 45px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.3s;
}

.page-layout {
    display: flex;
    max-width: 100%;
    margin-top: 110px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 1s;
}

/* Sidebar styling */
.sidebar-ad {
    width: 160px;
    min-width: 140px;
    background-color: rgba(255, 255, 255, 0.08);
    border-right: 2px solid black;
    display: flex;
    justify-content: center;
    padding: 20px 10px;
}

/* Ad inside the sidebar */
.ad-vertical {
    width: 100%;
    height: 600px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-align: center;
}

/* Main Content Wrapper */
.content-wrapper {
    flex: 1;
    padding: 20px;
    max-width: calc(100% - 200px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Vertical Flex Container */
.vertical-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Top Section with Left & Right Columns */
.top-section {
    display: flex;
    flex-direction: column;
    background-color: #ffffff7c;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid black;
}

.top-flex-inner {
    display: flex;
    gap: 20px;
}

/* Left & Right Columns */
.left-column {
    flex: 3;
    background-color: rgba(159, 207, 255, 0.77);
    padding: 20px;
    border-radius: 6px;
    border: 4px solid black;
}

.right-column {
    flex: 1;
    background-color: rgba(57, 57, 57, 0.762);
    padding: 20px;
    border-radius: 6px;
    border: 4px solid black;
}

.pool-card-wrapper {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 3px solid #000000;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Orbitron', sans-serif;
    color: rgb(0, 0, 0);
    margin-top: 10px;
    font-size: 14px;
}

.pool-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: bold;
}

.pool-card button {
    padding: 5px;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    background-color: #2ecc71;
    font-weight: bold;
    color: black;
    border: 2px solid #1e8449;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.pool-card button:hover {
    background-color: #27ae60;
    text-shadow: -2px 2px 5px white;
}

.process-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;
}

/* Bottom Section */
.bottom-section {
    background-color: rgba(255, 255, 255, 0.645);
    padding: 20px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 1s;
}

/* Footer */
footer {
    margin-top: 40px;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    border-top: 1px solid white;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Top-level Tabs */
.top-tabs {
    display: flex;
    gap: 10px;
    padding-left: 15px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
}

.tab-button.active {
    background-color: #fff;
    font-weight: bold;
}

/* Nested Tabs */
.nested-tabs {
    display: flex;
    gap: 10px;
}

.nested-tab-button {
    padding: 8px 15px;
    background-color: #eee;
    border: none;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}

.nested-tab-button.active {
    background-color: #fff;
    font-weight: bold;
}

/* Tab content containers */
.tab-content,
.nested-tab-content {
    display: none;
}

.tab-content.active,
.nested-tab-content.active {
    display: block;
}

.scrollable-info {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.test-input-form {
    display: flex;
    flex-direction: column;
    flex: 2;
    gap: 10px;
    padding: 15px;
    background-color: rgba(73, 73, 73, 0.762);
    border: 2px solid black;
    font-family: 'Orbitron', sans-serif;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-row label {
    flex: 0 0 160px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid white;
    color: white;
    text-shadow: -2px 2px 1px black;
}

.input-row input {
    flex: 1;
    padding: 5px;
    max-width: 300px;
}

.test-input-form label {
    display: block;
    margin: 10px 0;
    padding-left: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: bold;
}

.test-input-form input {
    padding: 5px;
    width: 100%;
    max-width: 300px;
}

.input-wrapper {
    display: flex;
    gap: 20px;
}

/* Sidebar on the right of input form */
.input-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 6px;
    border: 2px solid black;
    width: 250px;
}

/* Ad placeholder styling */
.ad-space {
    height: 200px;
    flex: 2;
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px dashed #fff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: 'Orbitron', sans-serif;
}

/* Button styling */
.process-button-wrapper {
    display: flex;
    justify-content: center;
}

.process-button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'Orbitron', sans-serif;
    background-color: #2ecc71;
    font-weight: bold;
    color: black;
    border: 2px solid #1e8449;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.process-button:hover {
    background-color: #27ae60;
    text-shadow: -2px 2px 5px white;
}

.process-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;
}

.special-conditions {
    background-color: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: white;
    text-shadow: -2px 2px 5px black;
}

.special-conditions h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    color: rgba(159, 207, 255, 0.9);
    text-align: center;
    margin-bottom: 10px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 16px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9em;
    user-select: none;
}

.checkbox-grid input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: rgba(159, 207, 255, 0.9);
}

/* Container for all info items */
.info-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 30px;
}

/* Each individual info item */
.info-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
}

/* Section title */
.info-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #222;
    text-shadow: -2px 2px 5px white;
}

/* Description text */
.info-description {
    font-size: 1.1rem;
    color: #000000;
    line-height: 1.5;
    padding-left: 18px;
}

.guest-poolinfo-container {
    background: rgb(255 255 255 / 58%);
    padding: 22px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(6px);
    font-family: 'Orbitron', sans-serif;
}

.guest-poolinfo-container h2 {
    margin: 0;
    text-align: center;
    color: #003c6c;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.guest-poolinfo-container label {
    font-weight: 600;
    color: #003c6c;
}

.guest-poolinfo-container input,
.guest-poolinfo-container select {
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 8px;
    font-size: 1rem;
}

.guest-note {
    text-align: center;
    font-size: 0.9rem;
    color: #444;
    margin-top: 8px;
}

.user-info-panel {
    display: flex;
    flex-direction: column;
    background-color: #ffffff20;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Orbitron', sans-serif;
    color: white;
    text-shadow: -2px 2px 8px black;
    font-size: 14px;
}

.infoTab {
    background-color: rgba(255, 255, 255, 0.58);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: bold;
}

.value {
    font-style: italic;
}

.horizontal-ad-banner {
    width: 100%;
    height: 90px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: italic;
    color: #666;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.chem-order-help {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.chem-order-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 2px solid black;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.78);
    color: #003c6c;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.chem-order-trigger:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(0,0,0,0.24);
}

.chem-order-text {
    line-height: 1.3;
}

.chem-order-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background-color: #2ecc71;
    color: black;
    border: 2px solid #1e8449;
    font-size: 1rem;
    font-weight: bold;
}

.chem-order-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 1500;
    padding: 30px 16px;
}

.chem-order-modal.show {
    display: block;
}

.chem-order-modal-content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.92);
    border: 2px solid white;
    border-radius: 14px;
    padding: 24px 24px 18px;
    box-shadow: 0 0 24px rgba(0,0,0,0.45);
}

.chem-order-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: white;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.chem-order-title {
    margin-bottom: 12px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: rgba(159, 207, 255, 0.95);
    font-size: 1.5rem;
}

.chem-order-note {
    margin: 0 auto 18px;
    max-width: 900px;
    text-align: center;
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

.chem-order-image {
    display: block;
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 10px;
    background: white;
}

.result-card-wrapper {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
}

.result-status {
    position: relative;
    padding: 10px 20px;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    z-index: 2;
    text-shadow: 1px 1px 1px black;
}

.too-low {
    background-color: #00a2ff;
    text-shadow: 1px 1px 1px black;
}

.little-low {
    background-color: #00e5ff;
    text-shadow: 1px 1px 1px black;
}

.perfect {
    background-color: #15d700;
    text-shadow: 1px 1px 1px black;
}

.slightly-high {
    background-color: #e7a700;
    text-shadow: 1px 1px 1px black;
}

.slightly-off {
    background-color: #e7a700;
    text-shadow: 1px 1px 1px black;
}

.too-high {
    background-color: #ff0000;
    text-shadow: 1px 1px 1px black;
}

.result-recommendation {
    position: relative;
    top: -5px;
    color: white;
    background-color: #3b3b3b;
    text-shadow: 2px 2px 1px black;
    padding: 20px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.result-recommendation h4 {
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 1px solid white;
}

.result-recommendation p {
    padding-top: 10px;
    font-size: 18px;
}

.test-history-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 10px;
}

.test-history-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 3px solid #000000;
    padding: 10px 0;
}

.test-history-row.header {
    font-weight: bold;
    border-bottom: 2px solid #444;
    background-color: #f5f5f5;
}

.history-cell {
    flex: 1 1 9%;
    padding: 5px;
    text-align: center;
    font-size: 1.2rem;
}

.report-button {
    padding: 5px 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
}

.report-button:hover {
    background-color: #2980b9;
}

.report-button:active {
    transform: scale(0.95);
}

.pagination button {
    margin: 0 5px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
}

.pagination button:disabled {
    background-color: #ddd;
    cursor: default;
    font-weight: bold;
}

.how-to-test {
    display: flex;
    flex-direction: column;
    background-color: #ffffffcc;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid black;
}

.test-steps {
    border-bottom: 3px solid black;
    padding-bottom: 30px;
    padding-left: 6%;
    padding-right: 7%;
}

.test-step-p {
    font-size: 1.2rem;
    color: #000000;
    line-height: 1.5;
    padding-bottom: 30px;
    padding-left: 18px;
}

.drop-test-img {
    float: right;
    width: 270px;
    padding-left: 30px;
}

.test-strip-img {
    float: left;
    width: 270px;
    padding-right: 30px;
}

.digital-test-img {
    float: right;
    width: 270px;
    padding-left: 30px;
}

.how-to-input-img {
    float: left;
    width: 400px;
    padding-right: 30px;
}

.how-to-manage-img {
    float: right;
    width: 600px;
    padding-left: 30px;
}

.how-to-conditions-img {
    float: right;
    width: 400px;
    padding-left: 30px;
}

.how-to-view-img {
    float: right;
    width: 400px;
    padding-left: 30px;
}

/* ---------- Mobile Nav ---------- */

.hamburger {
    display: none;
    font-size: 32px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Mobile sidebar */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: #000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    transition: left 0.3s ease;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-family: 'Orbitron', sans-serif;
    padding-top: 14px;
}

.mobile-nav select {
    padding: 10px;
    font-size: 16px;
    margin-top: 5px;
}

.mobile-lang-label {
    margin-top: 10px;
    font-size: 14px;
    color: #aaa;
}

.mobile-nav hr {
    border: none;
    border-top: 1px solid #444;
    margin: 10px 0;
}

/* Open state */
.mobile-nav.open {
    left: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media screen and (max-width: 1025px) {
    .top-flex-inner {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .left-column {
        order: 1;
    }

    .right-column {
        order: 2;
    }

    .tab-button {
        font-size: xx-large;
    }

    .test-input-form label {
        font-size: 24px;
    }

    .pool-card {
        font-size: 12px;
    }

    .pool-card button {
        font-size: 12px;
    }

    .nested-tab-button {
        font-size: x-large;
    }

    .guest-poolinfo-container label {
        font-size: xx-large;
    }

    .checkbox-grid label {
        font-size: xx-large;
    }

    .process-button {
        font-size: 32px;
    }

    .too-low,
    .little-low,
    .perfect,
    .slightly-high,
    .too-high {
        font-size: xx-large;
    }

    .result-recommendation p {
        font-size: 22px;
    }

    .history-cell {
        font-size: 0.6rem;
    }
}

@media screen and (max-width: 830px) {
    .content-wrapper {
        max-width: calc(100% - 0px);
    }

    .sidebar-ad {
        display: none;
    }

    .nav-item {
        font-size: 14px;
        padding: 0px;
    }
}

@media screen and (max-width: 700px) {
    .chem-order-help {
        margin-top: 14px;
    }

    .chem-order-trigger {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .chem-order-icon {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 0.9rem;
    }

    .chem-order-modal {
        padding: 14px 8px;
    }

    .chem-order-modal-content {
        padding: 20px 12px 12px;
    }

    .chem-order-title {
        font-size: 1rem;
        padding-right: 24px;
    }

    .chem-order-note {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .chem-order-image {
        max-height: 65vh;
    }

    .content-wrapper {
        max-width: calc(100% - 0px);
    }

    .nav-item {
        font-size: 1px;
        padding: 1px 20px;
    }

    .sidebar-ad {
        display: none;
    }

    .title {
        width: 150px;
        margin-top: 14px;
    }

    .top-spacer {
        height: 0px;
    }

    .top-tabs {
        padding-left: 3px;
    }

    .tab-button {
        font-size: 14px;
        border: solid 3px black;
        padding: 6px 12px;
    }

    .nested-tab-button {
        font-size: 12px;
    }

    .test-input-form label {
        font-size: 15px;
    }

    .nested-tabs-button {
        font-size: 16px;
    }

    .test-input-form {
        gap: 0px;
    }

    .test-input-form input {
        height: 20px;
        margin-left: 0px;
    }

    .input-row label {
        flex: 0 0 80px;
    }

    .input-sidebar {
        display: none;
    }

    .guest-poolinfo-container label {
        font-size: 20px;
    }

    .guest-poolinfo-container input {
        height: 32px;
    }

    .special-conditions h2 {
        font-size: 1.4em;
    }

    .checkbox-grid label {
        font-size: 0.8em;
    }

    .pool-card {
        font-size: 8px;
    }

    .pool-card button {
        font-size: 10px;
    }

    .process-button {
        font-size: 18px;
    }

    .history-cell {
        font-size: 4px;
    }

    .drop-test-img {
        width: 155px;
    }

    .test-strip-img {
        width: 165px;
    }

    .digital-test-img {
        width: 160px;
    }

    .how-to-input-img {
        width: 206px;
    }

    .how-to-manage-img {
        width: 296px;
    }

    .how-to-conditions-img {
        width: 252px;
    }

    .how-to-view-img {
        width: 284px;
    }

    .too-low,
    .little-low,
    .perfect,
    .slightly-high,
    .too-high {
        font-size: 18px;
    }

    .result-recommendation p {
        font-size: 14px;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    header {
        justify-content: flex-start;
    }
}

/* =========================================================
   Water Test polish pass
   Append to end of water_test_page.css
   ========================================================= */

/* Overall page polish */
body {
    color: white;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

/* Main shell */
.top-section,
.bottom-section {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(3px);
}

.left-column,
.right-column {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* Title/logo presentation */
.title {
    filter: drop-shadow(0 0 10px rgba(159, 207, 255, 0.25));
}

/* ---------- Top tabs ---------- */
.top-tabs {
    gap: 12px;
    padding-left: 0;
    margin-bottom: 16px;
}

.tab-button {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0b2234;
    background: linear-gradient(180deg, #e9eef2 0%, #d8dde2 100%);
    border: 2px solid #000;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.18);
    background: linear-gradient(180deg, #f8fbfd 0%, #dfe8ee 100%);
}

.tab-button.active {
    background: linear-gradient(180deg, rgba(159, 207, 255, 0.95) 0%, rgba(120, 185, 245, 0.95) 100%);
    color: #03131f;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ---------- Nested tabs ---------- */
.nested-tabs {
    gap: 10px;
    margin-bottom: 12px;
}

.nested-tab-button {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #1a2430;
    background: linear-gradient(180deg, #f0f0f0 0%, #dddddd 100%);
    border: 2px solid black;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nested-tab-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 12px rgba(0, 0, 0, 0.18);
    background: linear-gradient(180deg, #fbfbfb 0%, #e8e8e8 100%);
}

.nested-tab-button.active {
    background: linear-gradient(180deg, #ffffff 0%, #dcecff 100%);
    color: #003c6c;
}

/* ---------- Input panel ---------- */
.test-input-form {
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 6px 18px rgba(0,0,0,0.22);
}

.test-input-form input,
.guest-poolinfo-container input,
.guest-poolinfo-container select {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.test-input-form input:focus,
.guest-poolinfo-container input:focus,
.guest-poolinfo-container select:focus {
    outline: none;
    border-color: rgba(159, 207, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(159, 207, 255, 0.2);
}

/* Improve row balance */
.input-row {
    gap: 18px;
}

.input-row input {
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 6px;
}

/* ---------- Guest pool info ---------- */
.guest-poolinfo-container {
    border: 2px solid rgba(0, 60, 108, 0.45);
}

.guest-poolinfo-container input,
.guest-poolinfo-container select {
    background: rgba(255,255,255,0.88);
}

/* ---------- Saved pool card ---------- */
.pool-card-wrapper {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.pool-card button {
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.18);
}

/* ---------- Right side panel ---------- */
.user-info-panel {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.user-info-panel .label {
    color: rgba(159, 207, 255, 0.95);
}

.user-info-panel .value {
    color: #ffffff;
}

/* ---------- Special conditions ---------- */
.special-conditions {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 16px rgba(0,0,0,0.18);
}

.special-conditions h2 {
    text-shadow: 0 0 8px rgba(159, 207, 255, 0.2);
}

.checkbox-grid label {
    padding: 6px 8px;
    border-radius: 6px;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.checkbox-grid label:hover {
    background-color: rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

/* ---------- Process button ---------- */
.process-button {
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.24);
}

.process-button:hover {
    box-shadow: 0 10px 18px rgba(46, 204, 113, 0.3);
}

/* ---------- Chem order button ---------- */
.chem-order-trigger {
    border-width: 2px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.chem-order-trigger:hover {
    background-color: rgba(255,255,255,0.96);
}

.chem-order-modal-content {
    box-shadow: 0 12px 30px rgba(0,0,0,0.38);
}

/* ---------- Info tab ---------- */
.scrollable-info {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.35) rgba(255,255,255,0.25);
}

.info-title {
    color: #0f2840;
    text-shadow: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
}

.info-description {
    color: #111;
    font-size: 1rem;
}

/* ---------- Result cards ---------- */
.result-card-wrapper {
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18));
}

.result-status {
    letter-spacing: 0.02em;
    font-family: 'Orbitron', sans-serif;
}

.result-recommendation {
    background: linear-gradient(180deg, #474747 0%, #353535 100%);
}

.result-recommendation h4 {
    color: rgba(159, 207, 255, 0.95);
    font-family: 'Orbitron', sans-serif;
    text-shadow: none;
}

.result-recommendation p {
    line-height: 1.6;
}

/* ---------- History ---------- */
.test-history-container {
    border: 2px solid rgba(0,0,0,0.2);
    box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

.test-history-row {
    transition: background-color 0.15s ease;
}

.test-history-row:not(.header):hover {
    background-color: rgba(0,0,0,0.05);
}

.test-history-row.header {
    font-family: 'Orbitron', sans-serif;
}

.report-button {
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.18);
}

/* ---------- How-to section ---------- */
.how-to-test {
    box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}

.test-steps h3 {
    font-family: 'Orbitron', sans-serif;
    color: #003c6c;
    margin-bottom: 12px;
}

.test-step-p {
    font-size: 1.08rem;
}

/* ---------- Mobile touchups ---------- */
@media screen and (max-width: 700px) {
    .top-section,
    .bottom-section,
    .left-column,
    .right-column {
        box-shadow: none;
    }

    .tab-button,
    .nested-tab-button {
        box-shadow: none;
    }

    .test-history-container {
        padding: 10px;
    }

    .pool-card-wrapper,
    .guest-poolinfo-container,
    .user-info-panel {
        box-shadow: none;
    }
}

/* =========================================================
   Info tab overhaul
   Append to end of water_test_page.css
   ========================================================= */

/* Make the info tab feel like a real content panel */
#infoTab .scrollable-info {
    max-height: 560px;
    padding: 6px 8px 6px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 60, 108, 0.45) rgba(255, 255, 255, 0.18);
}

#infoTab .scrollable-info::-webkit-scrollbar {
    width: 10px;
}

#infoTab .scrollable-info::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

#infoTab .scrollable-info::-webkit-scrollbar-thumb {
    background: rgba(0, 60, 108, 0.45);
    border-radius: 999px;
}

/* Better spacing and structure */
#infoTab .info-sections {
    gap: 18px;
    padding: 4px 8px 8px;
}

/* Turn each chemistry section into a card */
#infoTab .info-item {
    display: block;
    padding: 18px 18px 16px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(233, 243, 250, 0.92) 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#infoTab .info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(226, 240, 249, 0.95) 100%);
}

/* Stronger section titles */
#infoTab .info-title {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(159, 207, 255, 0.95) 0%, rgba(120, 185, 245, 0.95) 100%);
    color: #03213a;
    text-shadow: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px rgba(0, 60, 108, 0.14);
}

/* Cleaner description text */
#infoTab .info-description {
    padding-left: 0;
    color: #12202b;
    font-size: 1.02rem;
    line-height: 1.7;
    text-shadow: none;
}

/* Let emphasis inside descriptions stand out a little more */
#infoTab .info-description strong {
    color: #003c6c;
}

/* Mobile adjustments */
@media screen and (max-width: 700px) {
    #infoTab .scrollable-info {
        max-height: none;
        padding-right: 0;
    }

    #infoTab .info-sections {
        gap: 12px;
        padding: 0;
    }

    #infoTab .info-item {
        padding: 14px 12px;
        border-radius: 10px;
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
    }

    #infoTab .info-title {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    #infoTab .info-description {
        font-size: 0.92rem;
        line-height: 1.55;
    }
}

/* =========================================================
   Soft premium pass
   Append to end of water_test_page.css
   ========================================================= */

/* Slightly richer base mood */
.top-section,
.bottom-section,
.left-column,
.right-column,
.test-input-form,
.guest-poolinfo-container,
.user-info-panel,
.special-conditions,
.test-history-container,
.how-to-test,
.pool-card-wrapper {
    backdrop-filter: blur(8px);
}

/* Main containers get softer glass depth */
.top-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(235, 242, 248, 0.58) 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.bottom-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(238, 243, 247, 0.62) 100%);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.left-column {
    background:
        linear-gradient(180deg, rgba(168, 211, 249, 0.88) 0%, rgba(133, 191, 236, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.right-column {
    background:
        linear-gradient(180deg, rgba(48, 56, 68, 0.88) 0%, rgba(38, 44, 54, 0.82) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- Top tabs: pill style ---------- */
.top-tabs {
    gap: 14px;
    margin-bottom: 18px;
}

.tab-button {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(220, 229, 236, 0.92) 100%);
    color: #0a2238;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tab-button:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(227, 236, 243, 0.96) 100%);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tab-button.active {
    background:
        linear-gradient(180deg, rgba(176, 217, 252, 0.98) 0%, rgba(126, 188, 242, 0.98) 100%);
    color: #02131f;
    border-color: rgba(0, 60, 108, 0.28);
    box-shadow:
        0 12px 22px rgba(61, 127, 188, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

/* ---------- Nested tabs: premium chips ---------- */
.nested-tab-button {
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(248, 248, 248, 0.95) 0%, rgba(224, 224, 224, 0.96) 100%);
    color: #1a2733;
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.nested-tab-button:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(233, 233, 233, 0.98) 100%);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.nested-tab-button.active {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(214, 232, 247, 0.98) 100%);
    color: #003c6c;
    border-color: rgba(0, 60, 108, 0.2);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ---------- Input area ---------- */
.test-input-form {
    background:
        linear-gradient(180deg, rgba(58, 65, 78, 0.84) 0%, rgba(43, 49, 59, 0.84) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.input-row input,
.test-input-form input,
.guest-poolinfo-container input,
.guest-poolinfo-container select {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 60, 108, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 2px 6px rgba(0, 0, 0, 0.05);
}

.input-row input:focus,
.test-input-form input:focus,
.guest-poolinfo-container input:focus,
.guest-poolinfo-container select:focus {
    border-color: rgba(120, 185, 245, 0.95);
    box-shadow:
        0 0 0 4px rgba(120, 185, 245, 0.18),
        0 6px 12px rgba(0, 0, 0, 0.08);
}

/* ---------- Guest pool / user pool blocks ---------- */
.guest-poolinfo-container,
.user-info-panel,
.pool-card-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.guest-poolinfo-container {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(236, 244, 249, 0.72) 100%);
}

.user-info-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.pool-card-wrapper {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 247, 250, 0.98) 100%);
}

/* ---------- Special conditions ---------- */
.special-conditions {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.special-conditions h2 {
    color: rgba(185, 223, 255, 0.98);
}

/* ---------- Buttons ---------- */
.process-button,
.pool-card button,
.report-button {
    border-width: 1px;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.process-button {
    background: linear-gradient(180deg, #39d882 0%, #27ae60 100%);
}

.pool-card button {
    background: linear-gradient(180deg, #39d882 0%, #27ae60 100%);
}

.report-button {
    background: linear-gradient(180deg, #45a6e5 0%, #2980b9 100%);
}

.process-button:hover,
.pool-card button:hover,
.report-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

/* ---------- Chem order button ---------- */
.chem-order-trigger {
    border: 1px solid rgba(255, 255, 255, 0.62);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(233, 241, 247, 0.92) 100%);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.chem-order-trigger:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 245, 250, 0.96) 100%);
}

.chem-order-modal-content {
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- Results ---------- */
.result-card-wrapper {
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16));
}

.result-status {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.02em;
}

.result-recommendation {
    background:
        linear-gradient(180deg, rgba(70, 70, 70, 0.98) 0%, rgba(49, 49, 49, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.result-recommendation h4 {
    color: rgba(185, 223, 255, 0.98);
}

/* ---------- History ---------- */
.test-history-container {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 248, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow:
        0 14px 26px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.test-history-row.header {
    background:
        linear-gradient(180deg, rgba(245, 248, 250, 0.96) 0%, rgba(232, 237, 240, 0.96) 100%);
}

.test-history-row:not(.header):hover {
    background-color: rgba(0, 60, 108, 0.04);
}

/* ---------- How to section ---------- */
.how-to-test {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 246, 250, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* ---------- Softer section image framing ---------- */
.drop-test-img,
.test-strip-img,
.digital-test-img,
.how-to-input-img,
.how-to-manage-img,
.how-to-conditions-img,
.how-to-view-img {
    border-radius: 12px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

/* ---------- Mobile tone-down ---------- */
@media screen and (max-width: 700px) {
    .top-section,
    .bottom-section,
    .left-column,
    .right-column,
    .test-input-form,
    .guest-poolinfo-container,
    .user-info-panel,
    .special-conditions,
    .test-history-container,
    .how-to-test,
    .pool-card-wrapper {
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(4px);
    }

    .tab-button,
    .nested-tab-button,
    .chem-order-trigger {
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
    }
}

/* =========================================================
   Premium pass - History tab + How To Test tab
   Append to end of water_test_page.css
   ========================================================= */

/* ---------- HISTORY TAB ---------- */

.test-history-container {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 245, 249, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    color: #10202d;
}

.test-history-row {
    border-bottom: 1px solid rgba(0, 60, 108, 0.14);
    transition: background-color 0.18s ease;
}

.test-history-row:not(.header):hover {
    background-color: rgba(0, 60, 108, 0.05);
}

.test-history-row.header {
    background:
        linear-gradient(180deg, rgba(227, 236, 243, 0.98) 0%, rgba(215, 226, 235, 0.98) 100%);
    border-bottom: 1px solid rgba(0, 60, 108, 0.24);
    border-radius: 10px 10px 0 0;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.55);
}

.test-history-row.header .history-cell {
    color: #03243b;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    text-shadow: none;
    letter-spacing: 0.02em;
}

.history-cell {
    color: #122535;
    font-size: 1.02rem;
    line-height: 1.4;
    text-shadow: none;
}

/* Report buttons */
.report-button {
    border: 1px solid rgba(0, 60, 108, 0.18);
    border-radius: 999px;
    background:
        linear-gradient(180deg, #52b0eb 0%, #2f8fc9 100%);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-decoration: none;
    box-shadow:
        0 8px 14px rgba(41, 128, 185, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.report-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow:
        0 10px 18px rgba(41, 128, 185, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.report-button:active {
    transform: translateY(1px);
}

/* Pagination */
.pagination {
    margin-top: 16px;
    text-align: center;
}

.pagination button {
    margin: 0 6px;
    min-width: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 60, 108, 0.16);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(228, 235, 241, 0.94) 100%);
    color: #0a2238;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.pagination button:hover:not(:disabled) {
    transform: translateY(-1px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(235, 242, 247, 0.98) 100%);
    box-shadow:
        0 8px 14px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pagination button:disabled {
    background:
        linear-gradient(180deg, rgba(176, 217, 252, 0.98) 0%, rgba(126, 188, 242, 0.98) 100%);
    color: #02131f;
    border-color: rgba(0, 60, 108, 0.22);
    font-weight: 800;
    cursor: default;
}

/* ---------- HOW TO TEST TAB ---------- */

.how-to-test {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 246, 250, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 18px;
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* Individual how-to blocks */
.test-steps {
    position: relative;
    border-bottom: 1px solid rgba(0, 60, 108, 0.14);
    padding-top: 6px;
    padding-bottom: 28px;
    margin-bottom: 8px;
}

.test-steps:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 12px;
}

.test-steps h3 {
    margin-bottom: 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    color: #003c6c;
    text-shadow: none;
    letter-spacing: 0.01em;
}

/* Main text fix: make it clearly readable */
.test-step-p {
    color: #142736;
    text-shadow: none;
    font-size: 1.08rem;
    line-height: 1.75;
    padding-bottom: 20px;
}

/* Links inside how-to text */
.test-step-p a {
    color: #005f9e;
    font-weight: 700;
    text-decoration: none;
}

.test-step-p a:hover {
    text-decoration: underline;
}

/* Image treatment */
.drop-test-img,
.test-strip-img,
.digital-test-img,
.how-to-input-img,
.how-to-manage-img,
.how-to-conditions-img,
.how-to-view-img {
    border-radius: 14px;
    border: 1px solid rgba(0, 60, 108, 0.1);
    box-shadow:
        0 12px 22px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.75);
}

/* Give the how-to container a more premium reading feel */
.how-to-test::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, transparent, rgba(0, 60, 108, 0.18), transparent);
}

/* ---------- MOBILE ---------- */
@media screen and (max-width: 700px) {
    .test-history-container {
        border-radius: 12px;
        padding: 10px;
    }

    .test-history-row.header .history-cell {
        font-size: 0.62rem;
    }

    .history-cell {
        font-size: 0.78rem;
    }

    .report-button {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .pagination button {
        min-width: 34px;
        padding: 7px 10px;
        font-size: 0.72rem;
    }

    .how-to-test {
        border-radius: 14px;
        padding: 14px;
    }

    .test-steps {
        padding-left: 2%;
        padding-right: 2%;
        padding-bottom: 20px;
    }

    .test-steps h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .test-step-p {
        font-size: 0.94rem;
        line-height: 1.6;
        padding-left: 0;
        padding-bottom: 14px;
    }

    .drop-test-img,
    .test-strip-img,
    .digital-test-img,
    .how-to-input-img,
    .how-to-manage-img,
    .how-to-conditions-img,
    .how-to-view-img {
        margin-bottom: 12px;
    }
}

/* =========================================================
   How To Test heading color fix
   Append to end of water_test_page.css
   ========================================================= */

.how-to-test h1,
.how-to-test h2,
.how-to-test h3 {
    color: #003c6c;
    text-shadow: none;
    font-family: 'Orbitron', sans-serif;
}

.how-to-test h1 {
    font-size: 1.8rem;
    margin-bottom: 18px;
}

.how-to-test h2 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.how-to-test h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

@media screen and (max-width: 700px) {
    .how-to-test h1 {
        font-size: 1.35rem;
    }

    .how-to-test h2 {
        font-size: 1.08rem;
    }

    .how-to-test h3 {
        font-size: 0.95rem;
    }
}

/* =========================================================
   Responsive fixes - history tab + tab buttons
   Append to end of water_test_page.css
   ========================================================= */

/* ---------- History tab: prevent wrapping, allow horizontal scroll ---------- */

.test-history-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.test-history-row {
    flex-wrap: nowrap;
    min-width: 1100px;
}

.history-cell {
    flex: 0 0 100px;
    white-space: nowrap;
}

/* Give the report column a little more room */
.test-history-row .history-cell:last-child {
    flex: 0 0 130px;
}

/* ---------- Mobile tab button fixes ---------- */
@media screen and (max-width: 700px) {
    .top-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding-left: 0;
    }

    .tab-button {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
        padding: 8px 12px;
        font-size: 0.78rem;
        border-radius: 999px;
        text-align: center;
    }

    .nested-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nested-tab-button {
        flex: 1 1 calc(50% - 8px);
        min-width: 110px;
        padding: 8px 10px;
        font-size: 0.72rem;
        border-radius: 999px;
        text-align: center;
    }
}

/* Extra-small phones */
@media screen and (max-width: 480px) {
    .tab-button {
        flex: 1 1 100%;
        min-width: 0;
        font-size: 0.72rem;
        padding: 8px 10px;
    }

    .nested-tab-button {
        flex: 1 1 100%;
        min-width: 0;
        font-size: 0.68rem;
        padding: 7px 9px;
    }

    .test-history-row {
        min-width: 980px;
    }

    .history-cell {
        flex: 0 0 90px;
        font-size: 0.76rem;
    }

    .test-history-row .history-cell:last-child {
        flex: 0 0 120px;
    }
}

/* =========================================================
   Drag-scroll polish for history tab
   Append to end of water_test_page.css
   ========================================================= */

.test-history-container {
    cursor: grab;
    user-select: none;
}

.test-history-container.dragging {
    cursor: grabbing;
}

.test-history-container .test-history-row,
.test-history-container .history-cell {
    user-select: none;
}