﻿/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Base ── */
body {
    font-family: var(--bs-font-sans-serif);
    background: var(--color-background-tertiary);
    color: var(--color-text-primary);
    margin: 0 !important;
    padding: 0 !important;
    background-color: white;
}

/* ── Preloader ── */
#preloader {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255,255,255,0.5);
    z-index: 99;
}

#status {
    width: 300px;
    height: 300px;
    position: absolute;
    left: 50%;
    top: 50%;
    background-image: url('/Spinner-3.gif');
    background-repeat: no-repeat;
    background-position: center;
    margin: -100px 0 0 -100px;
    background-size: 100px 100px;
}

/* ── Navbar ── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000;
    padding: 0 20px;
    height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    flex-wrap: nowrap; /* ADD — never wrap onto second line */
}

.nav-logo {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    color: #fff;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}

    .nav-link:hover {
        background: rgba(255,255,255,0.12);
    }

.nav-login {
    background: #000;
    color: #fff;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.dropdown-toggle {
    box-shadow: rgb(60 64 67 / 30%) 0px 1px 2px 0px, rgb(60 64 67 / 15%) 0px 1px 3px 1px;
}

.dropdown-menu {
    display: none;
    position: fixed; /* fixed so it doesn't overflow page */
    top: 56px; /* exactly below navbar height */
    right: 16px;
    left: auto;
    z-index: 500;
    width: 450px; /* fixed comfortable width on desktop */
    background: #000;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 16px;
    box-sizing: border-box;
}

    .dropdown-menu.show {
        display: block;
    }

.login-box-msg {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
}

/* inputs inside dropdown */
.dropdown-menu .form-control {
    background: #fff;
    border: 1px solid #444;
    color: #000;
    height: 40px;
}

    .dropdown-menu .form-control::placeholder {
        color: #888;
    }

    .dropdown-menu .form-control:focus {
        border-color: #000;
        box-shadow: 0 0 0 2px rgba(13,183,159,0.2);
        background: #fff;
        color: #000;
    }

.dropdown-menu .input-group-text {
    background: #e9ecef;
    border: 1px solid #ced4da;
    border-left: 0;
    color: #212529;
    height: 40px;
}
/* ── Page Shell ── */
.page-shell {
    padding: 72px 16px 16px !important;
    min-height: 100vh;
}

/* ── Main Grid ── */
.main-grid {
    display: grid;
    background: #f0f0f0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 12px;
    min-height: calc(100vh - 88px);
    grid-template-areas:
        "form map"
        "chart text";
    box-sizing: border-box;
    width: 100%;
}

/* ── Panels ── */
.panel {
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.panel-form {
    grid-area: form;
    padding-bottom: 8px;
}

.panel-map {
    grid-area: map;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-chart {
    grid-area: chart;
}

.panel-text {
    grid-area: text;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* desktop: clip overflow normally */
}

/* ── Form ── */
.form-body {
    padding: 14px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    margin-bottom: 10px;
    align-items: end;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

label {
    font-size: 17px;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

select, input[type=date] {
    width: 100%;
    padding: 7px 10px;
    font-size: 13px;
    border: 0.5px solid var(--color-border-secondary);
    border-radius: var(--border-radius-md);
    background: #fff;
    color: var(--color-text-primary);
    -webkit-appearance: none;
    appearance: none;
}

    select.form-select, input[type=date] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 10px center !important;
        background-size: 14px !important;
        padding-right: 32px !important;
    }

    select:focus, input:focus {
        outline: none;
        border-color: #0db79f;
        box-shadow: 0 0 0 2px rgba(13,183,159,0.15);
    }

.btn-search {
    padding: 7px 18px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

    .btn-search:hover {
        background: #000;
    }

/* ── Multi-select wraps ── */
.multi-select-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

    .multi-select-wrap label {
        flex-shrink: 0;
    }

    .multi-select-wrap select {
        display: none;
    }

/* ── Select2 fixed height ── */
.select2-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple,
.select2-container--default .select2-selection--multiple {
    min-height: unset !important;
    height: 120px !important;
    max-height: 120px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

    .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered,
    .select2-container--default .select2-selection--multiple .select2-selection__rendered {
        height: 120px !important;
        max-height: 120px !important;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-content: flex-start !important;
        padding: 4px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice,
    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        font-size: 14px !important;
        padding: 1px 6px !important;
        margin: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .select2-container--bootstrap-5 .select2-selection--multiple .select2-search--inline,
    .select2-container--default .select2-selection--multiple .select2-search--inline {
        max-width: 100% !important;
        min-width: 0 !important;
    }

        .select2-container--bootstrap-5 .select2-selection--multiple .select2-search--inline .select2-search__field,
        .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
            margin: 2px !important;
            font-size: 12px !important;
            max-width: 100% !important;
            min-width: 0 !important;
        }

/* ── Map ── */
.map-placeholder {
    flex: 1;
    min-height: 200px;
    position: relative;
    background: none;
    border-radius: 0;
}

#map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.expand-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: 1px solid #ccc;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    color: var(--color-text-secondary);
    z-index: 10;
}

/* ── Charts ── */
.chart-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-area {
    height: 320px;
    background: var(--color-background-secondary);
    border-radius: var(--border-radius-md);
    border: 0.5px solid var(--color-border-tertiary);
    position: relative;
    overflow: hidden;
    padding: 8px;
    box-sizing: border-box;
}

.chart-container {
    display: none;
    position: absolute;
    inset: 0;
    padding: 8px;
    box-sizing: border-box;
}

    .chart-container.active {
        display: block;
    }

    .chart-container canvas {
        width: 100% !important;
        height: 100% !important;
        border: solid 1px #000;
        background: #ececec4d;
        padding: 10px;
        border-radius: 10px;
        box-shadow: rgba(60,64,67,0.3) 0px 1px 2px 0px, rgba(60,64,67,0.15) 0px 1px 3px 1px;
    }

.chart-header {
    position: relative;
    top: 6px;
    right: 8px;
    z-index: 10;
}

.chart-nav {
    display: flex;
    gap: 8px;
    justify-content: center;
}

    .chart-nav button {
        padding: 5px 14px;
        font-size: 12px;
        background: var(--color-background-secondary);
        border: 0.5px solid var(--color-border-secondary);
        border-radius: var(--border-radius-md);
        cursor: pointer;
        color: var(--color-text-primary);
    }

        .chart-nav button:hover {
            background: var(--color-background-tertiary);
        }

/* ── Home Text ── */
.text-body {
    flex: 1;
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    overflow-y: auto;
}

    .text-body p {
        margin-bottom: 10px;
    }

/* ── Bootstrap Modal (disclamerModal + myModal) ── */
.fade {
    transition: opacity 0.15s linear;
}

    .fade:not(.show) {
        opacity: 0;
    }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055 !important;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    display: none !important;
}
    /* Center the modal properly */
    .modal.show {
        display: block !important;
    }

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem); /* allows centering but doesn't clip */
}


.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto; /* auto centers horizontally */
    pointer-events: none;
}

.modal-xl {
    max-width: 90vw;
}

.modal-lg {
    max-width: 800px;
}

.modal-md {
    max-width: 520px;
    width: 90vw;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 0.5rem;
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-title {
    margin: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 0.5rem 0.5rem;
    gap: 8px;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1054 !important;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: 0.5;
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293A1 1 0 01.293 14.707L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3E%3C/svg%3E") center/1em no-repeat;
    border: 0;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0.5;
}

    .btn-close:hover {
        opacity: 1;
    }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

    .btn-success:hover {
        background-color: #157347;
    }

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

    .btn-danger:hover {
        background-color: #bb2d3b;
    }

.btn-primary {
    background-color: #0db79f;
    border-color: #0db79f;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #0aa48e;
    }

/* ── Form Controls (for modal forms) ── */
.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

    .input-group .form-control {
        flex: 1 1 auto;
        min-width: 0;
    }

.input-group-append {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    color: #212529;
    border-left: 0;
    border-radius: 0 0.375rem 0.375rem 0;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    outline: none;
}

    .form-control:focus {
        border-color: #0db79f;
        box-shadow: 0 0 0 2px rgba(13,183,159,0.15);
    }

.mb-3 {
    margin-bottom: 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col-8 {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

.col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.text-white {
    color: #fff !important;
}

.p-0 {
    padding: 0 !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

#myModal .modal-title {
    color: #fff;
}

/* ── Chart Modal (custom) ── */
.chart-modal {
    display: none;
    position: fixed;
    z-index: 1200;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85vw;
    height: 75vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    flex-direction: column;
}

    .chart-modal.active {
        display: flex;
    }

.close-btn {
    position: absolute;
    top: 10px;
    right: 16px;
    left: auto;
    font-size: 20px;
    cursor: pointer;
    z-index: 1300;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    line-height: 1;
}

    .close-btn:hover {
        background: #f5f5f5;
    }

#modalChartContainer {
    width: 100%;
    height: 100%;
    padding: 48px 16px 16px;
    box-sizing: border-box;
}

    #modalChartContainer canvas {
        width: 100% !important;
        height: 100% !important;
    }

.chart-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1199;
}

    .chart-modal-backdrop.active {
        display: block;
    }

/* ── Map Modal (custom) ── */
.map-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1200;
}

    .map-modal.active {
        display: block;
    }

.map-modal-content {
    position: relative;
    width: 92vw;
    height: 88vh;
    margin: 4vh auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

#map-expanded {
    width: 100%;
    height: 100%;
}

.close-map-btn {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 18px;
    cursor: pointer;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

    .close-map-btn:hover {
        background: #f5f5f5;
    }
/* Make myModal wider and taller */
#myModal .modal-dialog {
    max-width: 520px;
    width: 90vw; /* responsive — won't overflow on mobile */
}

#myModal .modal-content {
    min-height: 280px;
}

#myModal .modal-header {
    padding: 1.25rem 1.5rem;
}

#myModal .modal-title {
    font-size: 18px;
    color: #fff;
}

#myModal .modal-body {
    padding: 1.5rem;
}

#myModal .form-control {
    height: 44px;
    font-size: 15px;
    padding: 0.5rem 0.75rem;
}

#myModal .input-group-text {
    height: 44px;
    font-size: 15px;
}

#myModal .btn {
    padding: 8px 24px;
    font-size: 15px;
}

#myModal .mb-3 {
    margin-bottom: 1.25rem;
}
/* Desktop — show all text normally */
.text-body {
    flex: 1;
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    overflow-y: auto;
}

.see-more-btn {
    display: none;
}
/* hidden on desktop */

/* Mobile — collapse text with See More */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
    }

    .page-shell {
        min-height: auto !important;
        overflow: visible !important;
        padding-bottom: 32px !important;
    }

    .main-grid {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    .panel {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .form-body {
        overflow: visible !important;
        height: auto !important;
    }

    .text-body {
        position: relative;
        overflow: hidden;
    }

        .text-body.collapsed #homePageText {
            display: -webkit-box;
            -webkit-line-clamp: 3; /* show 3 lines */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .text-body.collapsed::after {
            content: '';
            position: absolute;
            bottom: 36px; /* above the button */
            left: 0;
            right: 0;
            height: 40px;
            background: linear-gradient(transparent, white);
            pointer-events: none;
        }

    .see-more-btn {
        display: none;
        width: 100%;
        padding: 8px;
        margin-top: 8px;
        background: none;
        border: 1px solid black;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 500;
        color: black;
        cursor: pointer;
        text-align: center;
        flex-shrink: 0;
    }

        .see-more-btn:hover {
            background: #f0fdf9;
        }

    .navbar {
        flex-wrap: nowrap !important; /* force single row */
        height: 56px !important; /* lock height */
        padding: 0 12px; /* slightly less padding on mobile */
    }
}
/* ── Hamburger button ── */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

    .hamburger-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s;
    }

/* ── Mobile slide-down menu ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #000;
    z-index: 99;
    flex-direction: column;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

    .mobile-menu.open {
        display: flex;
    }

.mobile-nav-link {
    color: #fff;
    font-size: 15px;
    padding: 12px 20px;
    text-decoration: none;
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
    transition: background 0.15s;
}

    .mobile-nav-link:hover {
        background: rgba(255,255,255,0.08);
    }

/* ── Responsive ── */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "map" "form" "chart" "text";
    }

    .map-placeholder {
        min-height: 320px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .form-row-2 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

        .form-row-2 .multi-select-wrap:nth-child(1) {
            grid-column: 1;
            grid-row: 1;
        }

        .form-row-2 .multi-select-wrap:nth-child(2) {
            grid-column: 2;
            grid-row: 1;
        }

        .form-row-2 .btn-wrap {
            grid-column: 1 / -1;
            grid-row: 2;
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

    .nav-links {
        display: none;
    }

    #map-canvas {
        position: absolute;
        inset: 0;
        height: 100% !important;
        width: 100% !important;
    }

    .select2-container--bootstrap-5 .select2-selection--multiple,
    .select2-container--default .select2-selection--multiple,
    .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered,
    .select2-container--default .select2-selection--multiple .select2-selection__rendered {
        height: 88px !important;
        max-height: 88px !important;
    }

    .chart-modal {
        width: 95vw;
        height: 60vh;
    }

    .map-modal-content {
        width: 96vw;
        height: 80vh;
        margin: 10vh auto;
    }

    .dropdown-menu {
        width: 300px;
        right: 8px;
    }

    .panel-text {
        overflow: visible !important;
        min-height: 80px;
    }


    .text-body {
        overflow: visible !important;
        display: flex;
        flex-direction: column;
        padding-bottom: 4px;
    }

        .text-body.collapsed #homePageText {
            display: -webkit-box !important;
            -webkit-line-clamp: 3 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
            text-overflow: ellipsis;
            margin-bottom: 0;
        }

        .text-body:not(.collapsed) #homePageText {
            display: block !important;
            overflow: visible !important;
        }
    /* Show the button on mobile always */
    .see-more-btn {
        display: block !important;
    }

    .nav-links {
        display: none !important;
    }
    /* hide desktop links */
    .hamburger-btn {
        display: flex;
    }
    /* show hamburger */
    /* push login btn left of hamburger */
    .navbar {
        flex-wrap: wrap;
    }

    .nav-logo img {
        width: 110px !important;
    }
    /* hamburger stays visible */
    .hamburger-btn {
        display: flex;
        flex-shrink: 0;
    }
    /* login button doesn't stretch */
    .nav-login {
        flex-shrink: 0;
        white-space: nowrap;
    }
}
/* ── Disclaimer page layout ── */
.disclaimer-wrapper {
    min-height: calc(100vh - 56px);
    margin-top: 56px;
    padding: 24px 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    background-color: #f5f5f5;
}

.disclaimer-card {
    width: 100%;
    max-width: 860px;
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid #ddd;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.disclaimer-card-header {
    background: #000;
    padding: 20px 28px;
    text-align: center;
}

    .disclaimer-card-header h2 {
        color: #fff;
        font-weight: 700;
        font-size: 22px;
        margin: 0;
    }

.disclaimer-card-body {
    padding: 28px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    text-align: left;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

    .disclaimer-card-body p {
        margin-bottom: 12px;
    }

/* Mobile */
@media (max-width: 768px) {
    .disclaimer-wrapper {
        padding: 16px 12px;
    }

    .disclaimer-card-header {
        padding: 16px 20px;
    }

        .disclaimer-card-header h2 {
            font-size: 18px;
        }

    .disclaimer-card-body {
        padding: 20px 16px;
        font-size: 14px;
        max-height: none; /* let it scroll naturally on mobile */
    }
}

@media (max-width: 480px) {
    .disclaimer-wrapper {
        padding: 12px 8px;
    }

    .disclaimer-card-header h2 {
        font-size: 16px;
    }

    .disclaimer-card-body {
        padding: 16px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-shell {
        padding-top: 64px !important;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

        .form-row-2 > * {
            min-width: 0;
            max-width: 100%;
            width: 100%;
        }

        .form-row-2 .multi-select-wrap:nth-child(1) {
            grid-column: 1;
            grid-row: 1;
        }

        .form-row-2 .multi-select-wrap:nth-child(2) {
            grid-column: 1;
            grid-row: 2;
        }

        .form-row-2 .btn-wrap {
            grid-column: 1;
            grid-row: 3;
            display: flex;
            justify-content: flex-end;
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }

    .dropdown-menu {
        width: calc(100vw - 16px);
        right: 8px;
        left: 8px;
    }
}

/* ── Login page layout ── */
body.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

/* ── Center the card ── */
.login-box {
    width: 100%;
    max-width: 400px;
    padding: 16px;
    margin-top: 15%; /* clear the fixed navbar */
    box-sizing: border-box;
}

    .login-box .card {
        background: #fff !important;
        border-radius: 12px;
        border: 0.5px solid #ddd;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .login-box .card-body {
        padding: 32px 24px;
        text-align: center;
    }

        .login-box .card-body p {
            margin-bottom: 12px;
            font-size: 15px;
            color: #333;
        }

        .login-box .card-body a {
            color: #0db79f;
            text-decoration: none;
        }

            .login-box .card-body a:hover {
                text-decoration: underline;
            }

        .login-box .card-body img {
            margin: 12px 0;
        }

/* ── Mobile ── */
@media (max-width: 480px) {
    .login-box {
        max-width: 100%;
        padding: 12px;
    }

        .login-box .card-body {
            padding: 24px 16px;
        }
}