body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

/* Bootstrap css */
.h-15 {
    height: 15% !important;
}

p.mangrove-info-paragraph {
    font-size: 1.1em;
    line-height: 1.7;
}

/* === Loader starts === */

/* === Loader starts === */

.loader-widget {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    background: #ffffff;
    display: none;
    flex-direction: column;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
    font-family: inherit;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.loader-header {
    background: #f8f9fa;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.loader-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin: 0;
}

.minimize-loader-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s;
    margin: 0; /* Override default button margin */
}

.minimize-loader-btn:hover {
    background: #e9ecef;
    color: #333;
}

.loader-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color-1, #0d6efd);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    background-color: var(--primary-color-1, #0d6efd);
}

/* === Loader Ends === */
/* === Leaflet === */

.leaflet-popup-content {
    font-size: 13px;
    line-height: 1.3;
}

.sentinel-popup {
    max-width: 200px;
}

/* === Leaflet ends === */


/* === Accessibility Hints === */
.hint--always {
    position: relative;
    font-size: 12px;
    /* background-color: var(--primary-color-2); */
    color: var(--color-white);
    padding: 4px 8px;
    border-radius: 4px;
}


/* === Controls === */

#sentinel-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#aoi-controls {
    margin: 10px 0;
    font-size: 14px;
}

#aoi-loading-text {
    color: #999;
    font-style: italic;
}

.inline-select-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    font-size: inherit;
    line-height: inherit;
}

.adaptive-select {
    font-size: inherit;
    line-height: inherit;
    border: none;
    background: none;
    padding: 0 18px 0 4px;
    padding: 0 0px 0 4px;
    appearance: none;
    width: auto;
    min-width: 40px;
    background-color: transparent;
    color: var(--primary-color-3);
    font-weight: 700;
}

.adaptive-select:focus-visible {
    outline: none;
    border: none;
}

.inline-select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 4px;
    top: 53%;
    right: 45%;
    top: 90%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--primary-color-3);
    pointer-events: none;
    font-size: 15px;
}

.select-width-mirror {
    position: absolute;
    visibility: hidden;
    white-space: nowrap;
    padding: 0 18px 0 4px;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}


/* === Controls === */

.card-title {
    font-weight: 600;
}

.left-border {
    position: absolute;
    width: 10px;
    background: var(--bg-color);
    left: 0;
    top: 0;
    /* height: 100vh; */
}

/* .nav-menu-icon {
    font-size: 25px;
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 15px;
} */
.nav-menu-icon {
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    left: 24px;
    top: 35%;
}

.sidenav {
    /* z-index: 6; */
    height: auto;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--bg-color-light);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    padding-bottom: 30px;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 18px;
    color: var(--text-color);
    display: block;
    transition: 0.3s;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
}

/* #contentSection {
    display: none;
    padding: 15px;
    margin-left: 10px;
    padding: 10px;
    transition: 0.5s;
    color: var(--text-color);
    height: 95vh;
    overflow: scroll;

    p {
        font-weight: 300;
        font-size: 1.2rem;

    }
} */

#contentSection {
    padding: 15px;
    margin-left: 10px;
    transition: 0.5s;
    color: var(--text-color);
    height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;

    /* Scrollbar styling for WebKit browsers */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--primary-color-3) transparent;
    /* Firefox */
}

#contentSection::-webkit-scrollbar {
    width: 6px;
}

#contentSection::-webkit-scrollbar-track {
    background: transparent;
}

#contentSection::-webkit-scrollbar-thumb {
    background-color: var(--primary-color-3);
    border-radius: 4px;
}

/* Paragraph styles inside content section */
#contentSection p {
    font-weight: 300;
    font-size: 1.2rem;
}


.data-container-popup {
    height: auto;
    width: 250px;
    position: absolute;
    bottom: 1em;
    right: 6em;
    background-color: var(--sidebar-bg);
    overflow: hidden;
    transition: 0.5s;
    padding: 15px;
    box-shadow: var(--popup-box-shadow);
    border-radius: 10px;
    display: none;
}

/* Ensure the pop-up is visible during printing */
@media print {
    #left-sidebar,
    .left-sidebar,
    .right-menu,
    .chat-box,
    #chat-button,
    .map-control-button,
    .minimize-btn,
    .main-nav,
    .legend-popup,
    #progressContainer,
    .chat-submit {
        display: none !important;
    }

    #map {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 9999 !important;
    }

    /* Hide MapLibre default controls if any */
    .maplibregl-control-container {
        display: none !important;
    }
}

.sidenav a,
.data-container-popup a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: var(--text-color);
    display: block;
    transition: 0.3s;
}

.sidenav a:hover,
.data-container-popup a:hover {
    color: var(--text-color);
}

.sidenav .closebtn,
.data-container-popup .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
}

.left-sidebar {
    width: 30%;
    max-width: 560px;

    overflow: scroll;
    height: 100vh;
    /* max-height: 94vh; */
    position: absolute;
    /* border-radius: 4%; */
    transition: transform 0.3s ease-in-out;
}

.left-sidebar::-webkit-scrollbar {
    display: none;
}

.left-sidebar.hidden {
    transform: translateX(-92%);
}

/* Toast Notification */
.custom-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px 20px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.minimize-btn {
    position: absolute;
    right: 0px;
    top: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: none;
    border-radius: 33%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: none;
}

@media (max-width: 768px) {
    .main-nav .project-title {
        font-size: 3em;
    }

    .left-sidebar {
        max-width: 100vw;
        width: 100vw;
        /* Ensure it takes full width */
        border-radius: 0;
        margin-left: 0px !important;
    }

    .minimize-btn {
        display: block;
    }

}

#logo-footer {
    transition: height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#left-sidebar {
    transition: max-height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Container for the navigation bar */
.navbar {
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Individual items in the navbar */
.nav-item {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    display: flex;
    align-items: center;
}

/* Prediction Toggle */
.prediction-toggle-container {
    display: none;
    margin-left: 10px;
}
/* Icon styles */
.nav-icon {
    margin-right: 5px;
    font-size: 18px;
}

/* Hover effect for items */
.nav-item:hover {
    opacity: 0.8;
}

.nav-item i {
    margin-right: 5px;
}

.text-sm {
    font-size: .875rem;
    line-height: 1.25rem;
}


.main-nav {
    margin: 10px;
    color: var(--text-color);
    padding: 20px 20px 0 20px;
    text-align: center;
    background-size: cover;
    background-position: 50%;
    --tw-bg-opacity: 1;
    /* background-color: var(--background-color); */
    background-color: var(--primary-color-3);
    /* background-image: url('assets_2/images/location-bg.svg'); */
    /* background-image: url('../images/bg-1.svg'); */
    /* background-image: url('../images/layered-waves-haikei.svg'); */
}

.main-nav h1 {
    font-size: 5rem;
    letter-spacing: 10px;
    font-style: normal;
    /* font-weight: 100; */
    font-family: var(--font-family);
    /* font-family: "Big Shoulders Inline Text", serif; */
    /* font-optical-sizing: auto; */
    font-weight: 900;
    font-style: normal;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.widget-btn {
    /* background-color: var(--bg-color); */
    color: var(--text-color);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    max-width: var(--left-sidebar-max-width) !important;
    font-weight: 600;
    background: url(../images/bg-2.svg);
    background-position: bottom;
}

/* .widget-btn:hover {
    background-color: var(--background-color);
    color: var(--text-color);
} */

.main-nav-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.main-nav-footer button {
    background-color: var(--text-color);
    color: var(--background-color);
    /* font-size: .85rem; */
    margin: 0;
    /* border: 1px solid #008c8c; */
}

.menu-items {
    color: var(--text-color);
    text-decoration: none;

    span {
        font-size: .85rem;
    }
}

.accordian-container {
    /* max-width: 600px; */
    max-width: var(--left-sidebar-max-width);
    /* margin: 20px 12px -30px; */
    margin: 20px 12px -70px;
    background: var(--text-color);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 3px;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    position: relative;
    /* margin-top: 260px !important; */
}

.accordian-container:first-child {
    margin-bottom: 5px;
}

.accordian-container .card {
    border: 1px solid var(--border-color-light);
    /* transition: border 0.3s ease-in-out; */
    transition: border-color 0.3s ease-in-out, background 0.3s ease-in-out;
}

/* Active card border highlight and margins */
.accordian-container .card.active {
    border-color: var(--border-color);
}

/* Smooth content reveal */
.accordian-container .card .content {
    /* display: none; */
    padding: 10px;
    transition: max-height 0.3s ease-in-out;
}

/* Open state */
.accordian-container .card.open .content {
    display: block;
}
.accordian-container:has(.card.active) {
    margin-bottom: -30px !important;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.tools {
    display: flex;
    align-items: center;
}

button {
    margin-left: 10px;
    padding: 5px 10px;
    border: none;
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: var(--bg-color);
}



strong {
    color: var(--bg-color);
}

.chart {
    margin: 20px 0;
}

.progress {
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 20px;
    overflow: hidden;
}

.filled {
    background-color: var(--bg-color);
    height: 100%;
}

.details {
    margin: 10px 0;
}

.footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-applicability {
    font-size: 0.8em;
    color: gray;
    text-align: center;
}

.btn-circle {
    width: 30px;
    height: 30px;
    padding: 6px 0px;
    border-radius: 15px;
    text-align: center;
    line-height: 0;
    color: var(--bg-color);
    border: 1px solid;

    i {
        font-size: 12px;

    }

}

.btn-circle:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 1px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--bg-color);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--bg-color);
}

input:checked+.slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}



/* Map Controls */
/* .map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
} */

/* .map-control-button {
    width: 40px;
    height: 40px;
    border: none;
    color: #2e2e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-size: 22px;
    background: var(--text-icon-bg);
    line-height: 0;
    padding: 0;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
} */

/* .map-control-button:hover,
.map-control-button.active {
    background-color: #555;
} */

.legend-popup {
    display: none;
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 200px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    cursor: move;
    height: 300px;
}

/*
.popup {
    position: absolute;
    bottom: 40px;
    right: 90px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    z-index: 1000;
    width: 220px;
}

.popup h6 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #333;
    font-weight: 400;
}

.popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup li {
    margin-bottom: 5px;
}

#change-map-popup {
    top: unset !important;
    bottom: 10px;
}

.map-option {
    width: 100%;
    padding: 8px 10px;
    text-align: left;
    border: none;
    background: #f8f9fa;
    color: #333;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0;
}

.map-option:hover,
.map-option.active-map {
    background: var(--bg-color);
    color: white;
}

.leaflet-pane_selectedFeature-pane canvas {
    pointer-events: none;
}

.popup_analyze {
    width: 240px;
    max-width: 240px;
    /* transform: translate(0px, -50%) translate(888px, 553px); */
/* flex-direction: row; */
/* display: flex; */
left: 0;
/* pointer-events: none; */
/* position: absolute; */
/* top: 0; */
will-change: transform;
}

.popup_analyze {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
    padding: 10px 10px 15px;
    pointer-events: unset;
    border-radius: 20px !important;
    padding: 0 !important;
}


.backdrop-blur-sm,
.backdrop-filter {
    -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

.backdrop-blur-sm {
    --tw-backdrop-blur: blur(4px);
}

.bg-white {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.bg-white\/70 {
    background-color: hsla(0, 0%, 100%, .7);
}

.rounded-r-\[20px\] {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.justify-end {
    justify-content: flex-end;
}

.items-center {
    align-items: center;
}

.cursor-pointer {
    cursor: pointer;
}

.w-10 {
    width: 2.5rem;
}

.h-11 {
    height: 2.75rem;
}

.top-8 {
    top: 2rem;
}

.-right-\[40px\] {
    right: -40px;
}

.absolute {
    position: absolute;
}

.pt-6 {
    padding-top: 1.5rem;
}

.p-6 {
    padding: 1.5rem;
}

.border-slate-100 {
    --tw-border-opacity: 1;
    border-color: rgb(241 245 249 / var(--tw-border-opacity));
}

.border-t {
    border-top-width: 1px;
}

.rounded-3xl {
    border-radius: 1.25rem;
}

.cursor-pointer {
    cursor: pointer;
}

.w-full {
    width: 100%;
}

:disabled {
    cursor: default;
}

[role=button],
button {
    cursor: pointer;
}

[type=button],
[type=reset],
[type=submit],
button {
    appearance: button;
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

.font-semibold {
    font-weight: 600;
}

.uppercase {
    text-transform: uppercase;
}

.text-xs {
    font-size: .75rem;
    line-height: 1rem;
}

.font-sans {
    font-family: var(--font-sans), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.gap-4 {
    gap: 1rem;
}

.grid-cols-10 {
    grid-template-columns: repeat(10, minmax(0, 1fr));
}

.grid {
    display: grid;
}

.text-brand-800 {
    --tw-text-opacity: 1;
    color: rgb(0 133 127 / var(--tw-text-opacity));
}

.text-black\/85 {
    color: rgba(0, 0, 0, 85%);
}

.leading-5 {
    line-height: 1.25rem;
}

.font-light {
    font-weight: 300;
}

.text-xxs {
    font-size: .625rem;
}

.col-span-3 {
    grid-column: span 3 / span 3;
}

.col-span-7 {
    grid-column: span 7 / span 7;
}

#popup-content-locations button {
    /* background: #dedede !important; */
    /* padding: 1px 10px; */

    :hover {
        color: #fff;
    }
}

.hover-none {
    pointer-events: none;
}

.img-duk-logo {
    max-width: 180px;
}

.bottom-logo {
    position: absolute;
    bottom: 0;
    left: 14px !important;
    /* width: auto; */

    /* border-top: 1px solid; */
    /* padding-top: 10px; */
    /* background: #fff; */
    /* margin-bottom: 1px; */
    /* border-radius: 10px; */
    /* background: #00807b; */
    /* color: #fff; */
    /* /* box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; */
    /* box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px; */
    /* box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px; */
    /* box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px; */
}

.main-nav h1 {
    font-family: "General Sans", sans-serif;
    font-weight: 300
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.checkbox-label:hover,
.checkbox-label input:hover {
    cursor: pointer;
}

.legend-box {
    width: 40px;
    height: 20px;
    border: 1px solid #000;
    flex-shrink: 0;
}


/* Custom Dropdown */
/* .custom-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    z-index: 9999999999999;
}

.custom-dropdown-toggle {
    font-weight: bold;
    color: #49c9c2;
    text-decoration: underline;
    cursor: pointer;
    z-index: 9999999999999;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    min-width: 80px;
    padding: 5px 0;
    list-style: none;
    z-index: 999999999999;
}

.custom-dropdown-menu li {
    padding: 8px 12px;
    cursor: pointer;
    text-align: center;
    color: #333;
}

.custom-dropdown-menu li:hover {
    background: #49c9c2;
    color: white;
} */

.custom-dropdown {
    font-weight: bold;
    color: var(--primary-color-1);
    text-decoration: underline;
    cursor: pointer;
    position: relative;
    padding: 10px
}

/* Styling the select dropdown */
select.custom-dropdown {
    border: none;
    background: none;
    font-size: 16px;
    color: var(--primary-color-1);
    text-decoration: underline;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select.custom-dropdown:focus {
    outline: none;
}

/* Arrow styling */
.custom-dropdown-wrapper {
    display: inline-block;
    position: relative;
}

.custom-dropdown-wrapper::after {
    content: "▼";
    position: absolute;
    /* right: 8px;
    top: 50%; */
    right: 30px;
    top: 35px;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--primary-color-1);
    pointer-events: none;
}

/* .map-control-buttons {
    background: #fff;
    padding: 9px 0px;
    border-radius: 38px;
    margin: auto 11px;
} */

.right-menu {
    position: absolute;
    z-index: 111;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background-image: url(../images/triangles2.svg);
    border-radius: 10px;

}



.right-menu button {
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    color: white;
    /* background-color: var(--bg-color); */
    font-size: 1.2em;
    border-radius: 0px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.right-menu button:hover {
    /* background: var(--primary-color-2); */
    background: var(--secondary-color);
}

.top-round {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

.bottom-round {
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.map-control-button {
    /* background: #fff; */
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.negative-margin {
    margin-bottom: -70px !important;
}

.popup {
    /* display: none; */
    position: fixed;
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    bottom: 5%;
    right: 10%;
    background: white;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
    /* width: 300px; */
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.map-style {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.map-option {
    width: 80px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #d3d3d3;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.map-option.active {
    border-color: #00bcd4;
}

.map-source {
    margin-top: 15px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    padding: 5px 10px
}

.close-btn:hover {
    background-color: var(--bg-color-light);
    color: var(--color-white);
    border: 1px solid var(--bg-color);
}

/* About us */
.sidebar-about-section {
    /* background-color: #f4f9f8; */
    padding: 20px;
    border-radius: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.sidebar-about-section h2 {
    font-size: 20px;
    color: #00695c;
    margin-bottom: 12px;
}

.sidebar-about-section strong {
    color: #004d40;
}

.sidebar-about-section ul,
.sidebar-about-section ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.sidebar-about-section ul li,
.sidebar-about-section ol li {
    margin-bottom: 6px;
}


.custom-select-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
}

.custom-select {
    position: relative;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding-right: 20px;
}

.custom-select .arrow {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 10px;
}

.custom-select select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
    height: 100%;
}

.custom-select-text {
    pointer-events: none;
}

#load-tiles-btn {
    padding: 8px 14px;
    background-color: #1C75BC;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#load-tiles-btn:hover {
    background-color: #155f96;
}



/* Hide default print button */
.leaflet-control-browser-print {
    display: none !important;
}


/* Chatbot CSS */

#chat-button {
    position: fixed;
    bottom: 70px;
    right: 10px;
    background: #3c657f;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    /* padding: 20px; */
    cursor: pointer;
    z-index: 9999;
    background-image: url(../images/bg-1.svg);
    background-position: right;
    color: #fff;
    box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.6), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

/* #chat-button .fa {
    color: #fff !important;
} */

.btn#my-btn {
    background: white;
    padding-top: 13px;
    padding-bottom: 12px;
    border-radius: 45px;
    padding-right: 40px;
    padding-left: 40px;
    color: #5865C3;
}

#chat-overlay {
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: none;
}


.chat-box {
    display: none;
    background: #efefef;
    position: fixed;
    right: 30px;
    bottom: 50px;
    width: 350px;
    max-width: 85vw;
    max-height: 100vh;
    border-radius: 5px;
    /*   box-shadow: 0px 5px 35px 9px #464a92; */
    box-shadow: 0px 5px 35px 9px #ccc;
    z-index: 9999 !important;
}


.chat-box-toggle {
    float: right;
    /* margin-right: 15px; */
    cursor: pointer;
}

.chat-box-header {
    /* background: #5A5EB9; */
    height: 55px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    color: white;
    text-align: center;
    font-size: 15px;
    padding: 15px;
    background-image: url(../images/bg-1.svg);
    background-position: right;
}

.chat-box-body {
    position: relative;
    height: 370px;
    height: auto;
    border: 1px solid #ccc;
    overflow: hidden;
}

/* .chat-box-body:after {
    content: "";
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAgOCkiIGZp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
    bottom: 0;
    right: 0;
    height: 100%;
    position: absolute;
    z-index: -1;
} */

#chat-input {
    background: #f4f7f9;
    width: 100%;
    position: relative;
    height: 47px;
    padding-top: 10px;
    padding-right: 50px;
    padding-bottom: 10px;
    padding-left: 15px;
    border: none;
    resize: none;
    outline: none;
    border: 1px solid #ccc;
    color: #888;
    border-top: none;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    overflow: hidden;
    font-size: 13px;
}

.chat-input>form {
    margin-bottom: 0;
}

#chat-input::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: #ccc;
}

#chat-input::-moz-placeholder {
    /* Firefox 19+ */
    color: #ccc;
}

#chat-input:-ms-input-placeholder {
    /* IE 10+ */
    color: #ccc;
}

#chat-input:-moz-placeholder {
    /* Firefox 18- */
    color: #ccc;
}

.chat-submit {
    position: absolute;
    bottom: 3px;
    right: 10px;
    /* background: transparent; */
    box-shadow: none;
    border: none;
    border-radius: 5px;
    color: #5A5EB9;
    width: 35px;
    height: 35px;
}

.chat-logs {
    padding: 15px;
    height: 370px;
    overflow-y: scroll;
}

.chat-logs::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #F5F5F5;
}

.chat-logs::-webkit-scrollbar {
    width: 5px;
    background-color: #F5F5F5;
}

.chat-logs::-webkit-scrollbar-thumb {
    background-color: #5A5EB9;
}



@media only screen and (max-width: 500px) {
    .chat-logs {
        height: 40vh;
    }
}

.chat-msg.user>.msg-avatar i {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    float: left;
    /* width: 15%; */
}

.chat-msg.self>.msg-avatar i {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    float: right;
    /* width: 15%; */
}

.cm-msg-text {
    background: white;
    /* padding: 10px 15px 10px 15px; */
    padding: 5px 15px 5px 15px;
    color: #666;
    max-width: 75%;
    float: left;
    /* margin-left: 10px; */
    position: relative;
    margin-bottom: 20px;
    /* border-radius: 30px; */
    border-radius: 5px;
    font-size: 13px;
}

.chat-msg {
    clear: both;
}

.chat-msg.self>.cm-msg-text {
    float: right;
    margin-right: 10px;
    background: #1d89c6;
    color: white;
}

.cm-msg-button>ul>li {
    list-style: none;
    float: left;
    width: 50%;
}

.cm-msg-button {
    clear: both;
    margin-bottom: 70px;
}


/* Location pin marker */
.custom-location-icon {
    width: 30px;
    height: 42px;
    position: relative;
}

.custom-location-icon .pin {
    width: 20px;
    height: 30px;
    background: red;
    position: absolute;
    top: 0;
    left: 5px;
    border-radius: 10px 10px 10px 10px;
    transform: rotate(45deg);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.custom-location-icon .pin::after {
    content: '';
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 3px;
}

.custom-popup {
    position: absolute;
    background: white;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px;
    min-width: 200px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    cursor: grab;
    z-index: 9999;
}

.loader-widget.minimized {
    top: auto;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    border-radius: 8px 8px 0 0;
}

/* Arrow below popup (default) */
.custom-popup.arrow-bottom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Arrow above popup */
.custom-popup.arrow-top::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.custom-popup h6 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.custom-popup p {
    margin: 0 0 5px 0;
    font-size: 12px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.btn-agb-analyse,
.btn-analyse {
    background: var(--primary-color-3);
    border: none;
    font-size: .8rem;
    color: #fff;
}


#soil_moisture_legend_bg,.legend-agb-csv {
    height: 20px;
    width: 75%;
    margin: 0 auto;

}

#legend-text,.legend-agb-csv-text {
    position: relative;
    height: 14px;
    width: 75%;
    margin: 0 auto;
}
/* Professional UI Refinements */
.transparency-container {
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 16px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.transparency-container:hover {
    border-color: var(--primary-color-2) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.opacity-label-pill {
    background: var(--primary-color-2);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 45px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.fly-to-bounds {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.fly-to-bounds:hover {
    background: var(--primary-color-2);
    border-color: var(--primary-color-2);
    transform: scale(1.1);
}

.fly-to-bounds i {
    font-size: 0.8rem;
}

/* Custom Range Slider */
.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    margin-top: 10px;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid var(--primary-color-2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-color-1);
}

.custom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid var(--primary-color-2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Header Tool Buttons */
.header-tool-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-tool-btn:hover {
    background: var(--primary-color-2) !important;
    border-color: var(--primary-color-2) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.header-tool-btn:active {
    transform: translateY(0);
}

.header-tool-btn i {
    font-size: 0.85rem;
}

.opacity-08 {
    opacity: 0.8;
}

/* Redefining card header for better tool alignment */
.card .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card .header .tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Fix for existing .fly-to-bounds in CSS if any */
.fly-to-bounds.header-tool-btn {
    /* override previous if needed */
}

/* === Settings Icon & Popup === */

.settings-icon {
    cursor: pointer;
    color: var(--primary-color-3);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.settings-icon:hover {
    opacity: 1;
}

#layer-settings-popup {
    position: fixed; /* Fixed to viewport so it floats above everything */
    background: #fff; /* Use theme background */
    color: #333;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    width: 280px;
    z-index: 9999; /* Highest priority */
    top: 50%; /* Default center, will be calculated by JS */
    left: 50%;
    /* transform: translate(-50%, -50%); - Removed to allow manual positioning */
}

#layer-settings-popup .popup-header {
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

#layer-settings-popup .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%); /* Make close button white if dark theme */
}

/* Ensure range slider looks good in popup */
#layer-settings-popup input[type=range] {
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 5px;
}

#layer-settings-popup input[type=range]::-webkit-slider-runnable-track {
    background: transparent !important;
    height: 6px;
}

#layer-settings-popup input[type=range]::-moz-range-track {
    background: transparent !important;
    height: 6px;
}

.btn-close{
    /* opacity: 1; */
    /* color: #fff !important; */
}

/* Fix for measurement popup visibility */
.custom-popup-wrapper {
    z-index: 2000 !important;
}

.custom-popup-wrapper .maplibregl-popup-content {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 10px;
    padding-right: 25px; /* Space for close button */
    border: 1px solid #ccc;
    font-size: 13px;
    line-height: 1.4;
}

.custom-popup-wrapper .maplibregl-popup-close-button {
    font-size: 18px;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    right: 8px;
    top: 8px;
    line-height: 1;
    z-index: 10;
}

.custom-popup-wrapper .maplibregl-popup-close-button:hover {
    color: #000;
    background-color: #f0f0f0;
    border-radius: 50%;
}


/* ===================================
   Custom Toast Notifications
   =================================== */
.custom-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.custom-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.custom-toast.info {
  background: rgba(0, 128, 255, 0.1);
  color: #007bff;
}

.custom-toast.success {
  background: rgba(0, 255, 128, 0.1);
  color: #28a745;
}

.custom-toast.error {
  background: rgba(255, 0, 0, 0.1);
  color: #dc3545;
}