:root {
  --primary: #2F80ED;
  --dark-bg: #0A0A0A;
  --dark-surface: #1A1A1A;
  --light-bg: #F8FAFC;
  --light-surface: #FFFFFF;
  --elevation-1: 0 4px 12px rgba(0, 0, 0, 0.15);
  --glass-dark: rgba(30, 30, 30, 0.9);
  --glass-light: rgba(255, 255, 255, 0.9);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wmsList {
  padding: 0px;
}

#table_wms_layers {
  max-height: 250px;
  overflow: y;
  background-color: var(--table-bg);
  /* color: var(--text-color); */
  border: 1px solid var(--table-border);
  border-collapse: collapse;
}

#table_wms_layers th,
#table_wms_layers td {
  padding: 8px 12px;
  border: 1px solid var(--table-border);
  font-size: small;
  color: #000000;
}

#table_wms_layers th {
  background-color: var(--primary);
  font-weight: bold;
}

#table_wms_layers tbody tr:hover {
  background-color: var(--hover-bg);
  transition: 0.3s;
}


#layerTableContainer {
  margin-top: 10px;
  padding: 10px;
  background-color: var(--table-bg);
  border: 0.2px solid var(--table-border);
  border-radius: 8px;
}

#layerTable {
  width: 100%;
  background-color: var(--table-bg);
  color: black;
  border-collapse: collapse;
  /* Ensures smooth layout */
}

#layerTable th,
#layerTable td {
  padding: 10px;
  text-align: left;
  /* Align text to the left */
  border: none !important;
  font-size: small;
}

#layerTable th {
  background-color: var(--primary);
  font-weight: bold;
  color: white;
}


#layerTable tbody tr:hover {
  background-color: var(--hover-bg);
  transition: 0.3s;
}

/* Button Styling */
#compareBtn,
#resetBtn {
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 10px 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

#compareBtn:hover,
#resetBtn:hover {
  background-color: var(--button-hover);
}

#compareBtn i,
#resetBtn i {
  font-size: 18px;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  color: #333;
}

a,
a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none !important;
  color: inherit;
  transition: color 0.3s;
}

/* Navigation container */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

/* Brand */
.top-nav .brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #007BFF;
}

.top-nav .brand img {
  width: 40px;
  margin-right: 0.5rem;
}

/* Nav items */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin-inline-end: auto;
}

.nav-links li {
  margin-left: 1.25rem;
  position: relative;
}

.nav-links li a {
  padding: 0.5rem 0.75rem;


  margin-top: 15px;

}

/* Dropdowns */
.dropdown-content,
.download-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links li:hover>.dropdown-content,
.nav-links li:hover>.download-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content label,
.download-dropdown a {
  padding: 0.75rem 1rem;
  display: block;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
}

.dropdown-content label:hover,
.download-dropdown a:hover {
  background: #f0f0f0;
}

.dropdown-content .control-panel {
  padding: 10px;
}




/* File Input Styling */
.control-panel input[type="file"] {
  display: none;
}

.control-panel label {
  display: inline-block;
  background: #007BFF;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: background 0.3s;
}

.control-panel label:hover {
  background: #0056b3;
}


/* --- Dashboard Container --- */
.bottom-dashboard {
  position: fixed;
  bottom: -320px;
  left: 64px;
  width: calc(100% - 64px);
  height: 320px;
  background: var(--glass-dark);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--elevation-1);
  z-index: 999;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.bottom-dashboard.active {
  bottom: 0;
}

.bottom-dashboard h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.bottom-dashboard .data-widget {
  background: transparent;
  padding: 0.5rem;
  position: relative;
  overflow: auto;
}

/* --- Chart Widget Specific Styles --- */
.chart-container {
  position: relative;
  width: 100%;
  height: 100%;
  margin-top: 25px;
}

.chart-container canvas {
  width: 100% !important;
  height: 95% !important;
  display: block;
}

/* Control panel over the chart */
.control-panel {
  /* top: 8px; */
  /* left: 50%; */
  right: 5%;
  /* transform: translateX(-50%); */
  z-index: 10;
  background: var(--glass-light);
  color: black;
  padding: 0.125rem 0.25rem;
  /* Reduced padding */
  border: 1px solid ;
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
  /* Reduced gap between elements */
}

.control-panel select,
.control-panel button {
  padding: 0.0625rem 0.125rem;
  /* Further reduced padding */
  font-size: 0.625rem;
  /* Smaller font size */
  line-height: 1;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--control-border);
  background: transparent;
  color: var(--control-color);
}

.control-panel select:focus,
.control-panel button:focus {
  outline: none;
  box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.5);
}


/* --- Table Widget Specific Styles --- */
.table-responsive {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  /* Custom scrollbar for dark mode if needed */
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table-responsive thead {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.2);
}

.table-responsive th,
.table-responsive td {
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);

}

/* Data Widget Container */


/* Buttons */
.query-builder .btn {
  margin-top: 10px;
  margin-right: 5px;
}

.btn-primary {
  background: #007bff;
  border: none;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  border: none;
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background: #5a6268;
}

/* Table Styling */
.table-responsive {
  overflow-x: auto;
  margin-top: 15px;
  height: 300px;

}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background: #d80000;
  color: #007BFF;
}

.table th {
  text-align: left;
  padding: 12px;
  color: #ffffff;
  border-bottom: 1px solid #ddd;
}

.wmsList th {
  text-align: left;
  padding: 12px;
  color: #d7d8d9;
  border-bottom: 1px solid #ddd;
}

.table td {
  text-align: left;
  padding: 12px;
  color: #ddd;
  border-bottom: 1px solid #ddd;
}

body.light-theme .table td {
  color: #0A0A0A;
}

.table-hover tbody tr:hover {
  background: rgb(232, 232, 232);
  transition: background 0.3s ease;
  color: #2F80ED;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .data-widget {
    padding: 15px;
    max-width: 100%;
  }

  .query-builder {
    padding: 10px;
  }

  .table th,
  .table td {
    padding: 8px;
  }
}

.querycontainer {
  z-index: 1000;
  position: absolute;
  top: 82PX;
  left: 200px;

  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center
}

.querycontainer {
  position: fixed;
  /* top: 10%; */
  left: 50%;
  transform: translate(-50%, -10%);
  width: 80%;
  max-width: 600px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1000;
}

.query-builder {
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.close-btn:hover {
  color: #ff0000;
  transform: rotate(90deg);
}

h6 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
}

/* button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  margin: 5px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
} */

/* button:hover {
  background-color: #0056b3;
} */

#conditionsContainer {
  margin-bottom: 15px;
}

/* querycontainerrow */

.query-condition.condition-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #f8f9fa;
  /* Light grey background */
  border: 1px solid #dee2e6;
  /* Subtle border */
  border-radius: 5px;
  margin-bottom: 10px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.query-condition.condition-row:hover {
  background-color: #e9ecef;
  /* Slightly darker grey on hover */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.query-condition.condition-row select,
.query-condition.condition-row input {
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  width: auto;
  flex: 1;
}

.query-condition.condition-row button {
  padding: 8px 12px;
  background-color: #007bff;
  /* Bootstrap primary blue */
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.query-condition.condition-row button:hover {
  background-color: #0056b3;
  /* Darker blue on hover */
}


.query-condition {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}


.condition,
.loadQuery,
#resetMap,
#querybuilderbtn {
  background:#4a6bb6;
  color: #fff;
  border: none;
  padding: 0.3em 1em;
  /* Reduced padding */
  font-size: 0.9rem;
  /* Smaller font size */
  font-weight: 500;
  border-radius: 5px;
  /* Slightly smaller border-radius */
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  outline: none;
  margin: 0.3em;
  /* Gap between buttons */
}

.condition:hover,
.loadQuery:hover,
#resetMap:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.condition:active,
.loadQuery:active,
#resetMap:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}



body.light-theme .query-builder {
  background: var(--light-surface);
  border-color: rgba(0, 0, 0, 0.1);
}

.notification-dot {
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  right: -5px;
  animation: pulse 1.2s infinite alternate ease-in-out;
}

/* Smooth pulsing effect */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

/* Ensure the parent link has relative positioning */
#activelayers {
  position: relative;
}


/* 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);
  }
}


/* LAYER SWITCHER STYLING  */

.leaflet-control-layers {

  position: fixed;
  border-radius: 5px;
  /* background-color: #1e1e2f; */
  z-index: 10000;
  right: 0%;
  top: 10%;


}

.leaflet-control-layers-toggle {
  background-image: url(/assets/layers.png);
  background-size: 26px 26px;
  width: 36px;
  height: 36px;
}

/* layerswitcherphoto */

.leaflet-retina .leaflet-control-layers-toggle {
  background-image: url(/assets/layers.png);
  background-size: 26px 26px;
}

#legendcompare1 {
  background-color: rgb(255, 255, 255);
  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: fixed;
  top: 55%;

  /* Dynamically adjust based on sidebar width */
  transition: left 0.3s ease-in-out;
  /* Smooth transition */
  z-index: 1000;
  /* 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);
  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;
}


body.light-theme #legends {
  background: var(--light-surface);
  border-color: rgb(255, 255, 255);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 10px;
  border-radius: 5px;
}

.dropdown-content label {
  display: block;
  margin-bottom: 8px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* login logout form */

.modal {
  display: block;
  margin-top: 150px;
  border-radius: 15px;
}

.modal-dialog {
  max-width: 400px;
  width: 100%;
}

.modal-content {
  background-color: #1f1f1f;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.modal-header {
  background-color: #2599ff;
  padding: 20px;
  border-bottom: 1px solid #444;
}

.modal-title {
  margin: 0;
  color: #dfdfdf;
  font-size: 1.5rem;
  text-align: center;
}

.modal-body {
  padding: 30px 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  color: #000000;
  display: block;
  margin-bottom: 5px;
  font-family: Arial, Helvetica, sans-serif;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  background-color: #2c2c2c;
  border: none;
  border-radius: 5px;
  color: #ffffff;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(187, 134, 252, 0.7);
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background-color: #bb86fc;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #9b5de5;
}

#loadingMessage {
  display: block;
  margin-top: 15px;
  color: #f0400b;
  font-style: italic;
  text-align: center;
}

#errorMessage {
  display: block;
  margin-top: 15px;
  color: #cf6679;
  text-align: center;
  z-index: 10000;
}

.polyline-measure-unicode-icon,
.polyline-measure-clearControl,
#unitControlId {
  cursor: pointer;
  color: black;
}

/* tools styling  */

/* .leaflet-touch .leaflet-bar a {
  width: 30px;
  height: 30px;
  line-height: 30px;
  background-color: var(--dark-surface);
  border: none;
  
}

body.light-theme .leaflet-touch .leaflet-bar a {
  background-color: var(--light-surface);
  border-color: rgba(0, 0, 0, 0.1);
}


body.light-theme .leaflet-control-measure .leaflet-control-measure-toggle,
.leaflet-control-measure .leaflet-control-measure-toggle:hover {
    background-size: 14px 14px;
    background-image: url(assets/rulers_@2X.png);
    border: 0;
    border-radius: 4px;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden
} */

.leaflet-control-measure h3,
.leaflet-measure-resultpopup h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  color: black;
  border-bottom: 1px solid #ddd;
}

/* layerPanelrelatedsettings */


/* Active Layers List */
#layer-list {
  /* By default, keep it empty; its children (layer items) are styled below */
}

/* Active Layer Item */
.layer-item {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #ffffff7d;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.layer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.layer-label {
  flex: 1;
  max-width: 120px;
  /* truncates long names */
  font-size: 12px;
  color: #333;
  margin-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layer-button-container {
  display: flex;
  gap: 6px;
}

.layer-button {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1e1e2f;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

/* Opacity Slider */
.opacity-slider-container {
  margin-top: 10px;
}

.opacity-wrapper {
  display: flex;
  align-items: center;
}

.opacity-wrapper span {
  font-size: 12px;
  margin-right: 6px;
  color: #007BFF;
}

.opacity-slider {
  flex: 1;
}

/* Available Layers Table */
.data-widget {
  margin-top: 0px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border: 1px solid #ccc;
  padding: 5px;
  font-size: 12px;
}

.table td {
  color: #000000;
}


/* Legend (if used) */
/* #legend {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: #f9f9f9;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
} */



/* floodintersection */


/* 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;
}


/* Chart styling */
/* canvas {
  margin-top: 20px;
  width: 100%;
  max-height: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */

/* 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: #fafafa;
}

/* 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;
}

/* bottom dashboard */

.data-widget {
  background: transparent;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Widget Header */
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.widget-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* sumarry table */

/* Base styles for the table summary */
.table-summary {
  width: 100%;
  max-width: 600px;
  /* Adjust based on your layout */
  margin: 0 auto;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 0.875rem;
  /* Small, readable text */
  color: #333;
}

/* Style for table headers */
.table-summary th {
  background-color: #f12020;
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  font-weight: bold;
}

/* Style for table cells */
.table-summary td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

/* Alternate row background for better readability */
.table-summary tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover effect for rows */
.table-summary tr:hover {
  background-color: #f1f1f1;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .table-summary {
    font-size: 0.75rem;
  }

  .table-summary th,
  .table-summary td {
    padding: 6px;
  }
}

#loader2 {
  position: fixed;
  top: 50%;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}

.control-panel1 label {
  display: inline-block;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: background 0.3s;
}

.control-panel1 label:hover {
  background: #0056b3;
}

#geocoder {
  position: absolute;

  right: 1%;
  /* Translate to center the div exactly */

  /* Optional: set a size and background to see it clearly */

}

/* table buttons spacing  */
.align-items-center {
  align-items: center !important;
  gap: 1rem;
}


/* query loader2 */

.loader2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border: 1px solid #ccc;
  z-index: 2000;
  display: none;
  /* initially hidden */
}


/* Info container styling */
#layerInfoContainer {
  position: absolute;
  top: 56px;
  right: 10px;
  z-index: 1500;
  background: #f5f4f4;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  font-family: Arial, sans-serif;
  color: #070707;
}

/* Toggle button at top right */
#toggleInfoBtn {
  position: absolute;
  top: 10px;
  right: 320px;
  /* placed to left of the info container */
  z-index: 1001;
  font-size: 0.9rem;
  border-radius: 4px;
}

/* Headings for each layer within the info container */
#layerInfoContainer h6 {
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #2575fc;
}

#layerInfoContainer p {
  margin-bottom: 10px;
  line-height: 1.4;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  #layerInfoContainer {
    right: 10px;
    max-width: 90%;
    max-height: 300px;
  }

  #toggleInfoBtn {
    right: 10px;
    top: 320px;
  }
}

#levelButtons {
  display: flex;
  /* make it a flex container */
  flex-wrap: wrap;
  /* allow buttons to wrap onto new lines */
  gap: 10px;
  /* 10px gap between items and lines */
  justify-content: center;
  /* optional: center the rows horizontally */
  align-items: center;
  /* optional: vertically center items in each row */
}

:root {
  /* Theme variables for easy customization */
  --btn-bg: #4b6cb6;
  --btn-color: #ffffff;
  --btn-radius: 4px;
  --btn-gap: 10px;
}

#levelButtons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--btn-gap);
  justify-content: center;
  align-items: center;
}

#levelButtons button {
  flex: 1 1 100px;
  min-width: 80px;
  padding: 0.5rem 1rem;
  margin: 0;
  background: var(--btn-bg);
  color: var(--btn-color);
  border: none;
  border-radius: var(--btn-radius);
  font-size: small;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;

  /* smooth hover/press animations */
  :contentReference[oaicite:0] {
    index=0
  }

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

  /* subtle depth */
  :contentReference[oaicite:1] {
    index=1
  }
}

/* Hover State */
#levelButtons button:hover {
  background: #2a2a42;
  /* slightly lighter for feedback */
  transform: translateY(-2px);

  /* lift effect */
  :contentReference[oaicite:2] {
    index=2
  }

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Active/Pressed State */
#levelButtons button:active {
  transform: translateY(0) scale(0.98);

  /* quick press in */
  :contentReference[oaicite:3] {
    index=3
  }

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Focus for Accessibility */
#levelButtons button:focus-visible {
  outline: 2px solid #00ffff;

  /* clear focus ring */
  :contentReference[oaicite:4] {
    index=4
  }

  outline-offset: 2px;
}

/* sumary table */
.summary-card {
  background: #fff;
  border-radius: 8px;                   /* rounded “card” corners */ :contentReference[oaicite:7]{index=7}
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* subtle drop shadow */ :contentReference[oaicite:8]{index=8}
  padding: 1rem;
  font-size: small;
  max-width: 600px;
  margin: 1rem auto;
}

.summary-table {
  width: 100%;
  table-layout: fixed;                  /* fixed column widths */ :contentReference[oaicite:9]{index=9}
  border-collapse: collapse;            /* single neat border */ :contentReference[oaicite:10]{index=10}
  font-family: Arial, sans-serif;
}

.summary-table caption {
  caption-side: top;
  font-size: 1.25rem;
  font-weight: bold;
  padding-bottom: 0.5rem;
}

.summary-table th,
.summary-table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
  font-size: small;
}

.summary-table thead th {
  background-color: #4a6bb6;
  color: #fff;
}

.summary-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;            /* zebra striping */ :contentReference[oaicite:11]{index=11}
}


/* query tabele header  */

#tableHead{
  background-color: #4a6bb6;
}


.table>:not(:first-child) {
  border-top: 2px solid rgb(33 37 41 / 0%) !important ;
}

.category-row td {
  font-size: 1.2em;
  /* slightly larger text */
  /* :contentReference[oaicite:0]{index=0} */
  font-weight: bold;
  /* bold text */
  /* :contentReference[oaicite:1]{index=1} */
  text-decoration: underline;
  /* underline */
  /* :contentReference[oaicite:2]{index=2} */
  text-underline-offset: 3px;
  /* offset the underline */
  /*  */
  padding: 8px 5px;
  /* spacing */
  /* :contentReference[oaicite:3]{index=3} */
  background-color: #f5faff;
  /* light background */
  /* :contentReference[oaicite:4]{index=4} */
  border-bottom: 2px solid #ccc;
  /* subtle bottom border */
  /* :contentReference[oaicite:5]{index=5} */
}