﻿/* =========================================================
   01) Blazor Boilerplate Base Styles
   ---------------------------------------------------------
   Purpose: Establishes global HTML/BODY defaults for Blazor
   projects. Provides a consistent foundation for layout,
   typography, and responsive design.
   ========================================================= */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
   /* height: 100%;*/
   /* margin: 0;
    padding: 0;*/
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            /* FIX: changed from blue (#1b6ec2) to theme green */
            stroke: var(--primary, #1e7640);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Force MudDataGrid header text to be bold */
.mud-data-grid thead th,
.mud-data-grid .mud-table-head .mud-table-cell {
    font-weight: 700 !important;
}


/* This code was introduce by me for the landing page footer*/
footer {
    margin: 0 !important;
}

/* =========================================================
   02) APP SHELL LAYOUT (FOOTER STICKY) - This code is in home layout.
========================================================= */
.app-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1 0 auto;
    min-height: 0;
}

.site-footer {
    margin-top: auto;
}


/* =========================================================
   03) GLOBAL STARTUP LOADER OVERLAY + CIRCULAR SPINNER (RESET EACH CYCLE)
========================================================= */
#app > .loading-overlay.app-startup-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    /* =====================================================
       SPEED CONTROL (EDIT THESE)
       Lower value = faster spin
    ====================================================== */
    --startup-spinner-speed: 0.85s; /* <-- change this (e.g. 0.7s faster, 1.2s slower) */
    --startup-spinner-size: 3.25rem;
    --startup-spinner-c: 126.92; /* circumference for r=20.2 */
    --startup-spinner-c-neg: -126.92;
}

    /* SVG container rotates 360 each cycle */
    #app > .loading-overlay.app-startup-overlay .startup-spinner {
        width: var(--startup-spinner-size);
        height: var(--startup-spinner-size);
        display: block;
        transform-origin: center;
        animation: startup-spinner-rotate var(--startup-spinner-speed) linear infinite;
    }

    /* hide background ring completely */
    #app > .loading-overlay.app-startup-overlay .startup-spinner-track {
        display: none;
    }

    /* active arc */
    #app > .loading-overlay.app-startup-overlay .startup-spinner-path {
        fill: none;
        stroke: var(--primary, #1e7640);
        stroke-width: 3.6;
        stroke-linecap: round;
        /* start tiny/invisible */
        stroke-dasharray: 1, var(--startup-spinner-c);
        stroke-dashoffset: 0;
        opacity: 0;
        /* arc grows, spins, then disappears before loop restarts */
        animation: startup-spinner-arc var(--startup-spinner-speed) ease-in-out infinite;
    }

/* keep generic overlay for other places */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

    /* existing div spinner (if used elsewhere) */
    .loading-overlay .spinner,
    .spinner {
        width: 3rem;
        height: 3rem;
        border: 0.4rem solid #ddd;
        border-top: 0.4rem solid var(--primary, #1e7640);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

/* =========================================================
   04) SPINNER KEYFRAMES
========================================================= */
@keyframes startup-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes startup-spinner-arc {
    0% {
        stroke-dasharray: 1, var(--startup-spinner-c);
        stroke-dashoffset: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    45% {
        stroke-dasharray: 52, var(--startup-spinner-c);
        stroke-dashoffset: -18;
        opacity: 1;
    }

    80% {
        stroke-dasharray: 18, var(--startup-spinner-c);
        stroke-dashoffset: -96;
        opacity: 1;
    }

    99% {
        stroke-dasharray: 1, var(--startup-spinner-c);
        stroke-dashoffset: var(--startup-spinner-c-neg);
        opacity: 0;
    }

    100% {
        stroke-dasharray: 1, var(--startup-spinner-c);
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* existing generic spinner keyframe */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   05) HOME PAGE RESET + DESIGN TOKENS
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e7640;
    --primary-dark: #14532d;
    --primary-light: #4caf6e;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --secondary-light: #fbbf24;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --send-green: #21c063;
    --gray-light: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    -webkit-text-size-adjust: 100%;
}

/* =========================================================
  6) PAGE TYPOGRAPHY + LAYOUT CONTAINERS
========================================================= */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

    .section-title h2 {
        color: var(--dark);
        font-size: 2.5rem;
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
        font-weight: 700;
    }

        .section-title h2:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 70px;
            height: 3px;
            background-color: var(--secondary);
        }

    .section-title p {
        color: var(--gray);
        font-size: 1.1rem;
        max-width: 700px;
        margin: 20px auto 0;
        line-height: 1.8;
    }

/* =========================================================
   7) BUTTONS
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
    gap: 8px;
    white-space: nowrap;
}

    .btn:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.btn-secondary {
    background-color: var(--secondary);
}

    .btn-secondary:hover {
        background-color: var(--secondary-dark);
    }

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

    .btn-outline:hover {
        background-color: var(--primary);
        color: white;
    }

/* =========================================================
   8) HEADER & NAVIGATION
========================================================= */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

    header.scrolled {
        box-shadow: var(--shadow-lg);
    }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: var(--transition);
}

    .logo:hover {
        opacity: 0.9;
    }

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.logo-symbol {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .logo-symbol:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 24px;
        height: 24px;
        background-color: white;
        border-radius: 4px;
    }

    .logo-symbol:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 12px;
        height: 12px;
        background-color: var(--secondary);
        border-radius: 2px;
    }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    display: inline-block;
}

    .nav-link:hover {
        color: var(--primary);
        background-color: rgba(30, 118, 64, 0.05);
    }

/* =========================================================
   9) AUTHENTICATION MODAL
========================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.auth-modal {
    background-color: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition);
    position: relative;
}

.modal-overlay.active .auth-modal {
    transform: translateY(0);
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h2 {
        color: var(--dark);
        font-size: 1.8rem;
        margin: 0;
    }

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

    .close-modal:hover {
        background-color: rgba(0, 0, 0, 0.05);
        color: var(--dark);
    }

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--dark);
        font-weight: 500;
    }

    .form-group input {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid var(--gray-light);
        border-radius: var(--border-radius);
        font-size: 1rem;
        transition: var(--transition);
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(30, 118, 64, 0.1);
        }

.form-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

    .form-error.show {
        display: block;
    }

.form-footer {
    margin-top: 25px;
    text-align: center;
    color: var(--gray);
}

    .form-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
    }

        .form-footer a:hover {
            text-decoration: underline;
        }

.form-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 25px;
}

.form-tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

    .form-tab.active {
        color: var(--primary);
    }

        .form-tab.active:after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--primary);
        }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

.admin-login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

    .admin-login-link a {
        color: var(--secondary-dark);
        text-decoration: none;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .admin-login-link a:hover {
            text-decoration: underline;
        }

/* =========================================================
   10) HERO SECTION
========================================================= */
.hero {
    background: linear-gradient(rgba(30, 118, 64, 0.85), rgba(30, 118, 64, 0.9)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1773&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* =========================================================
   11) STATS SECTION
========================================================= */
.stats {
    background-color: white;
    padding: 60px 0;
    box-shadow: var(--shadow);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* =========================================================
   12) FEATURES SECTION
========================================================= */
.features {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
        border-top-color: var(--primary);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(30, 118, 64, 0.1) 0%, rgba(76, 175, 110, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

    .feature-card:hover .feature-icon i {
        color: white;
    }

.feature-icon i {
    font-size: 2.2rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* =========================================================
   13) SOLUTIONS SECTION
========================================================= */
.solutions {
    background-color: #f8fafc;
    position: relative;
}

    .solutions:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%231e7640' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
        opacity: 0.5;
        z-index: 0;
    }

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.solution-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid var(--primary);
}

    .solution-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .solution-card h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        color: var(--dark);
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .solution-card h3 i {
            color: var(--primary);
        }

    .solution-card p {
        color: var(--gray);
        margin-bottom: 20px;
        line-height: 1.7;
    }

.solution-features {
    list-style: none;
    margin-top: 20px;
}

    .solution-features li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 12px;
        color: var(--dark);
    }

        .solution-features li i {
            color: var(--success);
            margin-right: 10px;
            margin-top: 3px;
            flex-shrink: 0;
        }

/* =========================================================
   14) CTA SECTION
========================================================= */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

    .cta:before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 200%;
        background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
        background-size: 30px 30px;
        transform: rotate(30deg);
        z-index: 0;
    }

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.8;
}


/* =========================================================
   15) RESPONSIVE STYLES
========================================================= */
@media (max-width: 1100px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .solutions-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
        gap: 0;
    }

        .nav-links.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }

    .nav-item {
        width: 100%;
    }

    .nav-link, .dropdown-toggle {
        width: 100%;
        padding: 15px;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: rgba(30, 118, 64, 0.03);
        margin-left: 15px;
        margin-top: 5px;
        max-height: none;
        overflow-y: visible;
        border-radius: var(--border-radius);
        border-top: none;
        top: auto !important;
        left: auto !important;
        min-width: auto !important;
    }

        .dropdown-menu.active {
            display: block;
        }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

        .hero-btns a {
            width: 100%;
            max-width: 300px;
        }

    .section-title h2 {
        font-size: 2rem;
    }

    .auth-modal {
        max-width: 90%;
        margin: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 150px 0 80px;
        background-attachment: scroll;
    }

        .hero h1 {
            font-size: 2rem;
        }

        .hero p {
            font-size: 1.1rem;
        }

    section {
        padding: 60px 0;
    }

    .feature-card,
    .solution-card {
        padding: 30px 20px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 80px 0;
    }

        .cta h2 {
            font-size: 2rem;
        }

    .modal-header {
        padding: 20px 20px 15px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-tab {
        padding: 12px;
        font-size: 0.95rem;
    }

    .map-lens-toolbar {
        border-radius: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .map-lens-toolbar__description {
        flex: 0 0 auto; /* ← stops it stretching to fill leftover height */
        width: 100%;
    }

    .map-lens-toolbar__buttons::after {
        display: none;
    }

    .map-lens-button {
        flex: 1 1 auto;
    }

    .map-lens-toolbar__actions {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

/* =========================================================
   16) PRINT STYLES
========================================================= */
@media print {
    header, footer, .hero-btns, .mobile-menu-btn {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    .hero {
        background: white !important;
        color: black;
        padding: 40px 0;
    }

    section {
        padding: 40px 0;
        page-break-inside: avoid;
    }

    a {
        color: black;
        text-decoration: none;
    }
}

/* =========================================================
   17) BACK-TO-TOP BUTTON
========================================================= */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background-color: var(--secondary); /* Login/Register color */
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    z-index: 1600;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .back-to-top:hover {
        background-color: var(--secondary-dark);
        transform: translateY(-2px);
    }

@media (max-width: 992px) {
    .back-to-top {
        width: 48px;
        height: 48px;
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
    }
}

#backToTopBtn.back-to-top {
    background-color: #f59e0b !important;
    border: 2px solid #f59e0b !important;
    color: #fff !important;
}

    #backToTopBtn.back-to-top i {
        color: #fff !important;
    }

    #backToTopBtn.back-to-top:hover {
        background-color: #d97706 !important;
        border-color: #d97706 !important;
    }


/* =========================================================
   DARK MODE
   Add at the end of your stylesheet
========================================================= */

html[data-bs-theme="dark"] {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --secondary-light: #fbbf24;
    --light: #0f172a;
    --dark: #f8fafc;
    --gray: #94a3b8;
    --gray-light: rgba(148, 163, 184, 0.18);
    --success: #34d399;
    --error: #f87171;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.28), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.38), 0 10px 10px -5px rgba(0, 0, 0, 0.24);
}

    /* =========================================================
   PAGE TYPOGRAPHY + LAYOUT CONTAINERS
========================================================= */
    html[data-bs-theme="dark"] body {
        color: #cbd5e1;
        background-color: #0b1220;
    }

    html[data-bs-theme="dark"] .section-title h2 {
        color: #f8fafc;
    }

    html[data-bs-theme="dark"] .section-title p {
        color: #94a3b8;
    }

    /* =========================================================
   BUTTONS
========================================================= */
    html[data-bs-theme="dark"] .btn {
        color: #ffffff;
    }

    html[data-bs-theme="dark"] .btn-outline {
        background-color: transparent;
        border-color: #22c55e;
        color: #4ade80;
    }

        html[data-bs-theme="dark"] .btn-outline:hover {
            background-color: #22c55e;
            color: #052e16;
        }

    /* =========================================================
   HEADER & NAVIGATION
========================================================= */
    html[data-bs-theme="dark"] header {
        background-color: #111827;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.28);
    }

    html[data-bs-theme="dark"] .logo-text {
        color: #f8fafc;
    }

    html[data-bs-theme="dark"] .logo-symbol {
        background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    }

        html[data-bs-theme="dark"] .logo-symbol:after {
            background-color: #f59e0b;
        }

    html[data-bs-theme="dark"] .nav-link {
        color: #e5e7eb;
    }

        html[data-bs-theme="dark"] .nav-link:hover {
            color: #4ade80;
            background-color: rgba(34, 197, 94, 0.08);
        }

@media (max-width: 992px) {
    html[data-bs-theme="dark"] .nav-links {
        background-color: #111827;
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
    }

    html[data-bs-theme="dark"] .dropdown-menu {
        background-color: rgba(34, 197, 94, 0.06);
    }

    html[data-bs-theme="dark"] .mobile-menu-btn {
        color: #4ade80;
    }
}

/* =========================================================
   AUTHENTICATION MODAL
========================================================= */
html[data-bs-theme="dark"] .auth-modal {
    background-color: #111827;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
}

html[data-bs-theme="dark"] .modal-header {
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

    html[data-bs-theme="dark"] .modal-header h2 {
        color: #f8fafc;
    }

html[data-bs-theme="dark"] .close-modal {
    color: #94a3b8;
}

    html[data-bs-theme="dark"] .close-modal:hover {
        background-color: rgba(255, 255, 255, 0.06);
        color: #f8fafc;
    }

html[data-bs-theme="dark"] .form-group label {
    color: #e5e7eb;
}

html[data-bs-theme="dark"] .form-group input {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.18);
    color: #e5e7eb;
}

    html[data-bs-theme="dark"] .form-group input:focus {
        border-color: #22c55e;
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
    }

    html[data-bs-theme="dark"] .form-group input::placeholder {
        color: #94a3b8;
    }

html[data-bs-theme="dark"] .form-footer {
    color: #94a3b8;
}

    html[data-bs-theme="dark"] .form-footer a {
        color: #4ade80;
    }

html[data-bs-theme="dark"] .form-tabs {
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

html[data-bs-theme="dark"] .form-tab {
    color: #94a3b8;
}

    html[data-bs-theme="dark"] .form-tab.active {
        color: #4ade80;
    }

        html[data-bs-theme="dark"] .form-tab.active:after {
            background-color: #22c55e;
        }

html[data-bs-theme="dark"] .admin-login-link {
    border-top-color: rgba(148, 163, 184, 0.18);
}

    html[data-bs-theme="dark"] .admin-login-link a {
        color: #fbbf24;
    }

/* =========================================================
   HERO SECTION
========================================================= */
html[data-bs-theme="dark"] .hero {
    background: linear-gradient(rgba(5, 46, 22, 0.82), rgba(20, 83, 45, 0.9)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1773&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* =========================================================
   STATS SECTION
========================================================= */
html[data-bs-theme="dark"] .stats {
    background-color: #111827;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

html[data-bs-theme="dark"] .stat-number {
    color: #4ade80;
}

html[data-bs-theme="dark"] .stat-label {
    color: #94a3b8;
}

/* =========================================================
   FEATURES SECTION
========================================================= */
html[data-bs-theme="dark"] .features {
    background-color: #111827;
}

html[data-bs-theme="dark"] .feature-card {
    background-color: #111827;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

    html[data-bs-theme="dark"] .feature-card:hover {
        box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
        border-top-color: #22c55e;
    }

html[data-bs-theme="dark"] .feature-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14) 0%, rgba(74, 222, 128, 0.12) 100%);
}

html[data-bs-theme="dark"] .feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}

html[data-bs-theme="dark"] .feature-icon i {
    color: #4ade80;
}

html[data-bs-theme="dark"] .feature-card h3 {
    color: #f8fafc;
}

html[data-bs-theme="dark"] .feature-card p {
    color: #94a3b8;
}

/* =========================================================
   SOLUTIONS SECTION
========================================================= */
html[data-bs-theme="dark"] .solutions {
    background-color: #0f172a;
}

    html[data-bs-theme="dark"] .solutions:before {
        opacity: 0.18;
        filter: brightness(0.8);
    }

html[data-bs-theme="dark"] .solution-card {
    background-color: #111827;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
    border-left-color: #22c55e;
}

    html[data-bs-theme="dark"] .solution-card:hover {
        box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
    }

    html[data-bs-theme="dark"] .solution-card h3 {
        color: #f8fafc;
    }

        html[data-bs-theme="dark"] .solution-card h3 i {
            color: #4ade80;
        }

    html[data-bs-theme="dark"] .solution-card p {
        color: #94a3b8;
    }

html[data-bs-theme="dark"] .solution-features li {
    color: #e5e7eb;
}

    html[data-bs-theme="dark"] .solution-features li i {
        color: #34d399;
    }

/* =========================================================
   CTA SECTION
========================================================= */
html[data-bs-theme="dark"] .cta {
    background: linear-gradient(135deg, #14532d 0%, #052e16 100%);
}

    html[data-bs-theme="dark"] .cta .btn {
        background-color: #f59e0b;
        color: #111827;
    }

        html[data-bs-theme="dark"] .cta .btn:hover {
            background-color: #fbbf24;
        }

/* =========================================================
   BACK-TO-TOP BUTTON
========================================================= */
html[data-bs-theme="dark"] .back-to-top {
    background-color: #f59e0b;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

    html[data-bs-theme="dark"] .back-to-top:hover {
        background-color: #d97706;
    }

html[data-bs-theme="dark"] #backToTopBtn.back-to-top {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #fff !important;
}

    html[data-bs-theme="dark"] #backToTopBtn.back-to-top:hover {
        background-color: #d97706 !important;
        border-color: #d97706 !important;
    }






/* Put this in site.css / app.css — NOT in Dashboard.razor.css */

/* ==========================================================================
   Light MODE - MAP UI
   ========================================================================== */

/* ==========================================================================
   1) MAP LAYOUT
   ========================================================================== */
.map-host,
.map-content,
.map-panel {
    width: 100%;
    height: auto;
    min-height: unset;
}

.map-panel {
    display: flex;
    flex-direction: column;
    padding: 0.4rem;
    box-sizing: border-box;
}

.map-panel__header {
    margin-bottom: 0.5rem;
    padding-inline: 0.25rem;
}

.map-panel__header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    padding-inline: 0.25rem;
}

.jamaica-parish-map {
    width: 100%;
    height: 260px;
    min-height: 260px;
    max-height: 420px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background-color: #f8fafc;
    box-sizing: border-box;
    flex: 0 0 auto;
}


/* ==========================================================================
   2) MAP LENS TOOLBAR
   ========================================================================== */

/*
   Single-row layout: [🔵 Map lens] [btn] [btn] [btn] [· description text]
   All items sit on one baseline and wrap naturally on smaller screens.
*/
.map-lens-toolbar {
    margin-top: 0.9rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #c7d2fe;
    border-radius: 999px; /* pill shape = "lens" feel            */
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    display: flex;
    flex-wrap: wrap; /* wraps gracefully on small screens   */
    align-items: center;
    gap: 0.5rem 0.55rem;
}

/* "Map lens" label – left anchor of the row */
.map-lens-toolbar__title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #1e40af;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-right: 0.4rem;
    border-right: 1.5px solid #c7d2fe;
    margin-right: 0.1rem;
    flex-shrink: 0;
}

    /* Subtle blue dot before the title */
    .map-lens-toolbar__title::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #2563eb;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.20);
        flex-shrink: 0;
    }

/* Button group – inline right after the title */
.map-lens-toolbar__buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    flex-shrink: 0;
}

    /* Thin vertical rule between buttons and description */
    .map-lens-toolbar__buttons::after {
        content: '';
        display: inline-block;
        width: 1.5px;
        height: 1.1em;
        background: #c7d2fe;
        margin-left: 0.35rem;
        align-self: center;
        flex-shrink: 0;
    }

/* Description – fills remaining space; wraps as a unit when needed */
.map-lens-toolbar__description {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #475569;
    flex: 1 1 200px; /* grows/shrinks; wraps to next line    */
    min-width: 0;
}

/* Lens button */
.map-lens-button {
    border: 1.5px solid transparent;
    background: transparent;
    color: #475569;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.17s ease;
}

    .map-lens-button:hover {
        background: #e0e7ff;
        color: #1e40af;
        border-color: #a5b4fc;
    }

    .map-lens-button.active {
        background: #2563eb;
        color: #ffffff;
        border-color: #2563eb;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.30);
    }


/* ==========================================================================
   3) LEGEND
   ========================================================================== */
.map-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-inline: 0.25rem;
}

.legend-title {
    font-weight: 600;
    color: #334155;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #475569;
}

    .legend-items span {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }

    .legend-items i {
        width: 14px;
        height: 14px;
        display: inline-block;
        border-radius: 3px;
    }


/* ==========================================================================
   4) PARISH LABELS AND TOOLTIP
   ========================================================================== */
.parish-label-wrapper {
    background: transparent !important;
    border: none !important;
}

.parish-label {
    color: #7a7a7a;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    line-height: 1.1;
    text-shadow: 0 0 2px #ffffff, 0 0 4px #ffffff, 0 0 6px #ffffff;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.jamaica-map-tooltip {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d6d6d6;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
}


/* ==========================================================================
   5) POPUP SHELL
   Base desktop size = smaller
   This will now be used around 1440 and below.
   ========================================================================== */
.map-popup-shell .leaflet-popup-content-wrapper {
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.map-popup-shell .leaflet-popup-content {
    margin: 0;
    width: 280px !important;
}

.map-popup {
    padding: 0.85rem;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #334155;
    background: #fff;
}

.map-popup__title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.7rem;
}

.map-popup__empty {
    color: #64748b;
}

.map-popup__badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.map-popup__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.map-popup__badge--primary {
    background: #dbeafe;
    color: #1d4ed8;
}

.map-popup__badge--success {
    background: #dcfce7;
    color: #15803d;
}

.map-popup__badge--warning {
    background: #fef3c7;
    color: #b45309;
}

.map-popup__badge--danger {
    background: #fee2e2;
    color: #dc2626;
}

.map-popup__badge--neutral {
    background: #e2e8f0;
    color: #475569;
}

.map-popup__score-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    background: #f8fafc;
    margin-bottom: 0.85rem;
}

.map-popup__score-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.map-popup__score-value {
    margin-top: 0.18rem;
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
}

.map-popup__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.7rem;
    margin-bottom: 0.9rem;
}

.map-popup__metric {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.map-popup__metric-label {
    font-size: 0.68rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.map-popup__metric strong {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 700;
}

.map-popup__recommendation {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.8rem;
    color: #334155;
}

.map-popup__recommendation-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 0.28rem;
    letter-spacing: 0.03em;
}


/* ==========================================================================
   6) VIEW TOGGLE
   ========================================================================== */
.view-toggle-buttons {
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
}


/* ==========================================================================
   7) LARGE SCREENS
   These now get the larger popup and larger label sizes.
   This is the "swapped" behavior you wanted for 2560-class screens.
   ========================================================================== */
@media (min-width: 1600px) {
    .jamaica-parish-map {
        height: 320px;
        min-height: 320px;
        max-height: 560px;
    }

    .parish-label {
        font-size: 12px;
    }

    .map-popup-shell .leaflet-popup-content {
        width: 340px !important;
    }

    .map-popup {
        padding: 1rem;
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .map-popup__title {
        font-size: 1.05rem;
    }

    .map-popup__badge {
        padding: 0.28rem 0.65rem;
        font-size: 0.76rem;
    }

    .map-popup__score-card {
        padding: 0.75rem 0.85rem;
    }

    .map-popup__score-label {
        font-size: 0.75rem;
    }

    .map-popup__score-value {
        font-size: 1.35rem;
    }

    .map-popup__metric-label {
        font-size: 0.74rem;
    }

    .map-popup__metric strong {
        font-size: 0.94rem;
    }

    .map-popup__recommendation-title {
        font-size: 0.76rem;
    }
}

@media (min-width: 2200px) {
    .jamaica-parish-map {
        height: 360px;
        min-height: 360px;
        max-height: 700px;
    }

    .parish-label {
        font-size: 16px;
    }

    .map-popup-shell .leaflet-popup-content {
        width: 360px !important;
    }

    .map-popup {
        padding: 1.05rem;
        font-size: 0.96rem;
    }

    .map-popup__title {
        font-size: 1.1rem;
    }

    .map-popup__score-value {
        font-size: 1.45rem;
    }
}

@media (max-width: 1440px) {
    .jamaica-parish-map {
        width: 100%;
        height: 260px;
        min-height: 260px;
        max-height: 550px;
        border-radius: 0.75rem;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        background-color: #f8fafc;
        box-sizing: border-box;
        flex: 0 0 auto;
    }

    .parish-label {
        font-size: 12px;
    }

    .map-popup-shell .leaflet-popup-content {
        width: 360px !important;
    }

    .map-popup {
        padding: 1.05rem;
        font-size: 0.96rem;
    }

    .map-popup__title {
        font-size: 1.1rem;
    }

    .map-popup__score-value {
        font-size: 1.45rem;
    }
}


/* ==========================================================================
   8) LAPTOP / TABLET
   ========================================================================== */
@media (max-width: 1024px) {
    .parish-label {
        font-size: 10px;
    }

    .map-popup-shell .leaflet-popup-content {
        width: 360px !important;
    }

    .map-popup {
        padding: 1.05rem;
        font-size: 0.96rem;
    }

    .map-popup__title {
        font-size: 1.1rem;
    }

    .map-popup__score-value {
        font-size: 1.45rem;
    }
}

@media (max-width: 991.98px) {
    .jamaica-parish-map {
        height: 220px;
        min-height: 220px;
        max-height: 320px;
    }

    .parish-label {
        font-size: 9px;
    }

    .map-popup-shell .leaflet-popup-content {
        width: 245px !important;
    }

    .map-popup {
        padding: 0.75rem;
        font-size: 0.78rem;
    }

    .map-lens-toolbar {
        border-radius: 16px; /* soften pill on tablet */
        padding: 0.65rem 0.85rem;
    }

    .map-lens-toolbar__buttons {
        gap: 0.4rem;
    }
}

@media (max-width: 768px) {
    .jamaica-parish-map {
        width: 100%;
        height: 260px;
        min-height: 260px;
        max-height: 550px;
        border-radius: 0.75rem;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        background-color: #f8fafc;
        box-sizing: border-box;
        flex: 0 0 auto;
    }

    .parish-label {
        font-size: 6px;
    }

    .map-popup-shell .leaflet-popup-content {
        width: 360px !important;
    }

    .map-popup {
        padding: 1.05rem;
        font-size: 0.96rem;
    }

    .map-popup__title {
        font-size: 1.1rem;
    }

    .map-popup__score-value {
        font-size: 1.45rem;
    }

    .map-lens-toolbar__buttons::after {
        display: none; /* hide divider when stacked */
    }

    .map-lens-button {
        flex: 1 1 auto;
    }

    .map-lens-toolbar__description {
        flex: 0 0 auto;
        width: 100%;
    }
}


/* ==========================================================================
   9) MOBILE
   ========================================================================== */
@media (max-width: 575.98px) {
    .map-host,
    .map-content,
    .map-panel {
        min-height: unset !important;
        height: auto !important;
    }

    .map-panel {
        padding: 0.2rem;
    }

    .map-panel__header {
        margin-bottom: 0.3rem;
        padding-inline: 0.1rem;
    }

    .jamaica-parish-map {
        width: 100%;
        height: 260px;
        min-height: 260px;
        max-height: 550px;
        border-radius: 0.75rem;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        background-color: #f8fafc;
        box-sizing: border-box;
        flex: 0 0 auto;
    }

    .map-legend {
        margin-top: 0.35rem;
        margin-bottom: 0;
        padding-inline: 0.1rem;
        gap: 0.35rem;
    }

    .legend-items {
        gap: 0.45rem 0.65rem;
    }

    .parish-label {
        font-size: 4px;
    }

    .view-toggle-buttons {
        gap: 0.5rem;
    }

    .map-popup-shell.leaflet-popup-content {
        width: 360px !important;
    }

    .map-popup {
        padding: 1.05rem;
        font-size: 0.96rem;
    }

    .map-popup__title {
        font-size: 1.1rem;
    }

    .map-popup__score-value {
        font-size: 1.45rem;
    }

    .map-popup__badge {
        font-size: 0.66rem;
        padding: 0.22rem 0.5rem;
    }

    .map-popup__metric-label {
        font-size: 0.64rem;
    }

    .map-popup__metric strong {
        font-size: 0.8rem;
    }

    .map-lens-toolbar {
        border-radius: 12px;
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .map-lens-toolbar__title {
        border-right: none;
        padding-right: 0;
        border-bottom: 1.5px solid #c7d2fe;
        padding-bottom: 0.4rem;
        width: 100%;
    }

    .map-lens-toolbar__buttons {
        flex-direction: column;
        width: 100%;
    }

        .map-lens-toolbar__buttons::after {
            display: none;
        }

    .map-lens-button {
        width: 100%;
        justify-content: center;
    }

    .map-lens-toolbar__description {
        flex: 0 0 auto; /* ← same fix for mobile */
        width: 100%;
    }

    .map-lens-toolbar__actions {
        margin-left: 0;
        width: 100%;
    }

        .map-lens-toolbar__actions .mud-button-root {
            width: 100%;
        }
}

.map-lens-toolbar__actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* ==========================================================================
   DARK MODE - MAP UI
   Add at end of stylesheet
   ========================================================================== */

html[data-bs-theme="dark"] .map-panel__header,
html[data-bs-theme="dark"] .map-panel__header-top {
    color: #e5e7eb !important;
}

html[data-bs-theme="dark"] .jamaica-parish-map {
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    background-color: #0f172a !important;
}

/* ==========================================================================
   MAP LENS TOOLBAR
   ========================================================================== */
html[data-bs-theme="dark"] .map-lens-toolbar {
    border: 1px solid rgba(59, 130, 246, 0.22) !important;
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

html[data-bs-theme="dark"] .map-lens-toolbar__title {
    color: #93c5fd !important;
    border-right-color: rgba(59, 130, 246, 0.22) !important;
}

    html[data-bs-theme="dark"] .map-lens-toolbar__title::before {
        background: #3b82f6 !important;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.22) !important;
    }

html[data-bs-theme="dark"] .map-lens-toolbar__buttons::after {
    background: rgba(59, 130, 246, 0.22) !important;
}

html[data-bs-theme="dark"] .map-lens-toolbar__description {
    color: #94a3b8 !important;
}

html[data-bs-theme="dark"] .map-lens-button {
    background: transparent !important;
    color: #cbd5e1 !important;
    border-color: transparent !important;
}

    html[data-bs-theme="dark"] .map-lens-button:hover {
        background: rgba(59, 130, 246, 0.14) !important;
        color: #dbeafe !important;
        border-color: rgba(96, 165, 250, 0.3) !important;
    }

    html[data-bs-theme="dark"] .map-lens-button.active {
        background: #2563eb !important;
        color: #ffffff !important;
        border-color: #2563eb !important;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    }

/* ==========================================================================
   LEGEND
   ========================================================================== */
html[data-bs-theme="dark"] .legend-title {
    color: #e2e8f0 !important;
}

html[data-bs-theme="dark"] .legend-items {
    color: #94a3b8 !important;
}

/* ==========================================================================
   PARISH LABELS AND TOOLTIP
   ========================================================================== */
html[data-bs-theme="dark"] .parish-label {
    color: #e5e7eb !important;
    text-shadow: 0 0 2px #0f172a, 0 0 4px #0f172a, 0 0 6px #0f172a !important;
}

html[data-bs-theme="dark"] .jamaica-map-tooltip {
    background: rgba(17, 24, 39, 0.96) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    color: #e5e7eb !important;
}

/* ==========================================================================
   POPUP SHELL
   ========================================================================== */
html[data-bs-theme="dark"] .map-popup-shell .leaflet-popup-content-wrapper {
    background: #111827 !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42) !important;
}

html[data-bs-theme="dark"] .map-popup-shell .leaflet-popup-tip {
    background: #111827 !important;
}

html[data-bs-theme="dark"] .map-popup {
    background: #111827 !important;
    color: #cbd5e1 !important;
}

html[data-bs-theme="dark"] .map-popup__title {
    color: #f8fafc !important;
}

html[data-bs-theme="dark"] .map-popup__empty {
    color: #94a3b8 !important;
}

html[data-bs-theme="dark"] .map-popup__badge--primary {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

html[data-bs-theme="dark"] .map-popup__badge--success {
    background: rgba(34, 197, 94, 0.16) !important;
    color: #86efac !important;
}

html[data-bs-theme="dark"] .map-popup__badge--warning {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #fcd34d !important;
}

html[data-bs-theme="dark"] .map-popup__badge--danger {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5 !important;
}

html[data-bs-theme="dark"] .map-popup__badge--neutral {
    background: rgba(148, 163, 184, 0.14) !important;
    color: #cbd5e1 !important;
}

html[data-bs-theme="dark"] .map-popup__score-card {
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    background: #0f172a !important;
}

html[data-bs-theme="dark"] .map-popup__score-label,
html[data-bs-theme="dark"] .map-popup__metric-label {
    color: #94a3b8 !important;
}

html[data-bs-theme="dark"] .map-popup__score-value,
html[data-bs-theme="dark"] .map-popup__metric strong {
    color: #f8fafc !important;
}

html[data-bs-theme="dark"] .map-popup__recommendation {
    border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
    color: #cbd5e1 !important;
}

html[data-bs-theme="dark"] .map-popup__recommendation-title {
    color: #93c5fd !important;
}

/* ==========================================================================
   MOBILE STACKED TOOLBAR BORDER FIX
   ========================================================================== */
@media (max-width: 575.98px) {
    html[data-bs-theme="dark"] .map-lens-toolbar__title {
        border-bottom-color: rgba(59, 130, 246, 0.22) !important;
    }
}




/*////////////////////////////////////////////////*/

.report-guide-content {
    max-width: 980px;
    padding: 2.2rem 2.4rem;
    color: #334155;
    line-height: 1.85;
    font-size: 1rem;
    overflow-x: hidden;
}

    /* Better tables */
    .report-guide-content table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin: 1.25rem 0 1.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    }

        .report-guide-content table thead th {
            background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
            color: #0f172a;
            font-weight: 800;
            font-size: 0.95rem;
            padding: 0.95rem 1rem;
            text-align: left;
            border-bottom: 1px solid #dbe4f0;
            vertical-align: top;
            line-height: 1.45;
        }

        .report-guide-content table tbody td {
            padding: 0.95rem 1rem;
            border-bottom: 1px solid #e2e8f0;
            vertical-align: top;
            line-height: 1.65;
            color: #334155;
            background: #ffffff;
        }

        .report-guide-content table tbody tr:nth-child(even) td {
            background: #f8fafc;
        }

        .report-guide-content table tbody tr:hover td {
            background: #eff6ff;
        }

        .report-guide-content table tbody tr:last-child td {
            border-bottom: none;
        }

        /* Make first columns tighter when used for label-style tables */
        .report-guide-content table th:nth-child(1),
        .report-guide-content table td:nth-child(1) {
            width: 16%;
            font-weight: 700;
            color: #0f172a;
        }

        .report-guide-content table th:nth-child(2),
        .report-guide-content table td:nth-child(2) {
            width: 12%;
        }

        .report-guide-content table th:nth-child(3),
        .report-guide-content table td:nth-child(3) {
            width: 18%;
        }

    /* Responsive table handling */
    .report-guide-content .table-wrap {
        width: 100%;
        overflow-x: auto;
        margin: 1.25rem 0 1.75rem;
        border-radius: 16px;
    }

        .report-guide-content .table-wrap table {
            margin: 0;
            min-width: 720px;
        }

@media (max-width: 640px) {
    .report-guide-content table thead th,
    .report-guide-content table tbody td {
        padding: 0.8rem 0.85rem;
        font-size: 0.92rem;
        line-height: 1.55;
    }
}

.report-guide-colour {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    white-space: nowrap;
    font-weight: 500;
}

.report-guide-colour__swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Growth lens exact map colours */
.report-guide-colour__swatch--growth-dark {
    background: #0f766e;
}

.report-guide-colour__swatch--growth-green {
    background: #16a34a;
}

.report-guide-colour__swatch--growth-light {
    background: #65a30d;
}

.report-guide-colour__swatch--growth-amber {
    background: #f59e0b;
}

.report-guide-colour__swatch--growth-orange {
    background: #f97316;
}

.report-guide-colour__swatch--growth-red {
    background: #dc2626;
}

/* Coverage lens exact map colours */
.report-guide-colour__swatch--coverage-green {
    background: #16a34a;
}

.report-guide-colour__swatch--coverage-amber {
    background: #f59e0b;
}

.report-guide-colour__swatch--coverage-red {
    background: #dc2626;
}

/* Relationships lens exact map colours */
.report-guide-colour__swatch--relationship-dark {
    background: #0f766e;
}

.report-guide-colour__swatch--relationship-green {
    background: #16a34a;
}

.report-guide-colour__swatch--relationship-amber {
    background: #f59e0b;
}

.report-guide-colour__swatch--relationship-red {
    background: #dc2626;
}


/* ==========================================================================
   DARK MODE - REPORT GUIDE
   Add at end of stylesheet
   ========================================================================== */

html[data-bs-theme="dark"] .report-guide-page {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 220px, #0f172a 100%) !important;
}

/* =========================
   Hero
========================= */
html[data-bs-theme="dark"] .report-guide-hero__eyebrow {
    color: #60a5fa !important;
}

html[data-bs-theme="dark"] .report-guide-hero__eyebrow-accent {
    color: #4ade80 !important;
}

html[data-bs-theme="dark"] .report-guide-hero h1 {
    color: #f8fafc !important;
}

html[data-bs-theme="dark"] .report-guide-hero__summary {
    color: #94a3b8 !important;
}

/* =========================
   Hero Stats
========================= */
html[data-bs-theme="dark"] .report-guide-stat {
    background: rgba(17, 24, 39, 0.82) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(8px);
}

html[data-bs-theme="dark"] .report-guide-stat__value {
    color: #f8fafc !important;
}

html[data-bs-theme="dark"] .report-guide-stat__label {
    color: #94a3b8 !important;
}

/* =========================
   Sidebar Navigation
========================= */
html[data-bs-theme="dark"] .report-guide-nav {
    background: rgba(17, 24, 39, 0.88) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34) !important;
}

html[data-bs-theme="dark"] .report-guide-nav__header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}

html[data-bs-theme="dark"] .report-guide-nav__title {
    color: #f8fafc !important;
}

html[data-bs-theme="dark"] .report-guide-nav__subtitle {
    color: #94a3b8 !important;
}

html[data-bs-theme="dark"] .report-guide-nav__link {
    color: #cbd5e1 !important;
}

    html[data-bs-theme="dark"] .report-guide-nav__link:hover {
        background: rgba(59, 130, 246, 0.12) !important;
        color: #93c5fd !important;
    }

html[data-bs-theme="dark"] .report-guide-nav__link--child {
    color: #94a3b8 !important;
}

html[data-bs-theme="dark"] .report-guide-nav__link.active {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
    border-left-color: #3b82f6 !important;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.14) !important;
}

html[data-bs-theme="dark"] .report-guide-nav__link--child.active {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #93c5fd !important;
}

/* =========================
   Content Containers
========================= */
html[data-bs-theme="dark"] .report-guide-paper {
    background: #111827 !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38) !important;
}

html[data-bs-theme="dark"] .report-guide-alert {
    border-color: rgba(148, 163, 184, 0.18) !important;
}

/* =========================
   Article Content
========================= */
html[data-bs-theme="dark"] .report-guide-content {
    color: #cbd5e1 !important;
}

    html[data-bs-theme="dark"] .report-guide-content h1,
    html[data-bs-theme="dark"] .report-guide-content h2,
    html[data-bs-theme="dark"] .report-guide-content h3 {
        color: #f8fafc !important;
    }

    html[data-bs-theme="dark"] .report-guide-content h4 {
        color: #93c5fd !important;
    }

    html[data-bs-theme="dark"] .report-guide-content h1 {
        border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
    }

    html[data-bs-theme="dark"] .report-guide-content p {
        color: #cbd5e1 !important;
    }

    html[data-bs-theme="dark"] .report-guide-content strong {
        color: #f8fafc !important;
    }

    html[data-bs-theme="dark"] .report-guide-content em {
        color: #94a3b8 !important;
    }

    html[data-bs-theme="dark"] .report-guide-content code {
        background: #0f172a !important;
        color: #e2e8f0 !important;
    }

    html[data-bs-theme="dark"] .report-guide-content hr {
        border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
    }

    html[data-bs-theme="dark"] .report-guide-content blockquote {
        border-left-color: #3b82f6 !important;
        background: rgba(59, 130, 246, 0.08) !important;
        color: #cbd5e1 !important;
    }

    html[data-bs-theme="dark"] .report-guide-content a {
        color: #93c5fd !important;
    }

        html[data-bs-theme="dark"] .report-guide-content a:hover {
            color: #bfdbfe !important;
        }

    /* =========================
   Tables inside .report-guide-content
========================= */
    html[data-bs-theme="dark"] .report-guide-content .table-wrap {
        background: transparent !important;
    }

    html[data-bs-theme="dark"] .report-guide-content table {
        background: #111827 !important;
        border: 1px solid rgba(148, 163, 184, 0.18) !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
    }

        html[data-bs-theme="dark"] .report-guide-content table thead th {
            background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
            color: #f8fafc !important;
            border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
        }

        html[data-bs-theme="dark"] .report-guide-content table tbody td {
            background: #111827 !important;
            color: #cbd5e1 !important;
            border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
        }

        html[data-bs-theme="dark"] .report-guide-content table tbody tr:nth-child(even) td {
            background: #0f172a !important;
        }

        html[data-bs-theme="dark"] .report-guide-content table tbody tr:hover td {
            background: rgba(59, 130, 246, 0.1) !important;
        }

        html[data-bs-theme="dark"] .report-guide-content table th:nth-child(1),
        html[data-bs-theme="dark"] .report-guide-content table td:nth-child(1) {
            color: #f8fafc !important;
        }

        html[data-bs-theme="dark"] .report-guide-content table th,
        html[data-bs-theme="dark"] .report-guide-content table td {
            border-bottom-color: rgba(148, 163, 184, 0.16) !important;
        }

        html[data-bs-theme="dark"] .report-guide-content table th {
            background: #0f172a !important;
            color: #f8fafc !important;
        }

/* =========================
   Markdown-rendered tables
   from SimpleMarkdownRenderer
========================= */
html[data-bs-theme="dark"] .report-guide-table-wrapper {
    background: transparent !important;
    border-radius: 16px;
    overflow-x: auto;
}

html[data-bs-theme="dark"] .report-guide-table {
    width: 100%;
    background: #111827 !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    border-radius: 16px !important;
    overflow: hidden;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
}

    html[data-bs-theme="dark"] .report-guide-table thead th {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
        color: #f8fafc !important;
        font-weight: 800 !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
        padding: 0.95rem 1rem !important;
        text-align: left !important;
        vertical-align: top !important;
        line-height: 1.45 !important;
    }

    html[data-bs-theme="dark"] .report-guide-table tbody td {
        background: #111827 !important;
        color: #cbd5e1 !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
        padding: 0.95rem 1rem !important;
        vertical-align: top !important;
        line-height: 1.65 !important;
    }

    html[data-bs-theme="dark"] .report-guide-table tbody tr:nth-child(even) td {
        background: #0f172a !important;
    }

    html[data-bs-theme="dark"] .report-guide-table tbody tr:hover td {
        background: rgba(59, 130, 246, 0.1) !important;
    }

    html[data-bs-theme="dark"] .report-guide-table tbody tr:last-child td {
        border-bottom: none !important;
    }

    html[data-bs-theme="dark"] .report-guide-table th:nth-child(1),
    html[data-bs-theme="dark"] .report-guide-table td:nth-child(1) {
        color: #f8fafc !important;
        font-weight: 700 !important;
    }

/* =========================
   Colour swatch cell rendered by BuildTableCellHtml
========================= */
html[data-bs-theme="dark"] .report-guide-colour {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #e2e8f0 !important;
}

html[data-bs-theme="dark"] .report-guide-colour__swatch {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35);
    flex: 0 0 auto;
}

/* =========================
   Scrollbars inside nav
========================= */
html[data-bs-theme="dark"] .report-guide-nav__links::-webkit-scrollbar-thumb {
    background: #475569 !important;
}

    html[data-bs-theme="dark"] .report-guide-nav__links::-webkit-scrollbar-thumb:hover {
        background: #64748b !important;
    }




/*
//////////////////////////////////*/


