/* -------------------------------------------------
 * Select view control panel
 * ------------------------------------------------- */

.select_view {
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  position: absolute;
  width: 200px;
  top: 0px;
  right: 42px;
  padding: 5px;
  margin-top: 6px;
  margin-right: 0px;
}
 
.select_view .select_view_sub {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  padding: 10px;
  margin-bottom: 10px;
}
 
.select_view_sub fieldset {
  border: none;
  padding: 0;
  margin: 0 0 10px;
}
 
.select_view_sub fieldset:last-child {
  margin: 0;
}
 
.select_view_sub select {
  width: 100%;
}
 
.select_view_sub label {
  display: block;
  font-weight: bold;
  margin: 0 0 5px;
}
 
.select_view_sub button {
  display: inline-block;
  width: 36px;
  height: 20px;
  border: none;
  cursor: pointer;
}
 
.select_view_sub button:focus {
  outline: none;
}
 
.select_view_sub button:hover {
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.select_view_sub .tm_filter {
  display: flex;
  align-items: left;
  flex-direction: column; /* stack diff vertically */
  /*
  justify-content: space-between;
  margin-bottom: 5px;
  gap: 20px;
  */
}

/*
.form-row label {
  flex-basis: 60%;
  margin-right: 10px;
}

.form-row input[type="checkbox"] {
  flex-basis: 40%;
  box-sizing: border-box;
}
*/


/* -------------------------------------------------
 * Checkboxes panel for telemetry listings
 * ------------------------------------------------- */
.checkboxes-button {
    font: 12px 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-weight: bold;
    position: absolute;
    top: 195px;
    right: 42px;
    width: 189px;
    padding: 5px 5px;
    margin-top: 5px;
    margin-right: 5px;
    color: #ffffff;
    background-color: #6688d5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center; 
}

.checkboxes-button:hover {
    background-color: #3366a9;
}

.checkboxes-panel {
    font: 12px 'Helvetica Neue', Arial, Helvetica, sans-serif;
    position: absolute;
    top: 220px;
    right: 42px;
    width: 189px;
    padding: 5px;
    margin-top: 5px;
    margin-right: 5px;
    background-color: #f5f5f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

.hidden {
    display: none;
}

/* .checkbox-item goes inside .scrollable-list which goes inside .checkboxes-list */
.checkboxes-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkboxes-list-header {
    background-color: #007bff;
    color: white;
    padding: 6px 8px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    align-items: center;
    /* justify-content: center; */
}

.scrollable-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 2px 4px;
}

.checkbox-item {
    display: flex;
    flex-direction: row;
    align-items: left;
    padding: 2px 0;
    border-bottom: 1px solid #eee;
}


/* -------------------------------------------------
 * Free marker (draggable) position display (lng, lat data) 
 * ------------------------------------------------- */
pre.dp-dragIconCoord {
  /* display: none; */
  position:absolute;
  bottom:110px; /* 80 */
  left:10px;
  padding:5px 10px;
  background:rgba(0,0,0,0.5);
  /* background: #fff; */
  color:#fff;
  font-size:11px;
  line-height:18px;
  border-radius:3px;
  width: 400px; /* 390 */
  /* width: 20%; */
}

/* -------------------------------------------------
 * Cursor position display (lng, lat data)
 * ------------------------------------------------- */
pre.dp-currentCursorPos {
  position:absolute;
  bottom:60px; /* 30 */
  left:10px;
  padding:5px 10px;
  background:rgba(0,0,0,0.5);
  color:#fff;
  font-size:11px;
  line-height:18px;
  border-radius:3px;
  width: 400px; /* 390 */
}


/* -------------------------------------------------
 * site marker style
 * ------------------------------------------------- */
.site_marker {
  /* background-image: url('icons/ball_03.png'); */
  background-image: url('icons/circle.svg');
  /* background-image: url('icons/ball_01.png'); */
  background-size: cover;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
}

.site_marker_select {
  /* background-image: url('icons/ball_03.png'); */
  background-image: url('icons/green_01.png');
  /* background-image: url('icons/circle.svg'); */
  background-size: cover;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.site_marker_orange {
  /* background-image: url('icons/ball_03.png'); */
  /* background-image: url('icons/green_01.png'); */
  background-image: url('icons/orange_01.png');
  background-size: cover;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.site_marker_blue_ball {
  background-image: url('icons/ball_02.png');
  background-size: cover;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  cursor: pointer;
}

.site_marker_circ {
  /* background-image: url('icons/ball_03.png'); */
  /* background-image: url('icons/green_01.png'); */
  background-image: url('icons/circle.svg');
  background-size: cover;
  width: 20px;
  height: 20px;
  border-radius: 80%;
  cursor: pointer;
}

/* -------------------------------------------------
 * wind arrow marker style
 * ------------------------------------------------- */
.wind_arrow_marker {
  background-image: url('icons/arrow-up-long.svg');
  /* downloaded from: https://allsvgicons.com/icons/arrow/ */
  background-size: cover;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease-out; /* smooth rotation transition */
}

.wind_arrow_marker svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* -------------------------------------------------
 * mapboxgl-popup tweak (overwritting original)
 * ------------------------------------------------- */
.mapboxgl-popup {
  max-width: 200px;
  padding-bottom: 5px;
}

.mapboxgl-popup-close-button {
  display: none;
}

.mapboxgl-popup-content {
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  font: 90 10px/16px 'Source Sans Pro', 'Helvetica Neue', Sans-serif;
  padding: 0;
  width: 150px;
}

.mapboxgl-popup-content-wrapper {
  padding: 1%;
}

.mapboxgl-popup-content popup_top {
  /* background: #91c949; */
  background: #9da4cf;
  color: #fff;
  margin: 0;
  display: block;
  padding: 5px;
  border-radius: 3px 3px 0px 0px;
  font-weight: 700;
  margin-top: -15px;
  /* width: 100px; */
}

.mapboxgl-popup-content popup_bottom {
  margin: 0;
  display: block;
  padding: 5px 5px 5px 5px;
  font-weight: 400;
  /* width: 100px; */
}

.mapboxgl-popup-content div {
  padding: 5px;
}

.mapboxgl-container .leaflet-marker-icon {
  cursor: pointer;
}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-content {
  margin-top: 10px;
}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-tip {
  border-bottom-color: #91c949;
}

/*
.mapboxgl-popup {
  max-width: 200px;
}

.mapboxgl-popup-content {
  text-align: center;
  font-family: 'Open Sans', sans-serif;
}
*/

/* -------------------------------------------------
 * chart-popup
 * ------------------------------------------------- */
.chart-container {
  display: block;
  width: 300px;
  height: 200px;
  background: white;
}

/*
.chart-container {
  display: block;
  position: absolute;
  top: 30px;
  left: 0;
  width: 300px;
  height: 200px;
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 100;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
}
*/

/* -------------------------------------------------
 * Action panel button style
 * ------------------------------------------------- */
.action_panel {
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  font-weight: bold;
  background-color: #e0e5da;
  border-radius: 6px;
  position: absolute;
  width: 180px;
  top: 0px;
  right: 245px;
  margin-top: 10px;
  margin-right: 10px;
  border: 2px groove;
  padding: 4px;
  text-align: center;
}

.action_panel button {
  display: inline-block;
  width: 82px;
  height: 28px;
  border: none;
  padding: 3px;
	text-align: center;
  cursor: pointer;
}

.action_panel button:focus {
  outline: none;
}

.action_panel button:hover {
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.3);
  background: #a9cf7f;
}

.action_button_box {
  color:#5a5a7a;
  border-radius: 4px;
}

/* -------------------------------------------------
 * User input form for searching site by ID
 * ------------------------------------------------- */
/* The popup form - hidden by default */
.form-search-popup {
  font: 12px/18px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  /* font-family: Arial, Helvetica, sans-serif; */
  display: none;
  position: fixed;
  bottom: 30px;
  right: 10px;
  border: 3px solid #fcfcfc;
  border-radius: 8px;
  z-index: 9;
}

/* Add styles to the form container */
.form-search-site {
  max-width: 160px;
  padding: 5px;
  background-color: #fcfcfc;
}

/* Full-width input fields */
.form-search-site input[type=text] {
  width: 100%;
  padding: 5px;
  margin: 5px 0 5px 0;
  border: none;
  background: #f0f0f0;
}

/* When the inputs get focus, do something */
.form-search-site input[type=text]:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the Apply button */
.form-search-site .btn {
  background-color: #8acf80;
  color: white;
  padding: 5px 5px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom:5px;
  opacity: 0.6;
}

/* Set a style for the Cancel button */
.form-search-site .cancel {
  background-color: #8acf80;
}

/* Add some hover effects to buttons */
.form-search-site .btn:hover, .cancel:hover {
  opacity: 1;
}

.form-group-btn-hz {
    float:left;
}

/* -------------------------------------------------
 * User input form for entering time period for chart display
 * ------------------------------------------------- */
/* The popup form - hidden by default */
.form-enter-period-popup {
  font: 12px/18px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  display: none;
  position: fixed;
  bottom: 30px; /* bottom: 30px; */
  right: 10px; /* right: 10px; */
  border: 3px solid #fcfcfc;
  border-radius: 8px;
  z-index: 9;
}

/* Add styles to the form container */
.form-enter-period {
  max-width: 450px;
  padding: 5px;
  background-color: #fcfcfc;
}

/* Enable its elements to to be side-by-side (in columns) */
.form-enter-period-row {
  display: flex;
  gap: 5px; /* Creates spacing between the two columns */
  margin-bottom: 5px;
}

/* Make each input group take up equal horizontal space */
.form-enter-period-input {
  flex: 1; 
  display: flex;
  flex-direction: column; /* Stack label above its specific input */
}

/* Ensure inputs fill 100% of their individual columns */
.form-enter-period-input input[type=text] {
  width: 100%;
  padding: 2px;
  margin: 5px 0 5px 0;
  border: none;
  background: #f0f0f0;
}

.form-enter-period-input input[type=text]:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the Apply button */
.form-enter-period .btn {
  background-color: #8acf80;
  color: white;
  padding: 5px 5px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom:5px;
  opacity: 0.6;
}

/* Set a style for the Cancel button */
.form-enter-period .cancel {
  background-color: #8acf80;
}

/* Add some hover effects to buttons */
.form-enter-period .btn:hover, .cancel:hover {
  opacity: 1;
}

.form-error-message { color: red; display: none; margin-top: 5px; }
input:invalid { border-color: red; }

/* -------------------------------------------------
 * Color Scale Panel for Various Telemetry Data
 * ------------------------------------------------- */
.color-scale-container {
  position:absolute;
  bottom:30px;
  left:10px;
  width: 400px;
  height: 25px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  display: flex;
  align-items: center;
  color: white; /* label color */
  padding-left: 10px; /* padding for text alignment */
  padding-right: 10px;
  box-sizing: border-box;
  border-radius: 4px;
  overflow: hidden; /* needed for the gradient */
}

.unit-label {
  font-size: 0.8rem;
  margin-right: 5px; /* Spacing for the unit text */
  flex-shrink: 0;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5); /* contrast */
}

.number-label {
  /* numbers are distributed evenly */
  flex-grow: 1; 
  text-align: center;
  position: relative;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* -------------------------------------------------
 * Style for floating chart panel
 * ------------------------------------------------- */
.floating-chart-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 450px;
    height: 300px;
    background: rgba(252, 255, 252, 0.92);
    backdrop-filter: blur(8px); /* Modern frosted-glass effect */
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10; /* Ensures it stays on top of other elements of the map */
    pointer-events: auto; /* Allows interaction with the chart tooltips */
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #ccc;
    overflow: hidden;
    font-family: sans-serif;
}

.floating-chart-title {
    margin: 0 0 10px 0;
    font-size: 1.0rem;
    /*font-size: 12px;*/
    font-weight: 600;
    color: #7050fe;
    padding: 2px;
    background-color: rgba(252, 255, 252, 0.92);
    cursor: move; /* Changes cursor to a drag crosshair */
    user-select: none; /* Prevents text highlighting while dragging */
}

/* -------------------------------------------------
 * Calender UI (native in modern browsers)
 * ------------------------------------------------- */
#calender_start_hidden {
    display: none;
}

#calender_end_hidden {
    display: none;
}

/* container combining datetime input and calendar button */
.calendar-input-row {
  display: flex;
  align-items: center;
  border: 1px solid #cdcdcd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fefefe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 5px;
  /* gap: 5px; */
}

/* Highlight on the input group */
.calendar-input-row:focus-within {
  border-color: #0067ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

/* Calendar Icon Button */
.calendar-btn {
  background: none;
  background-color: #e0e2d3;
  border: none;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0053ff;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.calendar-btn:hover {
  color: #5abac6;
  background-color: #4caad6;
}

.calendar-btn-icon {
  width: 16px;
  height: 16px;
  /* Turns SVG into black */
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(10%) contrast(100%);
}

/* Text/Date Input field styling */
.timestamp-input {
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 16px;
  color: #555;
  flex: 1;
  background: transparent;
  clip-path: inset(0 35px 0 0); /* Firefox: hide native icon */
  /* appearance: none; Firefox: hide native icon */
  /* -moz-appearance: textfield; Firefox: hide native icon */
}

/* Hide the native calendar picker indicator icon in Edge/Chrome/Safari */
.timestamp-input::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

