:root {
    --contron-btn-icons: #525252;
    /* --pss-primary: #4f78ff; */
    --pss-primary: #232832;
    --pss-fonts-accent: #f2efef;
    --pss-legend-color: #FFFFFF;
    --pss-legend-border: rgb(159, 159, 159)
}

body {
    color: #333 !important;
    font-family: 'Jost', sans-serif !important;
     font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}

/* SNACKBAR START */
#snackbar {
    visibility: hidden;
    /* Hidden by default. Visible on click */
    min-width: 250px;
    /* Set a default minimum width */
    margin-left: -125px;
    /* Divide value of min-width by 2 */
    background-color: #333;
    /* Black background color */
    color: #fff;
    /* White text color */
    text-align: center;
    /* Centered text */
    border-radius: 2px;
    /* Rounded borders */
    padding: 16px;
    /* Padding */
    position: fixed;
    /* Sit on top of the screen */
    z-index: 1;
    /* Add a z-index if needed */
    left: 50%;
    /* Center the snackbar */
    bottom: 30px;
    /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible;
    /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* SNACKBAR END */


.top-bar-pss {
    position: absolute;
    z-index: 1;
    width: 100vw;
    padding: 0px;
}

.navbar-pss {
    /* margin: 8px; */
    border-radius: 5px;
    height: 60px;
    background: var(--pss-primary);
    padding: 8px;
}

.main-logo {
     height: 50px;
    width: 50px;
    margin-top: 15px;
    margin-bottom: px;
    padding-top: 0px;
    padding-bottom: 0px;
    background: white;
    border-radius: 5px;
}
.main-logo1 {
    height: 50px;
    width: 50px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding-top: 1px;
    padding-bottom: 1px;
}

.top-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--pss-fonts-accent);
    height: 30px;
    width: 30px;
}



.pss-map {
    height: calc(100vh - 0px);
    background: lightgrey;
}

.dropdown-toggle::after {
    color: var(--pss-fonts-accent);
    display: none;
}

.sidebar-pss {
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    width: 300px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    /* background: var(--light); */
    /* border-right: 1px solid #888; */
    transition: 0.5s;
    z-index: 999;
}

.content-pss {
    /* margin-left: 250px; */
    background: #FFFFFF;
    transition: 0.5s;
    /* height: calc(100vh - 70px); */
    height: calc(100vh);
    width: calc(100% - 250px);
}

@media (min-width: 992px) {

    .sidebar-pss {
        margin-left: -250px;
    }

    /* .sidebar-pss-toggler {
        display: none !important;
    } */

    .sidebar-pss.open {
        margin-left: 0px;
    }

    .content-pss {
        width: calc(100%);
    }

    .content-pss.open {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {

    .sidebar-pss {
        margin-left: -250px;
    }

    .sidebar-pss.open {
        margin-left: 0;
    }

    .content-pss {
        width: 100%;
        margin-left: 0;
    }

}

.sidebar-pss {
    color: var(--dark);
    font-weight: 500;
    outline: none;
}

.sidebar-content {
    width: 250px;
    height: 100%;
    align-items: flex-start;
    padding: 0px;
}

.sidebar-tabs {
    width: 50px;
    height: 100%;
    border-left: 1px solid #888;
}

.sidebar-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    writing-mode: vertical-rl;
    background-color: var(--pss-primary);
    border-bottom-right-radius: 15px;
    border-top-right-radius: 3px;
    color: white;
    text-decoration: none;
    margin-top: 1px;
    margin-bottom: 1px;
}

.mousePosition {
    position: absolute;
    right: 50px;
    top: 70px;
    border-radius: 2px;
    padding: 1px 2px 1px 2px;
    font-size: 11px;
    background: var(--pss-primary);
    color: var(--pss-fonts-accent);
    box-shadow: #888;
}
@media (min-width: 320px) and (max-width: 767px) {
  .mousePosition {
    top: 130px;
  }}
.legendControlsDiv {
    position: absolute;
    right: 5px;
    TOP: 320px;
    border-radius: 2px;
    padding: 1px 2px 1px 2px;
    font-size: 11px;
    color: var(--pss-fonts-accent);
    box-shadow: #888;
}

.legendButton {
  border: none;
    border-radius: 5px;
    margin-bottom: 5px;
}
/* Default Styles (applies to all screen sizes) */

  
/* .measButton {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
} */
/* .measElement {
    position: absolute;
    left: 8px;
    top: 327px;
} */

.fsControlsDiv {
    position: absolute;
    right: 8px;
    top: 66px;
}

.zoomControlsDiv {
    position: absolute;
    right: 8px;
    top: 138px;
}

.panButton {
   border: none;
    border-radius: 5px;
    margin-bottom: 5px;
}

.DroneButton {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
}

.FlythrBtn {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
}

.ChangedetBtn {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
}

.TimelapseBtn {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
}

.measButton {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
}
.QueryFilterBtn {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
}
.locateBtn {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
}
.DrawButton {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
}

.FollowButton {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
}

.map3DBtn {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
}

.fsButton {
    border: none;
    border-radius: 5px;
    margin-bottom: 5px;
}

.ol-zoom {
    display: none !important;
}

.zoomInButton {
    /* border-right: 1px solid #ccc;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-bottom: none; */
    border: none;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.zoomOutButton {
    /* border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-top: none; */
    border: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.layersControlsDiv {
    position: absolute;
    left: 8px;
    top: 68px;
}

.basemapControlsDiv {
    position: absolute;
    left: 8px;
    bottom: 34px;
}

.controlBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    padding: 0;
    background: var(--pss-primary);
    color: var(--pss-fonts-accent);
}

.controlBtn.clicked {
    background: var(--contron-btn-icons);
    color: var(--pss-primary);
    border: none;
    color: white;
}

.layersButton {
    /* border: 1px solid #ccc; */
    border: none;
    border-radius: 5px;
    margin-bottom: 5px;
}

.infoButton {
    /* border: 1px solid #ccc; */
    border: none;
    border-radius: 5px;
    margin-bottom: 5px;
}

.basemapButton {
    /* border: 1px solid #ccc; */
    border: none;
    border-radius: 4px;
    color: var(--pss-fonts-accent);
}

.pss-basemaps-div {
    display: none;
    flex-direction: column;
}

.basemap-label {
    margin-left: 10px;
}

.pss-feature-info-div {
    display: none;
}

/* BASEMAP RADIO BUTTONS START */
.input-hidden {
    position: absolute;
    left: -9999px;
}

input[type=radio]:checked+label>img {
    border: 3px solid var(--primary);
    /* box-shadow: 0 0 3px 3px #090; */
}

/* Stuff after this is only to make things more pretty */
input[type=radio]+label>img {
    /* border: 1px solid var(--pss-fonts-accent); */
    border-radius: 5px;
    width: 60px;
    height: 60px;
    /* transition: 500ms all; */
}

/* BASEMAP RADIO BUTTONS END */


.page-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    line-height: 0.95;
}

@media (min-width: 992px) {

    .page-title {
        font-size: 110%;
    }

    .sidebar {
        margin-left: 0;
    }

    .sidebar-toggler {
        display: none !important;
    }

    .rightbar-toggler {
        display: none !important;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: calc(100% - 550px);
    }

    .content.open {
        width: 100%;
        margin-left: 0;
    }

    .rightbar {
        margin-right: 0;
    }

    .rightbar.open {
        margin-right: -300px;
    }
}

@media (max-width: 991.98px) {

    .page-title {
        font-size: 90%;
    }

    .sidebar {
        margin-left: -250px;
    }

    .sidebar.open {
        margin-left: 0;
    }

    .content {
        width: 100%;
        margin-left: 0;
    }

    .rightbar {
        margin-right: -300px;
    }

    .rightbar.open {
        margin-right: 0;
        ;
    }

}

.page-title-pss {
    justify-content: start;
    color: var(--pss-fonts-accent);
      font-family:   sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 650;
    font-size: 24px; /* Large font size */
    line-height: 1.2; /* Better spacing for large text */
}
@media (min-width: 320px) and (max-width: 425px) {
  .page-title-pss {
    font-size: 18px; /* smaller font size for mobile */
    
  }

  .main-logo {
    height: 40px;
    width: 30px;
   
  }

  .main-logo1 {
    height: 35px;
    width: 35px;
   
  }
}

.basemapContainer {
    position: absolute;
    background: var(--pss-primary);
    top: 364px;
    left: 42px;
    flex-direction: column;
    max-height: 180px;
    overflow-y: auto;
    width: 240px; /* Adjust width to fit three images per row */
    z-index: 9999;  
    border-radius: 5px;
    padding: 3px;
    grid-template-columns: repeat(3, 1fr); /* 3 items per row */
    gap: 1px; /* Space between items */
    justify-items: center;
    align-items: center;
    display: grid;
}

.basemapContainer label {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 2px solid transparent; /* Default border */
    border-radius: 5px;
    padding: 1px;
    transition: all 0.3s ease;
    background: var(--pss-secondary);
}

.basemapContainer label img {
    width: 70px; /* Adjust size as needed */
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    margin: 1px;
    border: 1px solid white;
}

.basemapContainer label span {
    font-size: 10px;
    text-align: center;
    color: #fff;
}

/* Highlight selected basemap */
input[type="radio"]:checked + label {
    border: 2px solid #ffcc00; /* Highlight color */
    background: rgba(255, 255, 255, 0.1);
}



.layersContainer {
    position: absolute;
    background: var(--pss-primary);
    top: 68px;
    left: 42px;
    max-height: 65vh;
    /* min-height: 10vh; */
    overflow-y: auto;
    width: 310px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    border-radius: 5px;
    padding: 5px;
}
@media (min-width: 300px){
   .layersContainer {
        
        width: 250px;
    
    }
   
}
@media (min-width: 768px){
   .layersContainer {
        
        width: 300px;
    
    }
   
}


/* Accordion style */
.accordion--custom {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Collapsible button */
.collapsible {
    width: 100%;
    height:40px;
    background-color: #000000;
    color: white;
    padding: 15px;
    text-align: left;
    font-size: 14px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease;
}
.content3 {
    padding: 0 18px;
    max-height: 0px;
    overflow:auto;
    transition: max-height 0.2s ease-out;
    background-color: #ffffff;
    width: 100%;
    text-align: left;
  }
.content {
    padding: 0 18px;
    max-height: 0px;
    overflow-y:auto;
    transition: max-height 0.2s ease-out;
    background-color: #ffffff;
    width: 100%;
    text-align: left;
  }

.content1 {
    padding: 0 14px;
    max-height: 0px;
    overflow-y:auto;
    transition: max-height 0.2s ease-out;
    background-color: #ffffff;
    width: 100%;
    text-align: left;
  } 
  
.collapsible:hover {
    background-color: #2d2d2d;
}

.content input[type="checkbox"] {
    margin-right: 10px;
}

.content label {
    font-size: 14px;
    color: #333;
}

.content1 label {
    font-size: 14px;
    color: #7d2a2a;
}

/* When collapsible is active, show the content */
.collapsible:active + .content, .collapsible:checked + .content {
    display: block;
}

/* All-Layers checkbox container */
.All-Layers,
.All-Layers2 {
    margin-right: 10px;
}





/* //Layer Coolapsible */
/* //Layer Coolapsible */
#layer{
    position: absolute;
    top: 10%;
    left: 95%;
    color: rgb(0, 0, 0);
    font-size: 16px;
    padding: 12px 12px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
  }
  #b2{
    background-color: #ea7a19;
    height: 35px;
    width: 35px;
    margin-left: 0;
    padding: 2px;
  }
  #b2:hover{
    background-color: #c79db6;
  }
  
  .sidebar {
    position: fixed;
    top: 70px;
    left: 14%;
    bottom: 0;
    width: 300px;
    /* height: calc(100vh - 70px); */
    overflow-y: auto;
    background: var(--light);
    /* border: 1px solid #888; */
    transition: 0.5s;
    z-index: 999;
}

  /* Acordion */
  /* .collapsible {
    background-color: #000000;
    color: white;
    cursor: pointer;
    padding: 5px;
    width: 100%;
    border: none;
    text-align: left;
    outline: white;
    font-size: 14px;
    margin-bottom: 3px;
    padding-left: 8px;
  }
  
  .active, .collapsible:hover {
    background-color: #555;
  }
  
  .collapsible:after {
    content: '\002B';
    color: white;
    float: right;
    margin-left: 5px;
    min-height: 0px;
  }
  
  .active:after {
    content: \2212;
  }
   */

input[type=checkbox] {
    accent-color: rgb(255, 255, 255);
    box-shadow: 0px 0px 0px 0.5px rgb(177, 175, 175);
 
}

/* #drone{
    background-color: #232832;
   
}

#accordionExample{
    border-bottom: 2px solid var(--contron-btn-icons);
} */




.flythrContainer {
    position: absolute;
    background: var(--pss-primary);
    top: 253px;
    left: 42px;
    max-height: 65vh;
    /* min-height: 10vh; */
    overflow-y: auto;
    width: 300px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    border-radius: 5px;
    padding: 5px;
    
}
#flyToSelectl{
    color: #ffffff;

}

@media (min-width: 300px){
 .flythrContainer {
        
        width: 220px;
    
    }
   #flyToSelect {
    width: 150px;
   }
}
@media (min-width: 768px){
  .flythrContainer {
        
        width: 250px;
    
    }
    #flyToSelect {
    width: 180px;
   }
}
.filter-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 5px;
  font-size: 14px;
}

.filter-btn:hover {
  background-color: #45a049;
}

.filter-btn i {
  margin-right: 5px;
}   
.locatediv {
    position: absolute;
    background: var(--pss-primary);
    top: 140px;
    right: 42px;
    max-height: 65vh;
    /* min-height: 10vh; */
    overflow-y: auto;
    width: 200px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    border-radius: 5px;
    padding: 5px;
    height: 32px;
    
}
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 15px; /* space between checkboxes and labels */
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: white;
}





/* Tooltip text */
.tooltip-text {
    visibility: hidden;
    width: 120px; /* Adjust for tooltip width */
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    z-index: 1000;
    bottom: 125%; /* Position above the button */
    left: 100%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Legend container */
/* Legend container */
.legendContainer {
    position: absolute;
    background: var(--pss-legend-color);
    top: 0px;
    right: 38px;
    width: 230px;
    z-index: 9999;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    border-radius: 5px;
    padding: 12px;
    border:1px solid var(--pss-legend-border);
    border-radius: 5px;
    height: 200px;
}
@media (min-width: 300px){
    .legendContainer {
        height: 180px;
        /* overflow-y: scroll; */
    }
    .bottom-tag {
        display: none;
    }
}
@media (min-width: 800px){
    .legendContainer {
       height: 420px;
    }
}
@media (min-width: 1200px){
    .legendContainer {
       height: 420px;
    }
}
@media (min-width: 1400px){
    .legendContainer {
       height: 420px;
    }
}

/* Legend heading */
#leg{
    background-color: var(--pss-primary);
    color: var(--pss-legend-color);
    padding: 2px;
}
/* Legend End */
.editingContainer {
    position: absolute;
    background: var(--pss-primary);
    color: var(--pss-fonts-accent);
    top: 116px;
    left: 40px;
    max-height: 65vh;
    /* min-height: 10vh; */
    overflow-y: auto;
    width: 240px;
    z-index: 1;
    display: none;
    flex-direction: column;
    border-radius: 5px;
    padding: 5px;
}

.editingContainer-header {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #525252;
}

.infoContainer {
    position: absolute;
    background: var(--pss-primary);
    color: var(--pss-fonts-accent);
    bottom: 0px;
    /* right: 50%; */
    max-height: 30vh;
    /* min-height: 10vh; */
    /* overflow-x: auto; */
    width: 100%;
    z-index: 10000;
    display: none;
    border-radius: 5px;
    padding-right: 10px;
    padding-left: 10px;
    box-shadow: 0px -5px 15px 1px rgba(0, 0, 0, 0.25);
    /* transition: visibility 0s, opacity 0.5s linear; */
    transition: opacity 0.3s ease;
    transition-delay: 300ms;
}

/* .attribute-table {
    width: 100%;
} */

.attribute-table,
th,
td {
    border-bottom: 1px solid var(--contron-btn-icons);
    border-radius: 5px;
    padding: 2px;
    color: var(--pss-fonts-accent);
    font-size: 90%;
    width: 100%;
}

.attribute-table input[type="text"] {
    background: var(--light);
    color: var(--pss-primary);
    border-radius: 3px;
}

.attribute-table input[type="text"]:focus {
    border: none;
}

.attribute-table input[type="text"]:disabled {
    background: var(--pss-primary);
    color: var(--pss-fonts-accent);
}


.attTableInputs-non-editable,
.attTableInputs-id,
.attTableInputs {
    border: none;
}


.infoContainer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    width: 100%;
    border-bottom: 1px solid #888;
}

.infoContainer-title {
    display: flex;
    align-items: center;
    justify-content: start;
    height: 100%;
    /* width: calc(50%); */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tools-div {
    display: flex;
}

.infoContainer-closer {
    /* height: 100%; */
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infoContainer-body {
    width: 100%;
    overflow: auto;
    padding-top: 10px;
    padding-bottom: 10px;
}


.allowAttributeEditing,
.saveAttributeEditing {
    background: var(--pss-fonts-accent);
    color: var(--contron-btn-icons);
    border: none;
    border-radius: 3px;
    margin-right: 5px;
}

/* @media (min-width: 1025px) {
    .infoContainer {
        width: 30%;
    }
} */

#start-editing-button.clicked {
    border: 2px solid red;
}

#add-features-button.clicked {
    border: 2px solid red;
}

#edit-features-button.clicked {
    border: 2px solid red;
}

#delete-features-button.clicked {
    border: 2px solid red;
}



/* start: accordian custom */

/* .lyr-reset-btn {

} */

.accordion-item {
    /* border-radius: 5px; */
    background: var(--pss-primary);
    width: 450;
}

.accordion--custom {
    width: 100%;
    max-height: calc(100vh - 190px);
    /* overflow: auto; */
}

.accordion--custom .accordion-header {
    background: var(--pss-primary);
    display: flex;
    /* make flex element */
    align-items: center;
    /* aligning child items */
    column-gap: 0rem;
    /* adding gap between items in row */
    padding-left: 0.3rem;
    /* border-radius: 5px; */
    border-bottom: 1px solid var(--contron-btn-icons);
}

/* small udjustments */
.accordion--custom .accordion-header .accordion-button {
    padding-left: 0;
    background: var(--pss-primary);
    font-size: 90%;
    color:var(--pss-legend-color);
}

.accordion--custom .accordion-button:not(.collapsed) {
    box-shadow: none;
    color: var(--pss-fonts-accent);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")
}

.form-check-input {
    background-color: var(--pss-fonts-accent);
    border-color: var(--pss-fonts-accent);
}

.form-check-input:checked {
    background-color: var(--pss-fonts-accent);
    border-color: var(--pss-fonts-accent);
}

.form-check-input:focus {
    /* box-shadow: inset 0 -1px 0 #ddd; */
    box-shadow: none;
    border-color: none;
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%232F3B3E' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

/* end: accordian custom */



/*  */
/*  */
/*  */
/* map attribution*/
/*  */
/*  */
/*  */

.ol-attribution:not(.ol-collapsed) {
    background: var(--pss-primary);
}

.ol-attribution {
    background: var(--pss-primary);
}

.ol-attribution ul,
a {
    color: var(--pss-fonts-accent);
    text-shadow: none;
}

/*  */
/*  */
/*  */
/* map scale */
/*  */
/*  */
/*  */


.ol-scale-line {
    background: var(--pss-primary);
}

.ol-scale-line-inner {
    color: var(--pss-fonts-accent);
}


/*  */
/*  */
/*  */
/* map popup */
/*  */
/*  */
/*  */

/* .ol-popup {
    position: absolute;
    background: var(--pss-primary);
    color: var(--pss-fonts-accent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    padding: 20px 5px 5px 5px;
    border-radius: 5px;
    border: none;
    bottom: 12px;
    left: -50px;
    min-width: 280px;
    display: none;

} */
/* 
.ol-popup:after,
.ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ol-popup:after {
    border-top-color: var(--pss-primary);
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}

.ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}

.ol-popup-closer {
    text-decoration: none;
    color: var(--pss-fonts-accent);
    position: absolute;
    top: -1px;
    right: 4px;
    z-index: 9;
}

.ol-popup-closer:after {
    content: "✖";
} */
/* 
#popup-content span {
    font-size: 80%;
    margin: 0;
    font-weight: bold;
    color: var(--light-blue);
}

.popup-list {
    background: var(--pss-fonts-accent);
    color: var(--pss-primary);
    display: flex;
    flex-direction: column;
    padding: 0px 3px 0px 3px;
    border: 1px solid #888;
    border-radius: 3px;
    margin-bottom: 3px;
    line-height: 1.2;
}

.popup-detail-btn-div {
    display: flex;
    justify-content: space-between;
}

.popup-detail-btn small {
    font-weight: bold;
}

.popup-detail-btn {
    border-radius: 2px;
    color: var(--primary) !important;
}

.popup-detail-btn:hover {
    cursor: pointer;
} */
.qryButton {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
}

.bufferButton {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
}
.qryElement {
    position: absolute;
    left: 8px;
    top: 365px;
}

.bufferElement {
    position: absolute;
    left: 8px;
    top: 200px;
}

/* Attribute Query */

.attQueryDiv {
    position: absolute;
    background: var(--pss-primary);
    top: 142px;
    left: 42px;
    overflow-y: auto;
    width: 300px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    border-radius: 5px;
    padding: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1em;
    line-height: 1.45;
    box-shadow: 0px 0px 15px rgba(100, 100, 100, 0.5);
    height: 400px;
    overflow-y: auto;

    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* Main Container */
/* Attribute Query Builder Styles */
#valueInputDiv {
    min-height: 30px;
    display: flex;
    flex-direction: column;
}
/* 
#valueInput {
    margin-bottom: 20px;
} */
/* Attribute Query Container */
.attQueryDiv {
    position: absolute;
    background: var(--pss-primary);
    top: 142px;
    left: 42px;
    width: 450px;
    z-index: 9999;
    display: none;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 500px;
    overflow: hidden;
}

.query-builder-container {
    display: flex;
    height: 100%;
    gap: 15px;
}

/* Left Column (Query Display + Operators) */
.query-builder-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.query-builder-section {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    flex: 1;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.query-display {
    flex: 1;
    display: flex;
}

#queryDisplay {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1c40f;
    font-family: 'Courier New', monospace;
    border-radius: 6px;
    padding: 8px;
    resize: none;
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-y: auto;
}

.operator-section {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
}

/* Right Column (Layer/Field Selection + Values + Actions) */
.query-builder-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 10px;
}

/* Selection Section (Layer + Field) */
.selection-container {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.selection-container label {
    color: #ecf0f1 !important;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    font-size: 0.85rem;
}

.form-select-layer {
    background: var(--pss-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
    margin-bottom: 8px;
    height: 32px;
    width: 100%;
}
.form-select-field {
    background: var(--pss-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
    margin-bottom: 8px;
    height: 32px;
    width: 100%;
}

/* Values Input Section */
.values-input-container {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#valueInputDiv {
    display: flex;
    gap: 8px;
    margin-bottom: 3px;
}

#valueInput {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
    height: 30px;
    flex: 1;
}

#showAllValuesBtn {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71 !important;
    color: #2ecc71;
    font-weight: 500;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
    height: 32px;
    white-space: nowrap;
    min-width: 100px;
    margin-top: 10px;
}

/* Values Content Section */
.values-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.values-header {
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}



/* Action Buttons Container */
.action-buttons-container {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.action-buttons-container .btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 6px 8px;
    flex: 1;
    font-size: 0.8rem;
    height: 32px;
}

/* Operator Buttons */
.btn-group {
    gap: 2px;
    margin-bottom: 2px;
}

.operator-btn{
    border-radius: 4px !important;
    font-weight: 500;
    font-size: 0.4rem;
    padding: 3px 6px;
    border-width: 1px !important;
    min-width: 10px;
    width: fit-content;
    
}
.logic-btn {
    border-radius: 4px !important;
    font-weight: 500;
    font-size: 0.4rem;
    padding: 3px 6px;
    border-width: 1px !important;
    min-width: 10px;
    width: 30px;
}

/* Button Colors */
.btn-success {
    background-color: #2ecc71;
    border: none;
}

.btn-secondary {
    background-color: #95a5a6;
    border: none;
}

.btn-info {
    background-color: #3498db;
    border: none;
}

/* Scrollbar Styling */
.values-content::-webkit-scrollbar,
#queryDisplay::-webkit-scrollbar {
    width: 5px;
}

.values-content::-webkit-scrollbar-track,
#queryDisplay::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.values-content::-webkit-scrollbar-thumb,
#queryDisplay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.values-content::-webkit-scrollbar-thumb:hover,
#queryDisplay::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Content Overflow Handling */
.values-content {
    word-break: break-word;
    overflow-wrap: break-word;
}
.values-container{
    height: 100px;
    overflow-y: scroll;
}
.values-footer ,.form-label{
    color: white;
}

/* Enhanced Table Styling */


.table thead th {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    color: #2c3e50;
    font-weight: 600;
    padding: 12px 15px;
    position: sticky;
    top: 0;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    padding: 5px 8px;
    border-bottom: 1px solid #f0f0f0;
    color: #4a5568;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(240, 242, 245, 0.5);
}

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

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.08) !important;
    transform: scale(1.005);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}







@media (max-width: 320px) {
    .attQueryDiv {
        height: 350px; 
    }
}

@media (max-width: 370px) {
    .attQueryDiv {
        height: 370px;
        width: 330px;
    }
}

@media (max-width: 425px) {
    .attQueryDiv {
        height: 370px;
        width: 330px;
    }
}

/* 768px */
@media (min-width: 300px) and(max-width: 767px) {
    .attQueryDiv {
        height: 300px;
    }
}

/* 1024px */
@media (min-width: 768px) and(max-width: 1024px) {
    .attQueryDiv {
        height: 350px;
    }
      .operator-btn {
    border-radius: 4px !important;
    font-weight: 500;
    font-size: 8rem;
    padding: 1px 1px;
    border-width: 1px !important;
   width: fit-content;
    
}
.logic-btn {
    border-radius: 4px !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 1px 2px;
    border-width: 1px !important;
    width: fit-content;
}}

/* 1440px */
@media (min-width: 1025px) and (max-width: 1240px) {
    .attQueryDiv {
        height: 400px;
    }
   .operator-btn {
    border-radius: 4px !important;
    font-weight: 500;
    font-size: 8rem;
    padding: 1px 1px;
    border-width: 1px !important;
   width: fit-content;
    
}
.logic-btn {
    border-radius: 4px !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 1px 2px;
    border-width: 1px !important;
    width: fit-content;
}
}
@media (min-width: 1241px) and (max-width: 1440px) {
    .attQueryDiv {
        height: 400px;
       
    }
  .operator-btn {
    border-radius: 4px !important;
    font-weight: 500;
    font-size: 8rem;
    padding: 1px 1px;
    border-width: 1px !important;
   width: fit-content;
    
}
.logic-btn {
    border-radius: 4px !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 1px 2px;
    border-width: 1px !important;
    width: fit-content;
}

}
/* 2560px */
@media (min-width: 1441px) and (max-width: 1919px) {
    .attQueryDiv {
        height: 400px;
        width: 650px;
    }
    .values-container{
    height: 200px;
  
}
.logic-btn {
    border-radius: 4px !important;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 1px 2px;
    border-width: 1px !important;
    width: fit-content;
}
}
@media (min-width: 1920px) and (max-width: 2560px) {
    .attQueryDiv {
        height: 500px;
        width: 650px;
    }
     .values-container{
    height: 200px;
  
}
 .operator-btn {
    border-radius: 4px !important;
    font-weight: 500;
    font-size: 0.1rem;
    padding: 1px 1px;
    border-width: 1px !important;
    min-width: 30px;
    
}
.logic-btn {
    border-radius: 4px !important;
    font-weight: 500;
    font-size: 0.3rem;
    padding: 1px 2px;
    border-width: 1px !important;
    min-width: 60px;
}

}

/*  */
#attdiv{
    margin-top: 34px;
}
#spdiv{
    margin-top: 34px;
}
#headerDiv{
    background-color:#232832;
    height: 40px;
    padding-bottom: 0px;
    border-bottom: 2px solid var(--contron-btn-icons);
    position:fixed;
    margin-top: 0px;
}


.attListDiv {
    position: absolute;
    bottom: 0px;
    right: 0;
    width: 100%; 
    /* Adjust width as needed */
    height: 20%;
    background-color: #f0f0f0;
    overflow-y: auto;

    /* padding-top: 0px; */
    /* margin-top: 10px; */

    background: var(--pss-primary);
    color: var(--pss-fonts-accent);
  
    /* right: 50%; */
 
    /* min-height: 10vh; */
    /* overflow-x: auto; */
   
    z-index: 10000;
    display: none;
    border-radius: 5px;
    
    padding-right: 10px;
    padding-left: 10px;
    box-shadow: 0px -5px 15px 1px rgba(0, 0, 0, 0.25);
    /* transition: visibility 0s, opacity 0.5s linear; */
    
}

#title1{
   color:white;
   padding-top: 2px;
   padding-bottom: 2px;
   border-bottom: 2px solid var(--contron-btn-icons);
   font-size: 12px;
   margin-bottom: 2px;

}
#attQryTable {
    width: 100%; /* Set table width */
    border-collapse: collapse;
    table-layout:auto;
}

#attQryTable td {
    top: 0px;
    font-style: normal;
    padding: 5px 10px 5px 10px;
    /* font-size: 12px; */
}


#attQryTable th {
    color: rgb(236, 0, 0);
    background-color: #008000;
    position:sticky;
    top: 0px;
    font-style: normal;
    padding: 5px 10px 5px 10px;
}

#attQryTable th, #attQryTable td {
    width: auto; /* Equal width for each column */
}


/* #attQryTable,td,th { */
    /* padding: 0px 5px 0px 5px; */
    /* border: 1px solid #04A251;
    color: #ffffff;
    background-color: #232832; */
    /* font-size: small; */
    /* width: 40%; */
/* } */

/* #td{ */
    /* padding: 0px 5px 0px 5px; */
    /* border: 1px solid #04A251;
    color: #ffffff;
    background-color: #232832; */
    /* font-size: 10px; */
    /* width: 40%; */
/* } */



 #attQryTable tr:hover 

/* {font-weight: bolder; background-color: rgb(225, 225, 225);} */
{
    background-color: lightgrey;
    color:black;
} 

.attQryTable,
td {
    border-bottom: 1px solid var(--contron-btn-icons);
    border-radius: 5px;
    padding: 2px;
    color: var(--pss-fonts-accent);
    font-size: 80%;
    width: 100%;
}

/* .attQryTable-table input[type="text"] {
    background: var(--light);
    color: var(--pss-primary);
    border-radius: 3px;
}

.attQryTable input[type="text"]:focus {
    border: none;
} */

/* Example CSS for the feature label */
.feature-label {
    position: absolute;
    background-color: white;
    padding: 4px;
    border: 1px solid #ccc;
    font-size: 12px;
    z-index: 1000; /* Ensure a higher z-index to display above other elements */
  }

/* Spatial Attribute Query */
.spQueryDiv {
    position: absolute;
    background: var(--pss-primary);
    /* top: 68px; */
    top: 180px;
    left: 40px;
    /* max-height: 65vh; */
    /* min-height: 10vh; */
    color: white;
    overflow-y: auto;
    width: 258px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    border-radius: 5px;
    padding: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1em;
    line-height: 1.45;
    box-shadow: 0px 0px 15px rgba(100, 100, 100, 0.5);
  }
  @media (min-width: 300px ){
    .spQueryDiv {
       height: 165px;
       width: 269px;
    }
    .headerDiv {
        width: 247px;
        position: fixed;
     }
}
@media (min-width: 1024px ){
    .spQueryDiv {
       height: 267px;
       width: 269px;
    }
    .headerDiv {
        width: 247px;
        position: fixed;
     }
}
@media (min-width: 1240px ){
    .spQueryDiv {
       height: 360px;
       width: 260px;
    }
}
@media (min-width: 2640px ){
    .spQueryDiv {
        height: 360px;
        width: 260px;
    }
}


  .spQueryDiv select {
    width: 225px;
    height: 35px;
    border: 1px solid lightgrey;
    border-radius: 3px;
    margin: 0px auto 20px 10px;
  }
  
  .spQueryDiv input {
    width: 225px;
    height: 35px;
    border: 1px solid lightgrey;
    border-radius: 3px;
    margin: 0px auto 20px 10px;
  }
  
  .spQueryDiv label {
    color: rgb(194, 194, 194);
    margin: 10px 10px 0px 10px;
  }
  
  .spQryRun {
    color: white;
    background-color: green;
    border-radius: 3px;
    border: 1px solid black;
    height: 35px;
    width: 50px;
    margin: 10px 20px 10px 25px;
  }
  
  .spQryClear {
    /* position: absolute; */
    color: white;
    background-color: slategrey;
    border-radius: 3px;
    border: 1px solid black;
    height: 35px;
    width: 50px;
    margin: 10px;
  }
  .spUserInput {
    color: white;
    background-color: rgb(95, 125, 207);
    border-radius: 3px;
    border: 1px solid rgb(0, 0, 0);
    height: 35px;
    width: 50px;
    margin: 10px;
  }

  
#bufferDistance {
    width: 100px;
  }
  
  #distanceUnits {
    width: 100px;
    margin: 0px auto 0px 24px;
    ;
  }
  
  .spUserInput.clicked {
    background-color: rgb(230, 107, 107);
  }

#rowCount{
    width: 93px;
    border:1px solid white;
    background-color: #008000;
    text-align: center;
    padding: 1px 7px;
    align-items: center;
    margin-bottom: 2px;
    /* margin-left: auto; */
    display: flex;
    font-size: 11px;
    text-justify: center;
    margin-top: 2px;

}
.measQueryDiv {
    padding-top: 10px;
    position: absolute;
    background: var(--pss-primary);
    top: 290px;
    left: 42px;
    width: 100px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    border-radius: 5px;
    padding: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1em;
    line-height: 1.45;
    box-shadow: 0px 0px 15px rgba(100, 100, 100, 0.5);
}

.measQueryDiv.active {
    display: flex;
}


@media (min-width: 300px ){
    .measQueryDiv {
        height: 200px;
        width: 250px;
    
    }
    .headerDiv{
        width: 247px;
        position: fixed;
     }
}
@media (min-width: 425px ){
    .measQueryDiv {
        height: 140px;
        width: 350px;
    
    }
    .headerDiv{
        width: 247px;
        position: fixed;
     }
}
@media (min-width: 1024px ){
    .measQueryDiv {
        height: 140px;
        width: 345px;
    }
    .headerDiv {
        width: 247px;
        position: fixed;
     }
}
@media (min-width: 1240px ){
    .measQueryDiv {
       height: 150px;
       width: 415px;
    }
}


#attdiv1{
    margin-top: 34px;
}
#measdiv{
    margin-top: 34px;
}
#measheaderDiv{
    width: 240px;
    background-color: #232832;
    height: 40px;
    padding-bottom: 0px;
    border-bottom: 2px solid var(--contron-btn-icons);
    position:fixed;
    margin-top: 0px;
}
/* #232832 */

#measheaderDiv label{
    color: #ffffff;
    position: fixed;
    margin-top: 0px;
    padding-top: 5px;
    padding-bottom: 5px;
    
}
.measQueryDiv select {
    width: 70px;
    height: 25px;
    border: 1px solid lightgrey;
    border-radius: 3px;
    margin: 0px auto 0px 10px;
}

.measQueryDiv input {

    border: 1px solid lightgrey;
    border-radius: 3px;
    margin: 0px auto 0px 0px;
}

.measQueryDiv label {
    color: rgb(255, 255, 255);
    margin: 10px 0px 0px 0px;
}

.measQueryDiv label:nth-child(1) {
    margin: 10px;
    font-weight: normal;
   } 

#measdiv{
    margin-top: 45px;
}

 



/* Control buttons */
.controls {
    position: absolute;
    top: 70px;
    left: 700px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 5px;
}


/* Table for displaying selected features */
/* Table for displaying selected features */
#selectionTable {
    position: absolute;
    top: 550px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 500px;
    border-collapse: collapse;
    margin-top: 10px;
}

#selectionTable th, #selectionTable td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

#selectionTable th {
    background-color: #f2f2f2;
}

/* Change Detection Container */
body {
    margin: 0;
    padding: 0;
}

#map {
    height: 100vh;
    width: 100%;
}

.sidebar-icon {
    position: absolute;
    left: 10px;
    top: 85px;
    color: #10306f;
    height: 25px;
    width: 25px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: white;
    transition: transform 0.3s ease-in-out;
}

.sidebar-icon:hover {
    background-color: #10306f;
    color: white;
    transform: scale(1.2);
}

.ChangedetContainer {
    position: absolute;
    top: 60px;
    left: 60px;
    width: 55rem;
    height: 30rem;
    background-color: white;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(105, 46, 46, 0.6);
}

.ChangedetContainer.active {
    display: block;
}

#map-slider {
    width: 100%;
    height: 100%;
}

#flyToSelect1 {
    position: absolute;
    top: 10px;
    left: 35px;
    z-index: 1000;
}

#flyToSelect2 {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

#locationSelect {
    position: absolute;
    top: 10px;
    left: 200px;
    z-index: 1000;
}

 /* Button to toggle orientation */
/* Play/Pause Button Styles */
#toggleAnimationButton {
position: absolute;
top: 55px;
right: 10px;
z-index: 1001;
padding: 10px;
font-size: 16px;
background-color: #10306f;
color: #fff;
border: none;
border-radius: 10px;
cursor: pointer;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s ease, transform 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
width: 35px;
height: 35px;
}

#toggleAnimationButton:hover {
background-color: #1e53a6;
transform: scale(1.1);
}

/* Button active/pressed effect */
#toggleAnimationButton:active {
transform: scale(1.0);
}

/* Icon inside the button */
#toggleIcon {
font-size: 20px;
}

/* Media Queries for Responsiveness */
@media (min-width: 320px) and (max-width: 374px) {
    #ChangedetContainer {
        top: 105px;
        left: 45px;
        height: 55%;
        width: 70%;
    }
    #flyToSelect1,
#flyToSelect2 {
    font-size: 7px;
    width: 75px;
    border: 1px solid #bfbfbf;
    
    padding: 2px;
}
}

@media (min-width: 375px) and (max-width: 424px) {
    #ChangedetContainer {
        top: 105px;
        left: 45px;
        height: 58%;
        width: 72%;
    }
    #flyToSelect1,
    #flyToSelect2 {
        font-size: 8px;
        width: 85px;
        border: 1px solid #bfbfbf;
        
        padding: 2px;
    }
}

@media (min-width: 425px) and (max-width: 767px) {
    #ChangedetContainer {
        top: 105px;
        left: 45px;
        height: 60%;
        width: 75%;
    }
    #flyToSelect1,
    #flyToSelect2 {
        font-size: 8px;
        width: 90px;
        border: 1px solid #bfbfbf;
        
        padding: 3px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #ChangedetContainer {
        top: 105px;
        left: 45px;
        height: 67%;
        width: 70%;
    }
}

@media (min-width: 1025px) and (max-width: 1919px) {
    #ChangedetContainer {
        top: 180px;;
        left: 45px;
        height: 60%;
        width: 65%;
    }


}

@media (min-width: 1920px) and (max-width: 2559px) {
    #ChangedetContainer {
         top: 180px;;
        left: 45px;
        height: 60%;
        width: 65%;
    }
}

@media (min-width: 2560px) {
    #ChangedetContainer {
        top: 180px;;
        left: 45px;
        height: 40%;
        width: 45%;
    }
}



/* TimeLapes css */
/* General styles for responsiveness */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* Responsive container for Time Elapsed */
#TimelapsedContainer {
    position: absolute;
    top: 5%;
    left: 5%;
    height: 70%; /* Adjusted for better responsiveness */
    width: 90%; /* Adjusted for better responsiveness */
    overflow-y: auto;
    display: none;
    flex-direction: column;
    border: 1px solid black;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(105, 46, 46, 0.6);
}

/* Sidebar icon styling */
.sidebar-icon {
    position: absolute;
    left: 10px;
    top: 5%;
    background-color: #10306f;
    color: white;
    height: 40px;
    width: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.sidebar-icon:hover {
    background-color: white;
    color: #10306f;
    transform: scale(1.1); /* Adds a hover effect */
}

/* Small map container */
.small-map-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default */
}

.small-map-container.active {
    display: block; /* Make the container visible */
}

/* Timelapsed Map */
#small-map {
    width: 100%;
    height: calc(100% - 50px); /* Leave space for playback controls */
}

/* Playback controls */
.playcontrols {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    background-color: #f0f0f0;
    border-top: 2px solid #10306f;
    padding: 0 1%;
}

/* Buttons inside playback controls */
.playcontrols button {
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #10306f;
    border-radius: 5px;
    background-color: #10306f;
    color: white;
    transition: background-color 0.3s, color 0.3s;
}

.playcontrols button:hover {
    background-color: white;
    color: #10306f;
}

/* Timeline bar */
.timeline {
    flex: 1;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    margin: 0 20px;
    position: relative;
}

.timeline-progress {
    height: 100%;
    background: #10306f;
    width: 0%;
    border-radius: 5px;
    transition: width 0.1s linear;
}

/* Year label styling */
.year-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: green;
    opacity: 0.7;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    color: #fcfdff;
}

/* Dropdown for place selection */
.place-select {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #10306f;
    border-radius: 5px;
    background-color: #f0f0f0;
    color: #10306f;
    z-index: 1001;
}

/* Media Queries for Responsiveness */

/* For smaller devices (mobile phones) */
/* For the smallest devices (320px to 374px) */
/* For extra small devices (320px to 374px) */
@media (min-width: 320px) and (max-width: 374px) {
    #TimelapsedContainer {
        top: 105px;
        left: 45px;
        height: 55%;
        width: 70%;
    }

    .sidebar-icon {
        height: 18px;
        width: 18px;
        top: 3px;
    }

    .playcontrols button, .playcontrols select {
        font-size: 8px;
        padding: 2px 5px;
    }

    .timeline {
        margin: 0 3px;
    }

    .year-label {
        font-size: 10px;
    }

    .place-select {
        font-size: 10px;
        padding: 5px 8px;
    }
}

/* For extra small devices (375px to 424px) */
@media (min-width: 375px) and (max-width: 424px) {
    #TimelapsedContainer {
        top: 105px;
        left: 45px;
        height: 58%;
        width: 72%;
    }

    .sidebar-icon {
        height: 20px;
        width: 20px;
        top: 5px;
    }

    .playcontrols button, .playcontrols select {
        font-size: 9px;
        padding: 3px 7px;
    }

    .timeline {
        margin: 0 4px;
    }

    .year-label {
        font-size: 11px;
    }
}

/* For small devices (425px to 767px) */
@media (min-width: 425px) and (max-width: 767px) {
    #TimelapsedContainer {
        top: 105px;
        left: 45px;
        height: 60%;
        width: 75%;
    }

    .sidebar-icon {
        height: 25px;
        width: 25px;
        top: 5px;
    }

    .playcontrols button, .playcontrols select {
        font-size: 10px;
        padding: 4px 8px;
    }

    .timeline {
        margin: 0 5px;
    }

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

    .place-select {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* For medium devices (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    #TimelapsedContainer {
        top: 105px;
        left: 45px;
        height: 67%;
        width: 70%;
    }

    .sidebar-icon {
        height: 35px;
        width: 35px;
    }

    .playcontrols button, .playcontrols select {
        font-size: 13px;
        padding: 8px 12px;
    }

    .timeline {
        margin: 0 15px;
    }

    .year-label {
        font-size: 14px;
    }
}

/* For large devices (1025px to 1919px) */
@media (min-width: 1025px) and (max-width: 1919px) {
    #TimelapsedContainer {
        top: 216px;
        left: 45px;
        height: 60%;
        width: 65%;
    }


    
    .sidebar-icon {
        height: 40px;
        width: 40px;
    }

    .playcontrols button, .playcontrols select {
        font-size: 15px;
        padding: 5px 15px;
    }

    .timeline {
        margin: 0 20px;
    }

    .year-label {
        font-size: 15px;
    }
}

/* For full HD (1920px to 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    #TimelapsedContainer {
        top: 216px;;
        left: 45px;
        height: 60%;
        width: 65%;
    }

    .sidebar-icon {
        height: 45px;
        width: 45px;
    }

    .playcontrols button {
        padding: 6px 20px;
        font-size: 16px;
    }

    .timeline {
        margin: 0 25px;
    }

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

/* For ultra-wide screens (2560px and above) */
@media (min-width: 2560px) {
    #TimelapsedContainer {
        top: 216px;
        left: 45px;
        height: 40%;
        width: 45%;
    }

    .sidebar-icon {
        height: 50px;
        width: 50px;
    }

    .playcontrols button {
        padding: 5px 18px;
        font-size: 18px;
    }

    .timeline {
        margin: 0 30px;
    }

    .year-label {
        font-size: 18px;
    }

    .place-select {
        font-size: 16px;
        padding: 10px 15px;
    }
}
/* drone styling */
body {
    font-family: Arial, sans-serif;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

.DroneContainer {
    top: 85px;
    width: 300px;
    margin: 20px auto;
    border: 1px solid #444;
    border-radius: 5px;
    overflow: hidden;
    

     position: absolute;
    background: var(--pss-primary);
    left: 42px;
    max-height: 80vh;
    /* min-height: 10vh; */
    overflow: auto;
    z-index: 9999;
    display: none;
    flex-direction: column;
    border-radius: 5px;
    /* padding: 5px; */
}

@media (min-width: 300px){
   .DroneContainer {
        
     width: 240px;
    }
   
}
@media (min-width: 768px){
   .DroneContainer {
                width: 250px;

       
    
    }
   
}
.collapsible {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    background-color: #232832;
    border-bottom: 1px solid #444;
    font-size: 16px;
    font-weight: bold;
}

.collapsible:hover {
    background-color: #3a3d41;
}

.accordion-content {
    display: none;
    padding: 10px;
    background-color: #232832;
    max-height: 200px; /* Adjust as needed */
    overflow-y: auto;
}

.dropdown-container {
    margin-bottom: 10px;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    background-color: #23272a;
    border: 1px solid #444;
    font-size: 14px;
    border-radius: 3px;
    color: white;
}

.dropdown-header:hover {
    background-color: #3a3d41;
}

.dropdown-content {
    display: none;
    padding: 8px 15px;
    background-color: #232832;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 3px 3px;
    color: white;
    max-height: 150px; /* Adjust as needed */
    overflow-y: auto;
}

.layer-checkbox {
    margin-right: 10px;
}
.icons {
    display: flex;
    align-items: center;
    gap: 5px; /* Adds spacing between icons */
}

.fa-search-plus {
    font-size: 12px;
    padding-right: 10px; /* Adjust zoom icon size if needed */
}

.arrow-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.arrow-icon.expanded {
    transform: rotate(90deg);
}


/* Master Plan */


    body {
        font-family: Arial, sans-serif;
        color: #ffffff;
        margin: 0;
        padding: 0;
    }

    .MasterPlanContainer {
        top: 85px;
        width: 300px;
        margin: 20px auto;
        background-color: #232832;
        border: 1px solid #444;
        border-radius: 5px;
        overflow: hidden;
    }

    .collapsible {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        cursor: pointer;
        background-color: #232832;
        border-bottom: 1px solid #444;
        font-size: 16px;
        font-weight: bold;
    }

    .collapsible:hover {
        background-color: #3a3d41;
    }

    .accordion-content {
        display: none;
        padding: 10px;
        background-color: #232832;
        max-height: 200px;
        overflow-y: auto;
    }

    .dropdown-container {
        margin-bottom: 10px;
    }

    .unique-dropdown-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 8px 15px;
        cursor: pointer;
        background-color: #232832;
        border: 1px solid #444;
        font-size: 14px;
        border-radius: 3px;
        color: white;
    }
    
    .unique-dropdown-header input {
        margin-right: 10px;
    }
    
    .icons {
        margin-left: auto;
        display: flex;
        gap: 10px;
    }
    

    .dropdown-header:hover {
        background-color: #3a3d41;
    }

    


 
    .uniqueLayersContainer {
        width: 350px;
        background-color: #232832;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    }
    
    .unique-collapsible, .unique-dropdown-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 18px;
        cursor: pointer;
        background-color: #232832;
        font-size: 12px;
        font-weight: bold;
        border-bottom: 1px solid #444;
        transition: background-color 0.3s;
        color: white;
        font-family:sans-serif,'Jost'
    }
    
    .unique-collapsible:hover, .unique-dropdown-header:hover {
        background-color:#3a3d41;;
    }
    
    .unique-accordion-content, .unique-dropdown-content {
        display: none;
        padding: 10px;
        background-color: #232832;
        max-height: 350px;
        overflow-y: auto;
        border-left: 2px solid #575b84;
        border-radius: 5px;
        color: white;
    }
       .unique-accordion-content, .unique-dropdown-content1 {
        /* display: none; */
        padding: 10px;
        background-color: #232832;
        max-height: 350px;
        overflow-y: auto;
        border-left: 2px solid #575b84;
        border-radius: 5px;
        color: white;
    }
    /* Thin scrollbar styles (applies to all three classes) */
.unique-accordion-content,
.unique-dropdown-content,
.layersContainer {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent; /* Firefox */
}

/* WebKit (Chrome, Safari, Edge) scrollbar styling */
.unique-accordion-content::-webkit-scrollbar,
.unique-dropdown-content::-webkit-scrollbar,
.layersContainer::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.unique-accordion-content::-webkit-scrollbar-track,
.unique-dropdown-content::-webkit-scrollbar-track,
.layersContainer::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.unique-accordion-content::-webkit-scrollbar-thumb,
.unique-dropdown-content::-webkit-scrollbar-thumb,
.layersContainer::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
    .unique-layer-checkbox {
        margin: 5px;
        accent-color: #00aaff;
        z-index: 1;
    }
    
    .unique-show {
        display: block !important;
    }
    
    .unique-arrow-icon {
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    
    .unique-arrow-icon.unique-expanded {
        transform: rotate(90deg);
    }
/* Main Filter Container */
/* Main Filter Container */
/* Main Filter Container */
.plot-filter {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 780px;
    max-width: 1200px;
    border-radius: 12px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Add this line */

    background:  var(--pss-primary);
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.25);
    z-index: 999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
} 

.filter-select {
    width: 100px; 
  
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background-color: white;
    font-size: 0.85rem;
    padding: 0 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(255, 6, 6, 0.05);
    appearance: none;
    background-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-select option {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;

    background-color: var(--pss-primary);
    color: rgb(255, 255, 255);
    border : 2px solid rgb(135, 124, 83)

}

.filter-reset {
    width: 38px; /* Match the height for a circle */
    height: 38px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #6c757d;
    font-size:1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}
.filter-reset:hover{
    
    background-color: var(--pss-primary);
    color: rgb(255, 255, 255);
    border : 2px solid rgb(135, 124, 83)
}
.filter-select:hover {
    background-color: var(--pss-primary);
    color: rgb(255, 255, 255);
    border : 2px solid rgb(135, 124, 83)
}

.Attribute-btn {
    width: 38px; /* Match the height for a circle */
    height: 38px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #6c757d;
    font-size:1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}
.Attribute-btn:hover{
    
    background-color: var(--pss-primary);
    color: rgb(255, 255, 255);
    border : 2px solid rgb(135, 124, 83)
}
@media (max-width: 2560px) {
    .filter-select {
        width: 140px;
        min-width: 135px;
        max-width: 130px;
    }
  
    .plot-filter{
        width: 960px;
    }
}
@media (max-width: 1440px) {
    .filter-select {
        width: 122px ;
        min-width: 100px ;
        max-width: 130px ;
    }
 
    .plot-filter{
        width: 885px;
    }

}
@media (max-width: 992px) {
    .filter-select {
        width: 130px ;
        min-width: 130px ;
        max-width: 130px ;
    }
  
    .plot-filter{
        width: 500px;
    }

}

@media (max-width: 768px) {
    
    .filter-select{
        width: calc(40% - 178px);
        min-width: calc(40% - 250px);
        max-width: calc(40% - 170px);
    }
    .plot-filter{
        width: 670px;
          gap: 10px;
    }
     .zoom-level-display {
               top: auto;
        bottom: 25px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        font-size: 7px;}
    .mousePosition{
         top: auto;             /* Reset top */
        bottom: 10px;          /* Position near bottom */
        left: 50%;             /* Move horizontally to center */
        right: auto;           /* Reset right */
        transform: translateX(-50%); /* Perfect horizontal center */
         font-size: 7px;
    }
}

@media (max-width: 480px) {
    .filter-select {
        width: 10px ;
        min-width: 10px ;
        max-width: 10px ;
    }
    
    .plot-filter{
        width: 292px;
          gap: 6px;
    }
}
@media (max-width: 320px) {
    .filter-select{
        width: 3px ;
        min-width: 2px ;
        max-width: 10px ;
       height: 30px;
           padding: 0 10px;
             gap: 6px;

    }
   
    .plot-filter{
        width: 240px;
    }
    .Attribute-btn{
        width: 25px;
        height: 25px;
    }
      .filter-reset{
        width: 20px;
        height: 20px;
    }

}
.show-filtered-btn {
    background-color: var(--pss-primary);
    color: white;
    border: none;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: auto; /* Prevent full-width */
    right: 2px; /* Move button to right side */
    transition: background-color 0.3s;
        padding: 5px 8px;

}
.highlighted-row {
    background-color: #7ae60f; /* Light blue highlight */
    font-weight: bold;
}


.ol-popup {
    position: absolute;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    min-width: 280px;
    z-index: 1000;
    cursor: pointer;
}

.ol-popup-closer {
    position: absolute;
    top: 2px;
    right: 8px;
    font-size: 150%;
    text-decoration: none;
    color: #999;
}

.ol-popup-closer:hover {
    color: #000;
}

.feature-checkbox {
    cursor: pointer;
}

.feature-row {
    cursor: pointer;
}

.feature-row:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
#attributeTableModal .modal-dialog {
    transition: height 0.3s ease;
}
#attributeTableModal .modal-content {
    min-height: fit-content;
}

.zoom-level-display {
    position: absolute;
    top: 90px;
    right: 50px;
    border-radius: 2px;
    padding: 1px 2px 1px 2px;
    font-size: 11px;
    background: var(--pss-primary);
    color: var(--pss-fonts-accent);
    box-shadow: #888;;
}

@media (min-width: 320px) and (max-width: 900px) {
    .zoom-level-display {
        top: auto;             /* Reset top */
        bottom: 25px;          /* Position near bottom */
        left: 50%;             /* Move horizontally to center */
        right: auto;           /* Reset right */
        transform: translateX(-50%); /* Perfect horizontal center */
         font-size: 7px;
    }    .zoom-level-display {
               top: auto;
        bottom: 25px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        font-size: 7px;}
    .mousePosition{
         top: auto;             /* Reset top */
        bottom: 10px;          /* Position near bottom */
        left: 50%;             /* Move horizontally to center */
        right: auto;           /* Reset right */
        transform: translateX(-50%); /* Perfect horizontal center */
         font-size: 7px;
    }
}


.map-copyright {
  position: absolute;
  bottom: 5px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px 5px;
  border-radius: 4px;
  font-size: 9px;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;

  z-index: 1000;
}


/* Default content styling */
.default-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hover content styling - hidden by default */
.hover-content {
  display: none;
  position: absolute;
  bottom: 30px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.95);
  padding: 8px;
  border-radius: 4px;
  color: white;
  width: 250px;
  z-index: 1000;
}

/* Show hover content when hovering over default-content OR hover-content itself */
.default-content:hover ~ .hover-content,
.hover-content:hover {
  display: block;
}

/* Logo styling */
.map-copyright img {
  height: 18px;
  width: auto;
  transition: transform 0.2s ease;
}

/* Logo hover effect - make bigger */
.map-copyright img:hover {
  transform: scale(2);
}

/* Text styling */
.map-copyright p {
  margin: 0;
  white-space: nowrap;
  cursor: default;
}
@media (min-width: 320px) and (max-width: 767px) {
  .map-copyright p {
    
    display: none;
  }}
/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev-arrow {
  left: 20px;
}

.next-arrow {
  right: 20px;
}
#analysisTools, #analysisResults {
    display: block !important;
    background: #f0f0f0;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
}

/* Plot types controls styling */
#plotTypesContainer {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.plot-types-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.plot-type-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.plot-type-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 5px;
}

.color-box {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border: 1px solid #ddd;
}
.legend-section {
    margin-bottom: 2px;
  
    border-radius: 2px;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legend-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-checkbox {
    margin-right: 10px;
}

.legend-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.legend-color-box {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 3px;
}

.legend-types-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding-left: 28px;
}

.legend-type-item {
    display: flex;
    align-items: center;
}


.legend-type-checkbox {
    margin-right: 6px;
}
.legend-title{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.legend-type-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9em;
}

.legend-type-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: 3px;
}

.legend-type-name {
    white-space: nowrap;
}/* CSS */

/* .popup-closer {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0 0 4px 8px;
  line-height: 1;
} */
#popup {
  background: white;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 350px;
  max-height: 500px;
  overflow: hidden;
  font-family: 'Jost', sans-serif;
  position: relative;
  border: 1px solid #e0e0e0;
}

/* Pointer tip at the bottom */
#popup:before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: #e0e0e0;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

#popup:after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: white;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}


.popup-header {
  padding: 12px 15px;
  background: #2c3e50;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
    cursor: grab;
  user-select: none;
  
}

#popup {
  transition: box-shadow 0.2s ease;
}

#popup.dragging {
  opacity: 0.9;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.popup-header:active {
  cursor: grabbing;
}
.popup-header .popup-title {
  flex: 1;
}

.popup-header .icon-btn {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 6px;
  transition: opacity 0.2s ease;
}

.popup-header .icon-btn:hover {
  opacity: 0.8;
}

.popup-minmax {
  margin-right: 8px;
}

.popup-closer {
  font-size: 20px;
  font-weight: bold;
}
.popup-title {
  margin: 0;
  font-size: 16px;
  color: white;
  font-weight: 600;
}

.popup-content {
  padding: 15px;
  max-height: 250px;
  overflow-y: auto;
  padding-top: 25px;
}

.popup-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.popup-counter {
  font-weight: 600;
  color: #555;
  font-size: 14px;
}

.popup-nav-btn {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
  color: #444;
}

.popup-nav-btn:hover:not(:disabled) {
  background: #e9e9e9;
  border-color: #ccc;
  color: #222;
}

.popup-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f8f8;
}

.popup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.popup-table th, .popup-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1rem;
}

.popup-table th {
  color: #2c3e50;
  white-space: nowrap;
  font-weight: 900;
  width: 40%;
}

.popup-table tr:hover {
  background-color: #f5f7fa;
}

.null-value {
  color: #999;
  font-style: italic;
}

.number-value {
  color: #2980b9;
  font-family: monospace;
}

.date-value {
  color: #27ae60;
}

.string-value {
  color: #333;
}

.json-value, .object-value {
  display: block;
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 13px;
  color: #8e44ad;
  margin: 0;
  padding: 5px;
  background: #f9f9f9;
  border-radius: 3px;
  max-height: 150px;
  overflow-y: auto;
}

/* Custom scrollbar */
#popup ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

#popup ::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#popup ::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

#popup ::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.popup-layer-name {
  font-size: 0.8em;
  color: #666;
  margin-top: 0.2em;
  font-family: monospace;
}

/* Modal Styles */
.attachments_modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}
.attachments_modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  max-width: 1000px;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: row;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.attachments_modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background-color: #f8f9fa;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.modal-close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.modal-close:hover {
  color: #333;
}

/* Sidebar Navigation */
.modal-sidebar {
  width: 200px;
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
  padding: 20px 0;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.sidebar-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
  color: #495057;
  transition: all 0.2s;
  border-left: 4px solid transparent;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.sidebar-btn:hover {
  background-color: #e9ecef;
}

.sidebar-btn.active {
  background-color: #e9ecef;
  border-left-color: #4e73df;
  color: #4e73df;
}

.modal-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: calc(80vh - 57px); /* Subtract header height */
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.attachments_modal-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.content-section {
  display: none;
  padding: 20px;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

/* Section-specific styles */
.section-title {
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
  color: #2e59d9;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* File Attachment Styles */
.file-attachment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  margin-bottom: 15px;
  border: 1px solid #dee2e6;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.file-info {
  display: flex;
  align-items: center;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.file-icon {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.file-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.file-name {
  font-weight: 500;
  font-size: 16px;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.file-actions {
  display: flex;
  gap: 10px;
}

.file-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.file-action-btn .action-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.file-action-btn svg {
  width: 14px;
  height: 14px;
}

/* PDF specific styles */
.pdf-attachment .view-file {
  background-color: #4e73df;
  color: white;
}

.pdf-attachment .view-file:hover {
  background-color: #3a56c0;
}

.pdf-attachment .download-file {
  background-color: #1cc88a;
  color: white;
}

.pdf-attachment .download-file:hover {
  background-color: #17a673;
}

/* DWG specific styles */
.dwg-attachment .download-only {
  background-color: #f6c23e;
  color: #000;
}

.dwg-attachment .download-only:hover {
  background-color: #dda20a;
}

/* Image Gallery Styles */
.image-gallery-container {
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  background-color: #f8f9fa;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.gallery-loading {
  padding: 20px;
  text-align: center;
  color: #666;
  font-style: italic;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.gallery-main {
  position: relative;
  margin-bottom: 15px;
}

#galleryMainImage {
  max-width: 100%;
  max-height: 300px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  border: 1px solid #ddd;
  background-color: #fff;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  gap: 15px;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.gallery-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#galleryImageName {
  font-weight: 500;
  margin-bottom: 5px;
  text-align: center;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#galleryImageCounter {
  color: #666;
  font-size: 0.9em;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.gallery-nav-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.gallery-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gallery-nav-btn svg {
  width: 14px;
  height: 14px;
}

/* No attachments message */
.no-attachments {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 40px 20px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border: 1px dashed #dee2e6;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
/* === 3D Image Modal === */
#image3DModal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(20px);
  z-index: 9999;
  transition: opacity 0.4s ease;
}

#image3DModal.visible {
  display: flex;
  animation: zoomFadeIn 0.5s ease forwards;
}

@keyframes zoomFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotateX(20deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotateX(0);
  }
}

.image3d-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  perspective: 1200px;
}

.image3d-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: floatIn 0.6s ease forwards;
}

@keyframes floatIn {
  from {
    transform: translateY(60px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.image3d-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  backdrop-filter: blur(20px);
}

/* Portrait and Landscape handling */
.image3d-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(40px) brightness(0.5);
  z-index: -1;
}

/* Close Button */
.image3d-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  padding: 2px 8px;
  transition: background 0.3s;
  z-index: 10;
}

.image3d-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Add subtle 3D hover */
.image3d-container:hover {
  transform: scale(1.02) rotateY(2deg);
  transition: transform 0.4s ease;
}

/* Flexbox-based View Attachments Button */
.attachments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.attachments-btn {
  background: none;
  border: none;
  color: #3498db;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px 0 6px 12px; /* Extra left padding for arrow space */
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.attachments-btn:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Modal title styling */
#modalTitle {
  font-family: sans-serif, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  color: #2e59d9;
  margin: 0;
  font-size: 1.25rem;
}


/* Section header with flex layout */
.attachments-container h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f3f5;
}/* Modern Opacity Control Container */
.opacity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1px 3px;
    background-color: #232832;
    border-radius: 4px;
    margin: 1px 0;
}

.opacity-control:hover {
    background: rgba(45, 50, 60, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Modern Slider Track */
/* Update your slider styles to include both properties */
.opacity-slider {
    flex-grow: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgb(59 59 59) 0%, rgb(195 255 102) 100%);
    outline: none;
    -webkit-appearance: none; /* Vendor prefix for WebKit browsers */
    appearance: none; /* Standard property */
    cursor: pointer;
    transition: all 0.2s ease;
}



/* Modern Thumb Design (Webkit) */
.opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), 
                0 0 0 2px rgba(76, 175, 80, 0.5);
    transition: all 0.2s ease;
    transform: scale(1);
}

.opacity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 
                0 0 0 3px rgba(76, 175, 80, 0.5);
}

/* Modern Thumb Design (Firefox) */
.opacity-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), 
                0 0 0 2px rgba(76, 175, 80, 0.5);
    transition: all 0.2s ease;
}

.opacity-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 
                0 0 0 3px rgba(76, 175, 80, 0.5);
}

.opacity-value {
    font-size: 12px;
    color: #ffffff;
    min-width: 30px;
    text-align: right;
}
.khasra-intersection-section {
    margin-top: 3px;
    border-top: 1px solid #eee;
    padding-top: 3px;
}


/* Minimal icon button styles */
.icon-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin: 0 2px;
    transition: background 0.2s;
    z-index: 2000;
}

.icon-btn:hover {
    background: #1a252f;
    z-index: 2000;
}

.icon-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    z-index: 2000;
}

.icon-btn i {
    font-size: 14px;
    z-index: 2000;
}

/* Popup controls layout */
.popup-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    z-index: 2000;
}

.nav-controls, .action-btns {
    display: flex;
    align-items: center;
    gap: 5px;
}

.popup-counter {
    font-size: 12px;
    min-width: 40px;
    text-align: center;
    color: #555;
}

/* Special button states */
.no-khasra-btn {
    background: #7f8c8d;
}

.no-khasra-btn:hover {
    background: #6c7a7d;
}

.error-btn {
    background: #e74c3c;
}

.error-btn:hover {
    background: #c0392b;
}

/* Tooltip effect */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 100;
}

[title]:hover::before {
    content: "";
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    z-index: 100;
}
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    max-height: 50vh;
    overflow: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: absolute; /* For dynamic positioning */
    margin: 0; /* Remove default centering margin */
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 20px;
}

/* Khasra Details Styles */
.khasra-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
/* Scroll Styling for Modal */
.modal-container::-webkit-scrollbar {
  width: 8px;
}

.modal-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.modal-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

/* For Firefox */
.modal-container {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-weight: bold;
    color: #333;
}

.summary-value {
    color: #2c3e50;
}

.khasra-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.khasra-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;

    transition: background-color 0.3s ease;

}
.khasra-item:hover {
    background-color: rgba(255, 0, 0, 0.4); /* red with 0.4 opacity */
}
.khasra-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.khasra-header span {
    white-space: nowrap;
}

.khasra-progress {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #2ecc71;
    transition: width 0.3s ease;
}

.khasra-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #7f8c8d;
}

#modal-drag-handle {
    cursor: grab;
    user-select: none;
}

#modal-drag-handle:active {
    cursor: grabbing;
}



/* /* Base Variables with font family */
:root {
  --primary: #2d3748;
  --primary-light: #4a5568;
  --secondary: #4f46e5;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
  font-family: sans-serif, 'Jost';
}

/* Complete Layout Overhaul */
#metadataModal .modal-content {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  font-family: inherit; /* Inherit from root */
  
}

/* Header Styles */
#metadataModal .modal-header {
  background: var(--primary);
  color: white;
  border-bottom: none;
  padding: 1rem 1.5rem;
  font-family: inherit;
}

#metadataModal #metadataModalTitle .modal-title i {
  color: rgba(255,255,255,1);
}

/* New Split-Panel Layout */
#metadataContent {
  display: flex;
  min-height: 400px;
}

.metadata-sidebar {
  width: 220px;
  background: var(--light-bg);
  border-right: 1px solid var(--border-color);
  padding: 1rem 0;
}

.metadata-main {
  flex: 1;
  padding: 1.5rem;
  background: white;
      font-family: sans-serif, 'Jost';
}

/* Vertical Tab Navigation */
#metadataModal .nav {
  flex-direction: column;
  gap: 4px;
  padding: 0 0.5rem;
}

#metadataModal .nav-link {
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  color: var(--primary-light);
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s;
  border: none;
  display: flex;
  align-items: center;
  font-family: sans-serif, 'Jost';
    font-weight: bold;
}

#metadataModal .nav-link i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
  font-size: 0.9em;
  opacity: 0.7;

}

#metadataModal .nav-link:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--secondary);
  font-family: sans-serif, 'Jost';
    font-weight: bold;
}

#metadataModal .nav-link.active {
  background: var(--secondary);
  color: white;
  font-family: sans-serif, 'Jost';
    font-weight: bold;
}

#metadataModal .nav-link.active i {
  opacity: 1;
  color: white;
}

/* New Metadata Display Pattern */
.metadata-section {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  font-weight: bold;
}

.section-title i {
  margin-right: 8px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.75rem 1rem;
}

.metadata-item {
  display: contents;
}

.metadata-label {
  font-size: 0.8rem;
  color: var(--primary-light);
  font-weight: 500;
  align-self: start;
}

.metadata-value {
  font-size: 0.85rem;
  color: var(--primary);
  line-height: 1.5;
  word-break: break-word;
}

/* Feature Info Display */
.feature-info {
  background: var(--light-bg);
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  overflow-x: auto;
}

/* Loading Animation */
.loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.loading-circle {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}
.nav-item {
    font-family: sans-serif, 'Jost';
    font-weight: bolder;
}
.loading-text {
  color: var(--primary-light);
  font-size: 0.9rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #metadataContent {
    flex-direction: column;
    
  }
  
  .metadata-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
        font-family: sans-serif, 'Jost';
  }
  
  .metadata-main {
    padding: 1rem;
  }
  
  #metadataModal .nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem;
  }
  
  #metadataModal .nav-link {
    white-space: nowrap;
  }
  
  .metadata-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .metadata-label {
    margin-top: 0.5rem;
  }
}
/* .PrintButton {
    border: 1px solid #232832;
    border-radius: 5px;
    margin-bottom: 5px;
    color: var(--contron-btn-icons);
} */
/* .map_print {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 900px;
  height: 80vh;
  max-height: 800px;
  background: white;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  padding: 20px;
  display: none;
  flex-direction: column;
} */
.filter-results-card {
    position: absolute;
    top: 170px;
    right: 70px;
    z-index: 1000;
    width: 320px;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    width: 500px;
    position: absolute; /* For dynamic positioning */
    overflow: auto;

}
.card-header {
    background-color: var(--pss-primary);
    color: white;
    font-weight: bold;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    
}

.filter-count {
    font-size: 1rem;
    font-weight: bold;
    color: var(--pss-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.filter-results-list {
    max-height: 300px;
    overflow-y: auto;
}
.plot-item {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    padding-left: 10px;
    border-radius: 10px;
}
.plot-item:last-child {
    border-bottom: none;
}
.plot-details {
    font-size: 0.1rem;
}
.plot-no {
    font-weight: bold;
}

/* Hover effects */
.plot-item:hover {
    background-color: rgb(250, 245, 240);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding-left: 5px;
    border-radius: 10px;
}

.plot-item:hover .plot-details {
    color: #333;
}
.plot-results-table {
    width: 100%;
    border-collapse: collapse;
}

.plot-results-table th,
.plot-results-table td {
    padding: 3px 5px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    color: #000;
    font-family: sans-serif, 'Jost';
}

.plot-results-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}



/* Thin scrollbar styling */
.filter-results-list::-webkit-scrollbar {
    width: 4px; /* Very thin scrollbar */
    height: 4px;
}

.filter-results-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.filter-results-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.filter-results-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (min-width: 320px) and (max-width: 425px) {

    .filter-results-card {
        width: 300px;
        height: 250px;
        top: 500px;
        right: 0px;
}
}

.loading, .error, .no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.loading {
    color: #0d6efd;
}

.error {
    color: #dc3545;
}

.attribute-note {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    color: #6c757d;
}

