/* General styling */










#play,
#pause,
#reset {
  /* display: flex; */
  /* align-items: center; */
  gap: 8px;
  /* Space between icon and text */
  background-color: #007BFF;
  /* Blue */
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin: 5px;
}

#play i,
#pause i,
#reset i {
  font-size: 18px;
  /* Adjust icon size */
}

#play {
  background-color:#1e1e2f;
}

#play:hover {
  background-color: #006bde;
}

#pause {
  background-color: #1e1e2f;
}

#pause:hover {
  background-color: #FF9800;
}

#reset {
  background-color:#1e1e2f;
}

#reset:hover {
  background-color: #DC3545;
}

#play:active,
#pause:active,
#reset:active {
  transform: scale(0.95);
}

/* Control Panel Styling */
#controls {
  position: absolute;
  top: 10%;
  left: 2px;
  background-color: rgb(255, 255, 255);
  border-radius: 12px;
  padding: 20px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  font-family: 'Arial', sans-serif;
  width: 250px;
  z-index: 1000;
}

/* Label Styling */
#controls label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 10px;
}

#actualSeaLevel {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

/* Slider Styling */
#controls input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  height: 6px;
  border-radius: 5px;
  outline: none;
  margin-bottom: 15px;
  cursor: pointer;
}

#controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #1e1e2f;
  ;
  cursor: pointer;
  transition: background-color 0.3s;
}

#controls input[type="range"]::-webkit-slider-thumb:hover {
  background: #6a11cb;
  transform: scale(1.2);
}

#controls input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #007bff;
  cursor: pointer;
  transition: background-color 0.3s;
}

#controls input[type="range"]::-moz-range-thumb:hover {
  background-color: #0056b3;
}

/* Value Display Styling */
#controls span {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #ff0000;
}

/* Responsive Styling */
@media (max-width: 600px) {
  #controls {
    width: 90%;
    right: 5%;
  }
}










/* Custom Scrollbar for Chrome, Safari, and Edge */
::-webkit-scrollbar {
  width: 8px;
  /* Thin scrollbar */

}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  /* Light translucent track */
  border-radius: 10px;
  backdrop-filter: blur(5px);
  /* Subtle glass effect */
}

::-webkit-scrollbar-thumb {
  background: #1e1e2f;
  /* background: linear-gradient(135deg, #6a11cb, #2575fc); */
  /* Gradient color */
  border-radius: 20px;
  transition: all 0.3s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  /* background: linear-gradient(135deg, #2575fc, #6a11cb); */
  background: #1e1e2f;
  /* Reverse gradient on hover */
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #1e1e2f rgba(255, 255, 255, 0.1);
}

/* Opacity slider container */
.opacity-slider-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

/* Custom styling for the opacity slider */
.opacity-slider-container input[type="range"].opacity-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  border-radius: 5px;
  outline: none;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

/* Custom thumb (handle) for WebKit browsers */
.opacity-slider-container input[type="range"].opacity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #6a11cb;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(106, 17, 203, 0.5);
  transition: all 0.2s ease-in-out;
}

/* Hover effect on the thumb */
.opacity-slider-container input[type="range"].opacity-slider::-webkit-slider-thumb:hover {
  background: #6a11cb;
  transform: scale(1.2);
}

/* Active state for smooth interaction */
.opacity-slider-container input[type="range"].opacity-slider:active::-webkit-slider-thumb {
  transform: scale(1.3);
}

/* Firefox-specific thumb styling */
.opacity-slider-container input[type="range"].opacity-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #6a11cb;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover effect for Firefox */
.opacity-slider-container input[type="range"].opacity-slider:hover::-moz-range-thumb {
  background: #6a11cb;
  transform: scale(1.2);
}







#legendcompare1 {
  background-color: rgb(255, 255, 255);
  padding: 10px;
  border: 1px solid #ccc;
  color: #000000;
  /* Light border */
  border-radius: 5px;
  /* Rounded corners */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  /* Subtle shadow */
  position: absolute;
  top: 55%;
  left: 7%;
  /* Positioned in the bottom-right corner of the map */
  z-index: 999;
  /* Ensure it stays above other elements */
  font-family: Arial, sans-serif;
  /* Optional: Set a font */
  max-height: 200px;
  overflow-y: auto;



}

#legendcompare2 {
  background-color: rgb(255, 255, 255);
  color: #000000;
  padding: 10px;
  border: 1px solid #ccc;
  /* Light border */
  border-radius: 5px;
  /* Rounded corners */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  /* Subtle shadow */
  position: absolute;
  top: 55%;
  right: 20px;
  /* Positioned initially */
  z-index: 1000;
  /* Ensure it stays above other elements */
  font-family: Arial, sans-serif;
  /* Optional: Set a font */
  max-height: 200px;
  /* Set a maximum height */
  overflow-y: auto;
  /* Enable vertical scrolling */
}

#legendcompare2,
.legendcompare1 {
  scroll-behavior: smooth;
}





.popup-content {
  text-align: center;
}

.popup-title {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
}

.popup-info {
  margin: 10px 0;
  font-size: 1em;
}

.download-dropdown {
  position: absolute;
  top: 400px;
  left: 100px;
  background-color: #ffffff;
  width: 150px;
  border: 1px solid #ddd;
  border-radius: 8px;
  /* Slightly larger border radius for a modern look */
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  /* Enhanced shadow for depth */
  padding: 10px 0;
  /* Adjust padding for better spacing */
  z-index: 1;
  display: none;
  /* Initially hidden */
}

.download-dropdown a {
  display: block;
  padding: 10px 14px;
  /* Increased padding for a more spacious feel */
  color: #000000;
  /* Lighter text color for better contrast */
  text-decoration: none;
  font-size: 14px;
  /* Standard font size for readability */
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Smooth hover effect */
  border-radius: 5px;
  /* To match hover style */
}

.download-dropdown a:hover {
  background-color: #747474;
  /* Slightly darker hover background */
  color: #ffffff;
  /* White text on hover for contrast */
  border-radius: 5px;
}








/* Spinner styling */
#loadingSpinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 100px;
  height: 100px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}






#welcome-message {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  text-align: center;
}

#welcome-message button {
  margin-top: 10px;
  padding: 5px 10px;
  border: none;
  background-color: #007BFF;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

#welcome-message button:hover {
  background-color: #0056b3;
}



#legend {
  scroll-behavior: smooth;
}

.label0 {
  color: #d6d8d9;
}

#layer {
  position: relative;
  width: 70%;

}




/* Styling for navigation links */
.navlinks {
  padding: 10px 10px;
  margin-top: 20px;
  margin-left: 22px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: medium;
  color: rgb(0, 0, 0);
  display: block;
  /* Ensures links take full width for easier tapping on mobile */
  transition: color 0.3s ease, background-color 0.3s ease;
  /* Smooth transition on hover */
}

/* Hover effect for nav links */
.navlinks:hover {
  color: rgb(5, 120, 244);
  /* Change text color on hover */
  background-color: rgba(5, 120, 244, 0.1);
  /* Subtle background color on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navlinks {
    font-size: 15px;
    /* Slightly smaller font size for medium screens */
    margin-left: 15px;
    /* Adjusted margin for smaller screens */
  }
}

@media (max-width: 576px) {
  .navlinks {
    font-size: 14px;
    /* Even smaller font size for very small screens */
    margin-left: 10px;
    /* Minimum left margin */
    padding: 8px 10px;
    /* Reduced padding for small screens */
  }
}


/* #navblinks {
  display: flex;
  justify-content: center;
  list-style: none;
 
  padding: 0;
  margin: 0;
} */


/* important for new navbar */
#sidebar a {
  padding: 10px 10px;
  text-decoration: none;
  font-size: 14px;
  color: rgb(236, 233, 233);
  display: flex;
  align-items: center;
  transition: 0.3s;
  margin-left: 2px;
}

#sidebar a:hover {
  color: rgb(93, 186, 249);
}

#sidebar a i {
  margin-right: 10px;
}


#navblinks li {
  margin: 0 15px;
  /* Adjust spacing between links */
}


/* #queryPanel {
  padding: 10px;
  background: #f8f9fa;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 15px;
} */


.leaflet-control-measure h3,
.leaflet-measure-resultpopup h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  font-size: small;
}

/* Custom styles for the popup */
.custom-popup .leaflet-popup-content {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.custom-popup .leaflet-popup-content:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Popup container for content */
.popup-container {
  color: #333;
  font-size: 16px;
  text-align: center;
}

/* Title for the popup */
.popup-container h3 {
  font-size: 20px;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 12px;
}

/* Coordinates text styling */
.coordinates {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  word-wrap: break-word;
}

/* Modern button styles */
.copy-btn,
.download-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  background-color: #007bff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  min-width: 160px;
}


/* Button hover effect */
.copy-btn:hover,
.download-btn:hover {
  background-color: #7d7e7f;
  transform: translateY(-2px);
}

/* Button active effect */
.copy-btn:active,
.download-btn:active {
  background-color: #004080;
  transform: translateY(1px);
}

/* Adding animation to popup appearance */
.custom-popup {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Custom styles for Leaflet's default popup */
.leaflet-popup-content {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  padding: 12px 16px;
  /* Adjusted padding for better spacing */
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  max-width: 220px;
  /* Adjusting the width */
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  word-wrap: break-word;
  transition: all 0.3s ease;
}

/* Adding hover effect to popup */
.leaflet-popup-content:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Title styling for popup (h3) */
.leaflet-popup-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #007bff;
  margin: 0 0 8px 0;
  /* Remove margin from top and bottom */
}

/* Text content styling */
.leaflet-popup-content p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

/* Adjusting the popup arrow (triangle) */
.leaflet-popup-tip {
  border-top-color: #e0e0e0;
  /* Light gray for the arrow */
  /* border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent; */
  height: 15px;
  width: 15px;
}

/* Close button */
.leaflet-popup-close-button {
  color: #007bff;
  font-size: 18px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Close button hover effect */
.leaflet-popup-close-button:hover {
  color: #0056b3;
}

/* .download-buttons button {
  margin: 5px;
  padding: 10px;
  background-color: #4CAF50;
  
  z-index: index 1000; ;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.download-buttons button:hover {
  background-color: #45a049;
} */

/* activelayerpannel */

.offcanvas-header {
  background-color: rgb(119, 172, 230);
  color: rgb(255, 255, 255);
}








/* LAYER SWITCHER STYLING  */

.leaflet-control-layers {

  position: fixed;
  border-radius: 5px;
  /* background-color: #1e1e2f; */
  z-index: 10000;
  right: 0%;
  top: 10%;
 

}



/* Styling for expanded layers control list  */
.leaflet-control-layers-expanded .leaflet-control-layers-list {
  display: block;
  position: relative;
  background-color: #f9f9f9;
  /* Light background for the list */
  border-radius: 8px;
  /* Rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for depth */
  padding: 10px;
  /* Add some space around the content */
  max-height: 300px;
  /* Limit the height, making it scrollable if too large */
  overflow-y: auto;
  /* Enable vertical scroll if content exceeds the height */
  font-family: 'Arial', sans-serif;
  /* Clean font */
  font-size: 14px;
  /* Consistent font size */
  z-index: 1000;
  /* Ensure it stays on top of other content */
}

/* Styling for each list item */
.leaflet-control-layers-expanded .leaflet-control-layers-list label {
  display: block;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  /* Text color */
  transition: background-color 0.3s, color 0.3s;
}

/* Hover effect for list items */
.leaflet-control-layers-expanded .leaflet-control-layers-list label:hover {
  background-color: #e9ecef;
  /* Light hover background */
  color: #007bff;
  /* Hover text color */
}

/* Custom scroll bar for better appearance */
.leaflet-control-layers-expanded .leaflet-control-layers-list::-webkit-scrollbar {
  width: 6px;
}

.leaflet-control-layers-expanded .leaflet-control-layers-list::-webkit-scrollbar-thumb {
  background-color: #555656;
  /* Scrollbar thumb color */
  border-radius: 10px;
  /* Rounded scrollbar thumb */
}

.leaflet-control-layers-expanded .leaflet-control-layers-list::-webkit-scrollbar-track {
  background: #f9f9f9;
  /* Scrollbar track color */
}

/* upload dropdown  */

.dropdown {
  position: absolute;
  display: block;

}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  color: #000000;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  border-radius: 8px;
}

.dropdown-content .control-panel {
  padding: 10px;
}

.upload-label {
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.upload-label:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}



/* Controls styling */
#controls {
  text-align: center;
  padding: 15px;
}

#controls button {
  margin: 5px;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

#controls button:hover {
  background: linear-gradient(135deg, #66BB6A, #388E3C);
}

/* Flood level buttons container */
#floodControls {
  display: none;
  text-align: center;
  padding: 10px;
}

#buttons button {
  margin: 5px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: #007BFF;
  color: white;
  border-radius: 4px;
  transition: background 0.3s ease;
}

#buttons button:hover {
  background: #0056b3;
}



/* Loader overlay */
/* #loader {
  position: absolute;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
} */

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #007BFF;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Status text */
#status {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

/* Custom tooltip style for inundated labels */
.inundation-label {
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  border: 1px solid #ccc;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 4px;
}


