/* Force Leaflet markers to stay attached to the map pane */
.leaflet-marker-icon,
.leaflet-marker-shadow {
    position: absolute !important;
    transform-origin: 0 0 !important;
}

/* Prevent global CSS transitions or max-width rules from breaking map icons */
.leaflet-map-pane img {
    max-width: none !important;
    transition: none !important;
}

@keyframes pulseOpacity {
    0% { opacity: 1.0; }
    50% { opacity: 0.65; }
    100% { opacity: 1.0; }
}

.pulsing-marker {
    animation: pulseOpacity 0.3s infinite ease-in-out;
}


/* Force Leaflet markers to stay attached to the map pane */
.leaflet-marker-icon,
.leaflet-marker-shadow {
    position: absolute !important;
    transform-origin: 0 0 !important;
}

/* Prevent global CSS transitions or max-width rules from breaking map icons */
.leaflet-map-pane img {
    max-width: none !important;
    transition: none !important;
}
/* 
 * Always set the map height explicitly to define the size of the div element
 * that contains the map. 
 */
 #map {
  height: 100vh;
}

/* 
 * Optional: Makes the sample page fill the window. 
 */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}


#map-container {
  position: relative;
  z-index: 0;
}



.panel {
  padding: 8px;
  padding-right: 18px;
  bottom: 30px;
  /* Adjust vertical position as needed */
  right: 25px;
  /* Adjust horizontal position as needed */
  background-color: rgb(255, 255, 255);
  position: fixed;
  border-radius: 10px 10px 10px 10px;
  /* Adjust the radius to control the roundness of corners */
}






button:hover {
  background-color: #0056b3;
}

#dateLabel {
  position: relative;
  margin-top: 2px;
  font: 400 30px Roboto, Arial, sans-serif;
  background-color: rgb(255, 255, 255);
  padding: 8px;
  font-size: 14px;
  margin-bottom: 2px;
  font-size: 20px;


}

.time {
  /* Adjust the font size as needed */
  letter-spacing: 0.12em;
  /* Add some spacing between characters */
  height: 70px;
  width: 220px;
  display: flex;
  font-size: 1px;
  /* Add a solid black border with 2px thickness */
}




.panel .tab-content>button {
  margin-top: 3px;
  margin-right: 3px;
  border: none;
  background-color: #024bad;
  /* Green background */
  color: white;
  /* White text */
  padding: 8px 18px;
  /* Padding */
  text-align: center;
  /* Center text */
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  /* Cursor style */
  border-radius: 5px;
  /* Rounded corners */
  transition: background-color 0.3s;
  /* Smooth transition on hover */
}

.panel .tab-content>button:hover {
  background-color: #013984;
  /* Darker green background on hover */
}


#closeButton {
  position: absolute;
  top: 2px;
  right: 5px;
  cursor: pointer;
  color: rgb(4, 4, 4);
}

#closeButton:hover {
  color: rgb(119, 119, 119);
  /* Change color on hover */
}



.colon {
  background-color: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
  /* Optional: change text color */
  padding: 5px;
  /* Optional: add padding to style the colon */
  padding-top: 10px;
  font-size: xx-large;

}
#monthlyDates,#CumulativeDates,#DroughtDates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cell {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  background-color: #fff;
  border-radius: 7px;
  font-family: Arial, sans-serif;
}
/* Specific styling for header cells */
.header {
border: 0px ;
font-weight: bold;
font-family: Arial, sans-serif;



}


.light-gray {
  background-color: lightgray;
  color: black;
}

.highlight-gray {
  background-color: gray;
  color: white;
}

.highlight-blue {
  background-color: #013984;
  color: white;
}

.month-year-header {
  text-align: left;
  font-weight:bolder;
  font-family: Arial, sans-serif;
  margin-bottom: 10px;


}






.cell img {
  display: block;
  margin: 5px auto;
}

.rainfall-scale-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  bottom: 35px;
  /* Adjust vertical position as needed */
  right: 315px;
  position: fixed;
  padding: 6px;
  width: 480px;
  padding-top: 11px;
  padding-right: 11px;
  background-color: rgba(236, 235, 235, 0.481);
  padding-bottom: 2px;

}

#rainfall-scale {
  display: flex;
  width: 100%;
  /* Set border style to solid */


}

#logo {
  z-index: 10;
  padding: 8px;
  padding-right: 18px;
  position: fixed;
  top: 7px;
  /* Adjust as needed */
  left: 7px;
  /* Adjust as needed */
  border-radius: 10px;
}

.popupPanel {
    position: fixed;
    top: 80px;
    left: 10px;
    width: 720px;
    min-height: 560px;
    padding: 18px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #d6d6d6;
    box-shadow: 0 5px 18px rgba(0,0,0,.25);
    overflow-y: auto;
    display: none;
    z-index: 1000;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.stream-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
    cursor: move;
}

.stream-popup-title {
    margin: 0;
    flex: 1;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.stream-popup-title a {
    color: #0056b3;
    text-decoration: none !important;
}

.stream-popup-title a:hover {
    text-decoration: none;
}

.stream-close-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 28px;
    cursor: pointer;
    color: #666;
}

.stream-close-btn:hover {
    color: #d00000;
}

.stream-graph-container {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #dbe6f3;
    border-radius: 8px;
    background: #fff;
    height: 340px;
}

.stream-graph-container canvas {
    width: 100% !important;
    height: 300px !important;
}

.stream-graph-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background: #eef5ff;
    border-radius: 8px;
    flex-wrap: wrap;
}


.stream-graph-tabs button {
    background: #0b5ed7;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 400;
    transition: background .2s ease;
    cursor: pointer;
}

.streamflow-range-tabs {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 12px;
}

.range-option {
    display: flex;
    align-items: center;
    gap: 4px;
}

.range-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.range-option label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
}

.stream-graph-tabs button:hover {
    background: #084298;
}



.scaleCloseButton {
  position: absolute;
  top: 3px;
  right: 3px;
  cursor: pointer;
  font-size: xx-small;
}

#darkenBackground {
  display: none;
  background: #000;
  opacity: .5;
  z-index: -29;
  height: 100%;
  width: 100%;
  background-repeat: repeat;
  position: fixed;
  top: 0;
  left: 0;
}

.sevenSeg-segOn {
  fill: rgb(0, 0, 0);
}

.sevenSeg-svg {
  background-color: white;

}

.sevenSeg-svg {
  fill: rgb(242, 241, 241);
}

#map-title {
  position: relative;
  top: 10px;
  left: 10px;
  background-color: white;
  padding: 5px;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
  /* Ensure it's above other elements */
}

.ampm {
  font-size: large;
  margin-top: 44px;
  font-family: Verdana, sans-serif;
  font-weight: 500;
  letter-spacing: -1px;
  /* Adjust the letter spacing for better alignment */
}

#rainfall-transparency-controls {
  position: absolute;
  top: 80px;
  /* Adjust as needed */
  left: 15px;
  /* Adjust as needed */
  display: flex;
  /* Use flexbox to arrange items horizontally */
  z-index: 10;

}




#maptypes {
  display: flex;
  align-items: center;
  /* Vertically center items */
  background-color: #bfbfbfc7;
  padding: 2px;
  border-radius: 2px;
}

#maptypes img {
  background-color: #ffffff;
  border-radius: 2px;
  margin: 3px !important;

}
#Info-icon{
  position: absolute;
  bottom: 130px;
  left: 10px;

}
#Info-icon:hover{
  cursor: pointer;
}

#controls-container {
  display: flex;
  align-items: center;
  /* Vertically center items */
  /* Adjust spacing between controls and images as needed */
  background-color: white;
}

#increaseTransparencyButton,
#decreaseTransparencyButton {
  background-color: white;
  border: none;
  padding: 4px;
  cursor: pointer;
  margin: 0 4px;
}







#rainfall-transparency-controls button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 4px 8px;
  border: none;
  border-radius: 3px;
  background-color: #d0d1d399;

}

#rainfall-transparency-controls button:hover {
  background-color: rgb(210, 210, 210);
}

#rainfall-transparency-controls button:focus {
  outline: none;
}

#transparencyPercentage {
  background-color: rgb(255, 255, 255);
  font-family: Arial, sans-serif;
  text-align: center;
  /* Align text horizontally to the center */
  padding: 8px;
  font-size: 12px;
}

#rainfall-transparency-controls img {
  width: 20px;
  height: 20px;
  cursor: pointer;
  padding: 3.2px;
  margin: 1px;

}

#rainfall-transparency-controls #controls-container {
  display: none;
  /* Hide the controls container initially */
}

#rainfall-transparency-controls #controls-container.show {
  display: flex;
  /* Show the controls container with sliding effect */
  /* Add sliding animation properties */
}

/* Target the map type control dropdown menu */
/* Target the map type control dropdown menu */
.gm-style .gm-style-mtc div {
  font-size: 5px !important;
  /* Adjust the font size as needed */
}

#mapTypeControl {
  padding: 0px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  margin: 10px;
  width: 120px;
  position: relative;
  right: 2px;
}



/* Style for the dropdown options */
#mapTypeOptions {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 0px;
  top: 100%;
  left: 0;
  z-index: 10;

}

#mapTypeOptions button {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.hidden {
  display: none;
}

#gauge_panel {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 300px;
  background-color: #bb8282;
  border: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
}


#streamflow-container {
  position: absolute;
  top: 66px;
  right: 5px;
  display: none; /* Change to 'block' to show by default */
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10; /* Ensure the container is on top of other elements */
}

#search-container {
  margin-bottom: 15px;
}

#search-input-container {
  margin-bottom: 5px;
}

#searchInput {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

#searchResults {
  display: none;
}

.streamflow-options {
  display: flex;
  flex-direction: column;
}

.streamflow-options label {
  display: flex;
  align-items: center;
  padding: 5px;
  margin-bottom: 5px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: bold; /* Make the font bolder */
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.streamflow-options input[type="radio"] {
  margin-right: 10px;
}

.streamflow-options input[type="checkbox"] {
  margin-right: 10px;
}

.streamflow-options label:hover {
  background-color: #f1f1f1;
}

/* Highlight checked radio buttons */
.streamflow-options input[type="radio"]:checked + span {
  background-color: #013a8448;
  color: white;
  border-radius: 4px;
}

/* Info container styling */
#info-container {
  position: absolute;
  top: 66px;
  right: 20px;
  display: none;
  background-color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  max-width: 250px;
}

/* Styling for the buttons */
.tab-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Ensure all buttons have the same width and padding */
.tab-options button,
.tab-options a button {
  width: 150px; /* Same width for all buttons */
  padding: 10px 20px; /* Same padding */
  background-color: #75757590;
  color: white;
  border: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 10px;
  text-align: center; /* Center text inside button */
}

.tab-options button:hover,
.tab-options a button:hover {
  background-color: #4a4b4a90;
}

/* Different color for Home button */
.tab-options a button {
  background-color: #75757590;
}

.tab-options a button:hover {
  background-color: #4a4b4a90;
}


#tab-container {
  position: absolute;
  top: 66px;
  right: 90px;
  display: none; /* Change to 'block' to show by default */
  background-color: #fff;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10; /* Ensure the tab container is on top of other elements */
}



.tab-options {
  display: flex;
  flex-direction: column;
}

.tab-options label {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  margin-bottom: 4px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: bold; /* Make the font bolder */
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-options input[type="radio"] {
  margin-right: 10px;
}

.tab-options label:hover {
  background-color: #f1f1f1;
}



.tab-options span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}







#search-input-container {
  display: flex;
  align-items: center;
}

#searchInput {
  width: 300px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
}



#searchResults {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: Roboto, Arial, sans-serif;
  font-size: small;
  position: absolute;
  z-index: 2000;
}

.result-item {
  cursor: pointer;
  padding: 4px;
  border: 0px solid #ccc;
  border-radius: 2px;
}

.result-item:hover {
  background-color: #cce0fbaf;
  /* Change to the desired darker color */
}

.gm-style-iw-chr {
  padding: 0 !important;
  /* Remove top padding */
  height: 4px;


}

.gm-style-iw-ch {
  margin-top: 0 !important;
  /* Remove top margin */
}

.info-window-content {
    width: 660px;
    margin-top: 0;
    padding: 15px;
    font-size: 15px;
    /* box-sizing: border-box; */
    background-color: #ffffff;
}


/* Remove margin and padding from h3 and p elements within the InfoWindow content */

.gm-style-iw .no-space {
  margin-bottom: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gm-style-iw .link {
  margin: 0;
  padding: 2px;
  font-style: italic;
}


#graph-tabs button {

  margin-top: 2px;
  margin-right: 2px;
  border: none;
  background-color: #024bad;
  /* Green background */
  color: white;
  /* White text */
  padding: 5px 15px;
  /* Padding */
  text-align: center;
  /* Center text */
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  /* Cursor style */
  border-radius: 5px;
  /* Rounded corners */
  transition: background-color 0.3s;
  /* Smooth transition on hover */
}

#graph-tabs>button:hover {
  background-color: #013984;
  /* Darker green background on hover */
}



/* Side Panel (Sidebar) */
.side-panel {
  display: block;
}

.image-container {
  height: 62px;
  width: 480px;
  /* Start with width 0 to be hidden */
  position: fixed;
  z-index: 10;
  top: 0;
  right: 15px;
  /* Change from left to right */
  background-color: rgba(255, 255, 255, 0);
  overflow-y: hidden;
  overflow-x: hidden;
  transition: 0.5s;
  display: flex;
  /* Use flexbox for horizontal layout */

  justify-content: flex-start;
  /* Align items to the right */
  padding: 0 5px;
  /* Add padding as needed */
  border-radius: 5px;
}

.image-container div {
  color: #000000;
  margin: 2px;
}

.image-container div:hover {
  color: #000000;
  cursor: pointer;
}

.image-container .close-btn {
  position: absolute;
  top: 0;
  right: 2px;
  /* Adjust for right-side panel */
  font-size: 20px;
}



/* Open button */
.open-btn {
  font-size: 30px;
  cursor: pointer;
}

/* .cloudimage {
  margin: 5px;
  border-radius: 5px;
  background: rgb(255, 255, 255);
} */


.cloudimage{
  margin: 5px;
  border-radius:12px;
  background:white;
  border:1px solid #e8e8e8;
  transition: transform .25s, box-shadow .25s, background .25s;
}

.cloudimage:hover{
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 20px rgba(0,0,0,.18);
    background:#f5fbff;
}


.image-container img:hover {
  cursor: pointer;
}




.no-space a {
  text-decoration: none !important;
  /* Remove underline */
  color: black !important;
  /* Maintain the text color of the site name */
  cursor: pointer;
  /* Set cursor to pointer by default */
}

.no-space a:focus,
.no-space a:hover {
  outline: none;
  /* Remove outline */
  color: #024bad !important;
  /* Change color on hover */
}


#shortRange{
  background-color: pink;
}
.checkbox-container {
  margin-left: 20px; /* Adjust the value to your preferred indentation */
}

.checkbox-container label {
  display: block; /* Ensures each label is on a new line */
  margin-bottom: 5px; /* Adds space between labels */
}

/* Base styles for the clickable elements */
#tab-image, #streamflow-image, #drought-image {
  transition: all 0.3s ease; /* Smooth transition for effects */
  cursor: pointer;
}

/* Modern effect when the element is active */
/* .active-element {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.349);  
  border-radius: 10px;  
  transform: scale(1.05);  
  background-color: #f0f0f0;  
} */


#closeButton-popupPanel {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}



#closeButton-popupPanel:hover {
  background-color: rgb(209, 209, 209) ;
}

#Info-image{
  bottom: 20px;
}

#Drought-scale{
  width: 400px;

}

.tooltip {
  display: none;
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 4px;
  z-index: 10;
}

.highlight-blue:hover .tooltip {
  display: block; 
}


#flood-container {
  position: absolute;
  top: 66px;
  right: 150px;   
  display: none;
  background-color: #fff;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  z-index: 10;
}

#flood-container .tab-label {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  gap: 8px;
  margin-bottom: 5px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
} 


/* #time-for-flood {
    display: none; 
    background-color: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.5;
    width: 200px;
    height: 100px;
    position: absolute;
    z-index:10;
    bottom:20px;
    left:20px;
} */

#time-for-flood {
    display: none; 
    background-color: #fff;
    padding: 18px 24px;
    
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    font-family: Arial, sans-serif; 
    
    font-size: 18px;
    line-height: 1.5;
    
    width: auto; 
    min-width: 180px; 
    height: auto; 
    
    position: absolute;
    z-index: 10;
    bottom: 30px;
    right: 30px;
}

/* Container matched to #tab-container */
.map-overlay-panel {
    background-color: #fff;
    padding: 5px; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    position: absolute;
    top: 66px;
    right: 15px;
    z-index: 10; 
    border: none; /* Removed the solid border */
}

/* Header styled to align with the labels */
.map-overlay-panel h4 {
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 4px 16px; /* Keeps text aligned with the indented labels */
    font-size: 16px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: bold;
    color: #333;
}

.map-overlay-panel .radio-group {
    display: flex;
    flex-direction: column;
}

/* Labels matched exactly to .tab-options label */
.map-overlay-panel label {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    margin-bottom: 4px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect matched to .tab-options label:hover */
.map-overlay-panel label:hover {
    background-color: #f1f1f1;
}

/* Input matched to .tab-options input[type="radio"] */
.map-overlay-panel input[type="radio"] {
    margin-right: 10px;
    margin-left: 0;
}

/* 
.map-overlay-panel {
    background-color: white;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    font-family: sans-serif;
    font-size: 14px;
    position: absolute;
    top: 66px;
    right: 150px;
    z-index: 1000; 
}

.map-overlay-panel h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.map-overlay-panel .radio-group {
    margin-bottom: 8px;
}

.map-overlay-panel label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
} */


/* Direct popup card wrapper */
/* Direct popup card wrapper */
/* Direct popup card wrapper */
.rail-popup-card {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  width: 580px; /* Increased width from 450px */
  background-color: white;
  border: 1px solid #c8e1fc;
  border-radius: 12px;
  padding: 20px; /* Expanded padding */
  box-shadow: 0 4px 20px rgba(0, 86, 179, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

.rail-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
  cursor: move;
}

.rail-popup-title {
  margin: 0;
  color: #0056b3;
  font-size: 20px; /* Scaled up title */
  font-weight: 700;
}

.rail-close-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.rail-close-btn:hover {
  color: #0056b3;
}

.rail-reach-id {
  margin: 0 0 14px 0;
  font-size: 15px;
  color: #222;
}

/* Control tabs bar */
.rail-graph-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #e4f0fd;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d0e4fd;
  margin-bottom: 14px;
  font-size: 14px;
  color: #004085;
}

.rail-graph-tabs span {
  font-weight: 700;
  margin-right: 4px;
}

.rail-graph-tabs label {
  cursor: pointer;
  margin-right: 8px;
}

/* Canvas container */
.rail-graph-container {
  background: #ffffff;
  border: 1px solid #d0e4fd;
  border-radius: 8px;
  padding: 12px;
  height: 320px; /* Increased height from 250px */
  box-sizing: border-box;
}

/* Global Loader Animation */
#global-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loader {
    width: 60px;
    height: 60px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 15px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    font-family: "Segoe UI", sans-serif;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}





.map-control-panel {
    position: absolute;
    top: 66px;
    right: 8px;
    width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
    padding: 10px;
    z-index: 100;
}

.panel-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.panel-header button{
    background:none;
    border:none;
    font-size:18px;
    cursor:pointer;
}

.map-control-panel label{
    display:block;
    margin:8px 0;
}

/* ============================
   Railroad Control Panel
============================ */

.rail-overlay-panel h4 {
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 4px 16px;
    font-size: 16px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: bold;
    color: #333;
}

.rail-overlay-panel .checkbox-group {
    display: flex;
    flex-direction: column;
}

.rail-overlay-panel label {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin-bottom: 4px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.rail-overlay-panel label:hover {
    background-color: #f1f1f1;
}

.rail-overlay-panel input[type="checkbox"] {
    margin-right: 10px;
    margin-left: 0;
}






#user-count-info {
    display: none; 
    position: absolute;
    bottom: 40px;
    left: 20px;
    z-index: 1000;

    min-width: 220px;
    padding: 15px;

    background: white;
    border-radius: 8px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);

    font-family: Arial, sans-serif;
    font-size: 14px;
}

.user-info-title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.user-info-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.user-info-row strong {
    margin-left: 20px;
}
