@import url('fonts.css');
@import url('icos.css');
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* colorz */
/* things */
/* mixins */
/* the works */
html,
body {
  height: 100%;
}
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans";
  font-size: 0.75vmax;
}
body:not(.content) {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.bold {
  font-family: "Open Sans Bold";
}

.medium {
  font-family: "Open Sans Medium";
}

.italic {
  font-family: "Open Sans Italic";
}

strong {
  font-family: "Open Sans Bold";
}

div#wrapper {
  display: flex;
  width: 100%;
  height: 56.25vmax;
  background: #646F8A url('../gfx/map-faux.jpg') center center no-repeat;
  background-size: cover;
  overflow: hidden;
}
div#wrapper .backGrounder {
  pointer-events: none;
  display: transparent;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  -webkit-transition: background-color 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  -moz-transition: background-color 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  -o-transition: background-color 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: background-color 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  z-index: 2;
}
div#wrapper .backGrounder.blueBg {
  background-color: #002530; /* #0066FF; */
}
div#wrapper section {
  background-color: #0f1217;
  padding: 0.8em;
  color: #ffffff;
}
div#wrapper section#main {
  background: #dfe6f4;
  flex-grow: 2;
  position: relative;
}
div#wrapper section#main .title,
div#wrapper section#detections .title {
  pointer-events: none;
  position: fixed;
  z-index: 9000;
  left: 7.6em;
  top: 10px;
  background-color: rgba(15, 18, 23, 0.7);
  border-radius: 0.8em;
  padding: 1em;
  backdrop-filter: blur(2px);

}
div#wrapper section#main .title h1,
div#wrapper section#detections .title h1 {
  margin: 0;
  font-size: 3em;
  line-height: 1.2em;
  font-family: "Open Sans Bold";
}
div#wrapper section#main .title p,
div#wrapper section#detections .title p {
  margin: 0;
}

div#wrapper section#main #videoWrapper {
  display: none;
  z-index: 4;
  height: 100%;
  width: 100%;
  left: 0;
  position: relative;
  flex-direction: column;
  align-items: center;
  top: 0;
  background-color: #0f1216;
}
div#wrapper section.leftCol {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  scrollbar-color: transparent;
  width: 5.75em;
  padding-right: 0.3em;
  -webkit-transition: width 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  -moz-transition: width 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  -o-transition: width 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: width 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  z-index: 3;
  /*
			&.twoCols {
				width: 11.3em;
				.block {
					div {
						&:first-child {
							
							flex-basis: auto;
						}
						
						&:nth-child(even) {
							opacity: 1;
						}
					}
				}
			} */
}
div#wrapper section.leftCol::-webkit-scrollbar {
  width: 0.6em;
}
div#wrapper section.leftCol::-webkit-scrollbar-track {
  background: #0f1217;
  width: 0.8em;
}
div#wrapper section.leftCol::-webkit-scrollbar-thumb {
  background-color: rgba(100, 111, 138, 0.3);
  border: solid 0.2em #0f1217;
}
div#wrapper section.leftCol * {
  box-sizing: border-box;
}
div#wrapper section.leftCol.collapsed {
  width: 0;
  overflow-y: hidden;
  overflow-x: hidden;
  scrollbar-width: none;
  scrollbar-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
div#wrapper section.leftCol.collapsed::-webkit-scrollbar {
  width: 0;
}
div#wrapper section.leftCol.collapsed::-webkit-scrollbar-track {
  width: 0;
}
div#wrapper section.leftCol.collapsed::-webkit-scrollbar-thumb {
  background-color: rgba(100, 111, 138, 0.3);
  border: none;
}
div#wrapper section.leftCol.collapsed .block {
  opacity: 0;
}
div#wrapper section.leftCol .block {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8em;
  opacity: 1;
  -webkit-transition: opacity 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  -moz-transition: opacity 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  -o-transition: opacity 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: opacity 0s cubic-bezier(0.645, 0.045, 0.355, 1);
}
div#wrapper section.leftCol .block.half div {
  background: rgba(100, 111, 138, 0.5);
  color: rgba(255, 255, 255, 0.35);
}
div#wrapper section.leftCol .block.full div {
  background: #646F8A;
  color: #DFE6F5;
}
div#wrapper section.leftCol .block div {
  width: 5em;
  height: 5em;
  display: flex;
  background-color: rgba(100, 111, 138, 0.2);
  border-radius: 0.4em;
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.25);
  position: relative;
  padding: 0.5em;
  font-family: "Open Sans Bold";
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Old versions of Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
  transition-property: opacity;
  transition-delay: .8s;
  -webkit-transition: opacity 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  -moz-transition: opacity 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  -o-transition: opacity 0.01 cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: opacity 0s cubic-bezier(0.645, 0.045, 0.355, 1);
}
div#wrapper section.leftCol .block div span {
  position: absolute;
  right: 0.5em;
  top: 0.5em;
  background: #EB2246;
  color: #5B0C64;
  padding: 0 0.5em;
  border-radius: 0.3em;
}
div#wrapper section.leftCol .block div:nth-child(even) {
  opacity: 0;
  margin-left: 0.8em;
}
div#wrapper section.leftCol .block div:first-child {
  display: flex;
  flex-shrink: 0;
}

div#map {
	width: 100%;
}

div#timeline {
	position: absolute; 
	left: 12em;
  right: 0em; 
	left: 12em;
  right: 0em; 
	bottom: 1em; 
	z-index: 3; 
	height: 2em; 
	width: calc(100% - 14em);
}

div#timeline .min-single {
  float: left; 
  height: 2em; 
  background-color: #DFE6F5;
  border-right: 1px solid #ccc;
  cursor: pointer;
}

div#timeline .min-single:first-child {
	border-top-left-radius: 1.2em;
	border-bottom-left-radius: 1.2em;
	width: 1.2em!important;
}

div#timeline .min-single:nth-last-child(1) {
    border-top-right-radius: 1.2em;
    border-bottom-right-radius: 1.2em;
    width: 1.2em!important;
}

div#timeline .min-single.red {
  background-color: color-mix(in srgb, #DFE6F5 calc((1 - var(--intensity, 0.5) * 0.7) * 100%), #ff000e calc(var(--intensity, 0.5) * 0.8 * 100%));
  border-color: color-mix(in srgb, #ccc calc((1 - var(--intensity, 0.5) * 0.7) * 100%), #ff000e calc(var(--intensity, 0.5) * 0.8 * 100%));
}

div#timeline .min-single.green {
  background-color: color-mix(in srgb, #DFE6F5 calc((1 - var(--intensity, 0.5) * 0.7) * 100%), #00f61d calc(var(--intensity, 0.5) * 0.8 * 100%));
  border-color: color-mix(in srgb, #ccc calc((1 - var(--intensity, 0.5) * 0.7) * 100%), #00f61d calc(var(--intensity, 0.5) * 0.8 * 100%));
}

.min-single {
  position: relative;
  overflow: visible;
  transition: transform 0.2s ease;
  --intensity: 0.5; /* Default intensity */
}

.min-single.orange {
  background-color: color-mix(in srgb, #DFE6F5 calc((1 - var(--intensity, 0.5) * 0.7) * 100%), #ffa500 calc(var(--intensity, 0.5) * 0.8 * 100%));
  border-color: color-mix(in srgb, #ccc calc((1 - var(--intensity, 0.5) * 0.7) * 100%), #ffa500 calc(var(--intensity, 0.5) * 0.8 * 100%));
}

.timeline-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 14.4px;
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom center;
  transform: translateX(-50%) scale(0.8);
  z-index: 1000;
  white-space: nowrap;
  margin-bottom: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-align: center;
}
.timeline-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}
.min-single:hover .timeline-popup {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.min-single:hover {
  transform: translateY(-5px);
  z-index: 10;
}
.timeline-popup .time {
  font-weight: bold;
  font-size: 18px;
}
.timeline-popup .date {
  font-size: 13px;
  opacity: 0.8;
}
.timeline-popup .timezone {
  font-size: 13px;
  opacity: 0.8;
}
.timeline-popup .detections {
  margin-top: 3px;
  font-size: 15px;
}
.timeline-popup .detections.has-detections {
  color: #FF0000; /* Muted red color for when detections exist */
}
.timeline-popup .detections.no-detections {
  color: #00F61D; /* Muted green color for when no detections exist */
}

div#wrapper section.leftCol .block div.red::before {
  content: '';
  border-radius: 0.3em;
  background-color: #ff000E;
  position: absolute;
  left: 0.5em;
  top: 0.5em;
  width: 1em;
  height: 0.6em;
  width: 0.6em;
}
div#wrapper section.leftCol .block div.green::before {
  content: '';
  border-radius: 0.3em;
  background-color: #00F61D;
  position: absolute;
  left: 0.5em;
  top: 0.5em;
  width: 1em;
  height: 0.6em;
  width: 0.6em;
}
div#wrapper section.leftCol .block div.violet::before {
  content: '';
  border-radius: 0.3em;
  background-color: #EB2246;
  position: absolute;
  left: 0.5em;
  top: 0.5em;
  width: 1em;
  height: 0.6em;
  width: 0.6em;
}
div#wrapper section.leftCol .block div.dark::before {
  content: '';
  border-radius: 0.3em;
  background-color: #0f1217;
  position: absolute;
  left: 0.5em;
  top: 0.5em;
  width: 1em;
  height: 0.6em;
  width: 0.6em;
}

div#wrapper section.leftCol .block div.blue::before {
  content: '';
  border-radius: 0.3em;
  background-color: #15386d; /* #0066FF; */
  position: absolute;
  left: 0.5em;
  top: 0.5em;
  width: 1em;
  height: 0.6em;
  width: 0.6em;
}
div#wrapper section.leftCol .block:first-child {
  margin-top: 0;
}
div#wrapper section#rightCol {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  align-items: flex-end;
  padding-top: 4em;
  z-index: 3;
  overflow-y: scroll;
  overflow-x: hidden;
  min-width: 21.9em;
  scrollbar-width: none;
  scrollbar-color: transparent;
  z-index: 12;
}
div#wrapper section#rightCol::-webkit-scrollbar {
  width: 0.6em;
}
div#wrapper section#rightCol::-webkit-scrollbar-track {
  background: #0f1217;
  width: 0.8em;
}
div#wrapper section#rightCol::-webkit-scrollbar-thumb {
  background-color: rgba(100, 111, 138, 0.3);
  border: solid 0.2em #0f1217;
}
div#wrapper section#rightCol * {
  box-sizing: border-box;
}
div#wrapper section#rightCol.hide-sensors.expanded {
  width: 33.1em;
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/transparent+0,ff0000+49,000000+50,000000+100 */
  background: transparent;
  /* Old browsers */
  background: -moz-linear-gradient(left, transparent 0%, transparent 32%, #0f1217 0%, #0f1217 100%);
  /* FF3.6-15 */
  background: -webkit-linear-gradient(left, transparent 0%, transparent 32%, #0f1217 0%, #0f1217 100%);
  /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to right, transparent 0%, transparent 32%, #0f1217 0%, #0f1217 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='transparent', endColorstr='@main', GradientType=1);
  /* IE6-9 */
  pointer-events: none;
}

div#wrapper section#rightCol.expanded .block {
  pointer-events: all;
}

div#wrapper section#rightCol.expanded .block.open {
  background: #002a6a; /* #0066FF; */
  width: inherit;
  /* border: 0.2em solid #002a6a; */
}
div#wrapper section#rightCol.expanded .block.open header {
  border-radius: 1em;
  border-bottom-width: 0;
  border-color: #002a6a;
}
div#wrapper section#rightCol.expanded .block.open header::before {
  border-radius: 0.7em;
}
div#wrapper section#rightCol.expanded .block.open .extra {
  display: flex;
  flex-grow: 2;
}
div#wrapper section#rightCol .block {
  margin-bottom: 1em;
  width: 22em;
  border-radius: 1em;
  display: flex;
  justify-content: flex-end;
  background-color: #002530; /* #0066FF; */
  position: relative;
  -webkit-transition: width 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  -moz-transition: width 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  -o-transition: width 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: width 0s cubic-bezier(0.645, 0.045, 0.355, 1);
  scroll-margin: 4em;
}
div#wrapper section#rightCol .block.sensorsGroup {
  display: none;
  /* initial */
}

#rec {
  position: absolute;
  z-index: 200;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  background-color: rgba(15, 18, 23, 0.7);
  border-radius: 0.8em;
  padding: 0.8em;
  text-shadow: 1px 1px 0 gray;
  pointer-events: none;  
  backdrop-filter: blur(2px);
  color: white;
  box-sizing: border-box;
  overflow: hidden;
  width: max-content;
  max-width: 90%; /* Prevents too wide content from stretching beyond screen */
}

#rec h1 {
  font-size: 150%; 
  position: relative;
  margin-bottom: 5px;
  margin-top: 0;
  text-align: center;
  color: white;
  font-family: "Open Sans Bold";
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#rec h3 {
  margin-top: 5px;
  text-align: center;
  color: white;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#rec .player {
  pointer-events: all;	
  cursor: pointer; 
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url(../gfx/ico-stop-circle.svg);
  position: relative;
  width: 4em;
  height: 4em;
  z-index: 995;
  box-shadow: 1px 1px 0 gray;
  border-radius: 3em;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin: 0 auto; /* Center the player horizontally */
  display: block;
}

div#wrapper section#rightCol .block .player {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('../gfx/ico-play-circle.svg');
  position: absolute;
  right: 1em;
  top: 1em;
  width: 3em;
  height: 3em;
  z-index: 995;
  cursor: pointer;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Old versions of Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}
div#wrapper section#rightCol .block .player.playing {
  background-image: url('../gfx/ico-pause-circle.svg');
}
div#wrapper section#rightCol .block .player.visible {
  display: block;
}
div#wrapper section#rightCol .block .player.unavailable {
  background-image: url('../gfx/ico-unavailable-circle.svg');
}
div#wrapper section#rightCol .block .extra {
  align-items: flex-start;
  overflow: hidden;
  padding: 0.8em;
  display: flex;
  flex-direction: column;
  display: none;
}
div#wrapper section#rightCol .block .extra .top {
  flex-grow: 2;
  align-items: flex-start;
}
div#wrapper section#rightCol .block .extra .top button {
  background: #15386d; /* #0066FF; */
  color: #DFE6F5;
  border: solid 0.15em #DFE6F5;
}
div#wrapper section#rightCol .block .extra .top button span {
  background: transparent;
  margin-right: 0;
}
div#wrapper section#rightCol .block .extra .bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
div#wrapper section#rightCol .block .extra .bottom button {
  background: #DFE6F5;
  color: #15386d; /* #0066FF; */
}
div#wrapper section#rightCol .block .mainBox {
  display: flex;
  flex-direction: column;
}
div#wrapper section#rightCol .block .mainBox h3,
div#wrapper section#rightCol .block .mainBox p {
  margin: 0;
}
div#wrapper section#rightCol .block .mainBox header {
  cursor: pointer;
  border-radius: 1em 1em 0 0;
  background: #646F8A;
  padding: 0.8em 1em;
  background-size: cover;
  background-position: center center;
  position: relative;
  overflow: hidden;
  min-height: 10em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22em;
  border: solid 0.3em #0f1217;
  border-width: 0.3em 0.3em 0 0.3em;
  padding: 0.5em 0.7em;
}
div#wrapper section#rightCol .block .mainBox header::before {
  z-index: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #6C7689;
  opacity: 0.5;
  content: '';
}
div#wrapper section#rightCol .block .mainBox header .row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
}
div#wrapper section#rightCol .block .mainBox header .row .large {
  font-size: 1.6em;
  line-height: 1em;
}
div#wrapper section#rightCol .block .mainBox header .row p {
  display: flex;
  flex-wrap: wrap; /* four tags (F92) do not fit the card's width */
}
div#wrapper section#rightCol .block .mainBox header .row span {
  line-height: 1em;
  color: #ffffff;
  padding: 0.3em 0.6em 0.4em 0.6em;
  margin-right: 0.3em;
  margin-bottom: 0.3em;
  border-radius: 1.2em;
  background-color: rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}
div#wrapper section#rightCol .block .mainBox header .row span.violet {
  background-color: #EB2246;
}
div#wrapper section#rightCol .block .mainBox header .row span.dark {
  color: #0f1217;
  background-color: #babfcb;
}
div#wrapper section#rightCol .block .mainBox header .row span.red {
  background-color: #ff000E;
}
div#wrapper section#rightCol .block .mainBox header .row span.yellow {
  color: #0f1217;
  background-color: #ffc400;
}

div#wrapper section#rightCol .block .mainBox header .row span.blue {
  background-color: #15386d; /* #0066FF; */
}
div#wrapper section#rightCol .block .mainBox header .row span.green {
  background-color: #00F61D;
  color: #000;
}
div#wrapper section#rightCol .block .mainBox header .row span:last-child {
  margin-right: 0;
}
div#wrapper section#rightCol .block .mainBox header .row img {
  max-height: 2.5em;
  opacity: 0;
}
div#wrapper section#rightCol .block .mainBox header .row h3 {
  font-size: 1em;
  font-family: "Open Sans Bold";
}
div#wrapper section#rightCol .block .mainBox footer {
  border-radius: 0 0 1em 1em;
  background: #6C7689;
  padding: 0.8em 1em;
  width: 22em;
  border: solid 0.3em #0f1217;
  border-width: 0 0.3em 0.3em 0.3em;
}
div#wrapper section#rightCol .block.open {
  background-color: #002530; /* #0066FF; */
}
div#wrapper section#rightCol .block.open header {
  border: solid 0.3em #002530; /* #0066FF; */
}
div#wrapper section#rightCol .block.open header::before {
  border-radius: 0.7em 0.7em 0 0;
}
div#wrapper section#rightCol .block.open footer {
  background-color: #002a6a; /* #0066FF; */
  border-color: #002a6a; /* #0066FF; */
}
div#wrapper section#rightCol .block.open .player {
  display: block;
}
div#wrapper section#rightCol #switchr {
  position: fixed;
  padding: 0.8em 0.8em 0.8em 1.5em;
  right: 0.5em;
  top: 0;
  z-index: 999;
  display: flex;
  align-content: stretch;
  margin-bottom: 1em;
  width: 23.0em;
  background-color: #0f1217;
  pointer-events: all;
}
div#wrapper section#rightCol #switchr button {
  flex-grow: 2;
}
div#wrapper section#rightCol #switchr button {
  font-size: 1em;
  line-height: 1em;
  font-family: "Open Sans Bold";
  font-size: 1.2em;
  padding: 0.3em 1em 0.4em 1em;
  border-radius: 1.2em;
  text-transform: uppercase;
  background: #0f1217;
  color: #6C7689;
  border: solid 0.1em #6C7689;
  cursor: pointer; 
}
div#wrapper section#rightCol #switchr button:first-child {
  margin-right: 0.5em;
}
div#wrapper section#rightCol #switchr button.active {
  background: #DFE6F5;
  color: #0f1217;
  border: solid 0.1em #DFE6F5;
}
button {
  text-transform: uppercase;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Old versions of Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
   supported by Chrome, Edge, Opera and Firefox */
}
button.icobutton {
  line-height: 1em;
  font-family: "Open Sans Bold";
  font-size: 1.2em;
  padding: 0.3em 1em 0.4em 1em;
  border-radius: 1.2em;
  background: #DFE6F5;
  display: flex;
  color: #0066FF;
  flex-grow: 0;
  margin-top: 0.5em;
  font-size: 1em;
  border-width: 0;
  padding: 0 0.8em 0 0;
  align-items: center;
  min-width: 7.5em;
  position: relative;
}
button.icobutton span {
  background: #6C7689;
  padding: 0.3em 0.3em 0.4em 0.3em;
  border-radius: 1.2em;
  margin-right: 0.5em;
  z-index: 1;
}
button.icobutton.friendly span {
  background-color: #00F61D;
}
button.icobutton.jam span {
  background-color: #ff000E;
}
button.icobutton.alert span {
  background-color: #ffd000;
}
button.icobutton.sendteam span {
  background-color: #0f1217;
  color: #ddd;
}
button.icobutton.attack span {
  background-color: #ff000E;
}
button.icobutton.unfriendly span {
  background-color: rgb(228, 0, 255);
}
button.icobutton.disabled {
	opacity: 0.5!important;
	cursor: not-allowed!important;
}
button.icobutton.disabled:not(.findPilot) {
	background: #ddd!important;
	color: #333!important;
}
button.icobutton.disabled:not(.findPilot) span {
	color: #ddd!important;
	background: #333!important;
}
button.icobutton.jam span {
    position: relative;
}

button.icobutton .j-freq {
    margin-left: 0.5em;
}

button.icobutton.disabled .j-freq {
	display: none;
}

button.icobutton .j-freq span {
	background: none;
	padding: 0;
	margin: 0;
}

button.icobutton .j-freq span:not(.freq) {
	color: #f00;
}

.markers .violet {
  background-color: rgb(228, 0, 255)!important;
}

.markers .red {
  background-color: #ff000E!important;
}

.markers .yellow {
  background-color: #ffd000!important;
  color: #EB2246!important;
}

.markers .green {
  background-color: #00F61D!important;
}

.markers .blue {
  background-color: #0066FF!important;
}

.markers .gray {
  background-color: #6c757d!important;
  color: #ffffff!important;
}

/* Remote ID (F92): the same blue as its line on the map (COLORS.remote, R5) */
.markers .remoteid {
  background-color: #3B9DFF!important;
  color: #ffffff!important;
}

.markers .acoustic {
  background-color: #A66BFF!important;
  color: #ffffff!important;
}

.markers .threatdark {
	background-color: #343a40!important;
	color: #ddd!important;
}

dot {
  z-index: 1;
  border-radius: 0.3em;
  width: 0.6em;
  height: 0.6em;
  position: absolute;
  background-color: #00F61D;
  margin-left: -0.3em;
  margin-top: -0.3em;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
dot halo {
  color: inherit;
  border-radius: 50%;
  position: absolute;
  background: transparent;
  pointer-events: none;
  width: 0.6em;
  height: 0.6em;
}
dot.red {
  background: #ff000E;
}
dot.red halo {
  color: rgba(255, 0, 14, 0.25);
}
dot.blue {
  background: #0066FF;
}
dot.blue halo {
  color: rgba(0, 102, 255, 0.25);
}
dot.green {
  background: #00F61D;
}
dot.green halo {
  color: rgba(0, 246, 29, 0.25);
}
dot.violet {
  background: rgb(228, 0, 255);
}
dot.violet halo {
  color: rgba(228, 0, 255, 0.25);
}
rect {
  z-index: 1;
  border: solid 1px #208639;
  background: rgba(32, 134, 57, 0.2);
  position: absolute;
}
rect span {
  position: absolute;
  bottom: 0.5em;
  left: 0.5em;
  color: #208639;
  font-family: "Open Sans Bold";
}
rect p {
  margin: 0;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  position: absolute;
  font-family: "Open Sans Bold";
  left: 50%;
  top: 50%;
  background: #EB2246;
  color: #5B0C64;
  padding: 0 0.5em;
  border-radius: 0.3em;
}
rect.green {
  border-color: rgba(0, 246, 29, 0.5);
  background: rgba(0, 246, 29, 0.2);
}
rect.green span {
  color: #00F61D;
}
rect.red {
  border-color: rgba(255, 0, 14, 0.5);
  background: rgba(255, 0, 14, 0.2);
}
rect.red span {
  color: #ff000E;
}
rect.blue {
  border-color: rgba(0, 102, 255, 0.6);
  background: rgba(0, 102, 255, 0.25);
}
rect.blue span {
  color: #0066FF;
}
rect.violet {
  border-color: rgba(228, 0, 255, 0.6);
  background: rgba(228, 0, 255, 0.25);
}
rect.violet span {
  color: #0066FF;
}

#bigVideoBox:empty {
	display: none;
}

   

#main {
    padding: 0!important;
}

.leftCol.second {
    padding-left: 0!important;
}

#map {
    position: fixed;
}

.area-name {
       border: none;
       background: none;
       box-shadow: none;
       color: #00FFC2;
       text-shadow: 1px 1px #555;
       text-transform: uppercase;
       font-size: 18px;
       font-weight: 700;
}

.area-name.threat {
	color: #FF00FF;
}

.area-name.sector {
        border: none;
        background: none;
        box-shadow: none;
        color: #00F61D;
        text-transform: uppercase;
        font-size: 28px;
        font-weight: 600;
}
.area-name.sector.threat {
        color: #FF000E;
}

  .threat-counter {
       background-color: #EB2246;
       padding: 0 10px;
       border-radius: 4px;
       /*
       color: #5B0C64;
       text-shadow: 1px 1px #fff;
       */
       color: #fff;
       text-shadow: 1px 1px #5B0C64;
       border: none;
       font-size: 28px;
       font-weight: 700;
  }

.threat-label {
      /* border: none;
      background: none;
      box-shadow: none;*/
      color: #000;
      text-shadow: 1px 1px #FFF;
      text-transform: uppercase;
      font-size: 14px;
      font-weight: 500;
}

#rightCol {
    min-width: 21.6em;
}

div#wrapper {
    height: 100% !important;
    background: none !important;
}

button.icobutton.green span {
       background-color: #00f61d;
   }

   button.icobutton.red span {
       background-color: #ff000e;
   }

   /* a silent device (R12 3h): it stopped talking */
   button.icobutton.yellow span {
       background-color: #ffc400;
   }

    div#wrapper section#rightCol.expanded .sensorsGroup.block.open {
        background: #002a6a;/* #0066FF; */
        width: 22em;
    }

    #wrapper #map-controls {
        position: absolute;
        left: 8em;
        bottom: 4em;
        z-index: 1;
    }

    #wrapper #map-controls button {
      font-size: 1em;
      line-height: 1em;
      font-family: "Open Sans Bold";
      font-size: 1.2em;
      padding: 0.3em 1em 0.4em 1em;
      border-radius: 1.2em;
      text-transform: uppercase;
      background: #0f1217;
      color: #6C7689;
      border: solid 0.1em #6C7689;
      min-width: 300px;
      margin-right: 0.5em;
    }

    #wrapper #map-controls button.active {
      background: #DFE6F5;
      color: #0f1217;
      border: solid 0.1em #DFE6F5;
    }

    .icobutton {
        cursor: pointer;
    }

    div#wrapper section#main #videoWrapper #bigVideoBox {
	    height: auto;
	    max-height: 100%;
		width: 100%;
	    margin: 0;
	    position: absolute;
	    top: 50%;
	    -ms-transform: translateY(-50%);
	    transform: translateY(-50%);
    }

    .block {
        cursor: pointer;
    }

    .invisible {
        height: 0!important;
        opacity: 0!important;
        margin-bottom: 0!important;
    }
    
    #rightCol.hide-objects .block.objectsGroup {
        display: none!important;
    }
    #rightCol.hide-sensors .block.sensorsGroup {
        display: none!important;
    }
    #rightCol.hide-objects .rawPresenceList {
        display: none!important;
    }

    /* "Detected nearby, no fix" section -- sensor-only presence hits (single-sensor
       RF bearing, DroneID) with no real position. Kept visually muted and separate
       from the real, positioned drone cards above it. See RAW_SIDEBAR_ENABLED. */
    div#wrapper section#rightCol .rawPresenceList {
        width: 22em;
        margin-top: 0.5em;
        padding-top: 0.7em;
      border-top: 1px dashed rgba(255, 211, 54, 0.75);
    }
    div#wrapper section#rightCol .rawPresenceList .rawPresenceHeader {
      color: #ffd336;
        font-size: 0.7em;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin: 0 0 0.5em 0.3em;
    }
    div#wrapper section#rightCol .rawPresenceStack {
        display: flex;
        flex-direction: column-reverse;
    }
    div#wrapper section#rightCol .rawPresenceRow {
        display: flex;
        flex-direction: column;
        gap: 0.5em;
        background-color: #302c17;
        color: #f1e4a3;
        font-size: 0.85em;
        border-radius: 1em;
        border: 1px solid rgba(255, 211, 54, 0.8);
        box-shadow: 0 0 0 1px rgba(255, 211, 54, 0.15), 0 0 0.7em rgba(255, 211, 54, 0.2);
        padding: 0.7em 1em;
        margin-bottom: 0.6em;
        transition: opacity 0.2s linear;
    }
      div#wrapper section#rightCol .rawPresenceRowHeader {
        display: flex;
        align-items: center;
        gap: 0.5em;
      }
      div#wrapper section#rightCol .rawPresenceTitle {
        margin: 0;
        font-size: 1em;
        font-weight: 600;
        color: #fff2a8;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      div#wrapper section#rightCol .rawPresenceProb {
        background: rgba(255, 211, 54, 0.2);
        border-radius: 1.2em;
        padding: 0.15em 0.6em;
        font-size: 0.8em;
        flex: 0 0 auto;
      }
      div#wrapper section#rightCol .rawPresenceBody {
        display: flex;
        flex-direction: column;
        gap: 0.2em;
      }
      div#wrapper section#rightCol .rawPresenceBody p {
        margin: 0;
        color: #f1e4a3;
      }
    div#wrapper section#rightCol .rawPresenceDot {
        width: 0.6em;
        height: 0.6em;
        border-radius: 50%;
        background-color: #ffd336;
        box-shadow: 0 0 0.45em rgba(255, 211, 54, 0.8);
        flex: 0 0 auto;
    }
    div#wrapper section#rightCol .rawPresenceDot.rawPresenceDot--remote {
        background-color: #3B9DFF;
        box-shadow: 0 0 0.45em rgba(59, 157, 255, 0.8);
    }
    div#wrapper section#rightCol .rawPresenceDot.rawPresenceDot--acoustic {
        background-color: #A66BFF;
        box-shadow: 0 0 0.45em rgba(166, 107, 255, 0.8);
    }

	.block.hardlink {
		position: absolute!important;
	}
	
	.block.hardlink:nth-child(1) {
		top: 1em!important;
	}
	
	.block.hardlink:nth-child(2) {
		top: 6em!important;
	}

	.block.hardlink:nth-child(3) {
		top: 11.75em!important;
	}

	.block.hardlink:nth-child(4) {
		top: 17.5em!important;
	}
	
	.block.hardlink.logout {
		top: initial !important;
    	bottom: 1em !important;
	}

	.block.hardlink .link {
	    display: flex;
	    /* align-items: center!important; */
	    /* justify-content: center; */
	    height: 100%;
	}

    .block.hardlink .link a {
    	font-size: 80%; /* Adjust font size as needed */
		color: #fff;
        text-align: center;
        text-decoration: none;
    }

    .videoTitle {
	    position: absolute;
	    z-index: 2;
	    left: 30px;
	    top: 1.5em;
	    padding: 0 2em;
    	background-color: rgba(15, 18, 23, 0.7);
    	backdrop-filter: blur(2px);
    	border-radius: 0.8em;
    }
    
    .videoControls {
		position: absolute;
	    z-index: 2;
	    left: 30px;
	    bottom: 1.5em;
	    padding: 0.8em;
	    background-color: rgba(15, 18, 23, 0.7);
	    backdrop-filter: blur(2px);
	    border-radius: 0.8em;
	    font-size: 20px;
	    font-weight: 700;
	    display: flex;
	    flex-direction: row;
	    align-items: center;
	    gap: 6px;
    }
    
    .videoControls table td {
    	width: 30px;
    	height: 30px;
    	text-align: center;
    	padding: 0 0 2px 0;
    	border: 0;
    }
    
    .videoControls table td.thin {
    	width: 10px;
    }
    
    .videoControls table td.black {
    	background-color: rgba(0,0,0,1);
    	cursor: pointer;
    }

    .videoControls table.override td {
    	width: auto;
    	white-space: nowrap;
    	padding: 2px 8px;
    }

    .videoControls table.override td:has(.droneIcon) {
    	padding: 0;
    	width: 40px;
    }

    .videoControls table.reset-controls td {
    	font-size: 18px;
    	opacity: 0.6;
    }

    .videoControls table.reset-controls td:hover {
    	opacity: 1;
    }

    .videoControls table.cam-controls td {
    	width: auto;
    	white-space: nowrap;
    	padding: 2px 6px;
    }

    .videoControls table.cam-controls select.camPicker {
    	background-color: rgba(0,0,0,1);
    	color: white;
    	border: none;
    	padding: 2px 4px;
    	font-size: 13px;
    	font-weight: 700;
    	cursor: pointer;
    	max-width: 130px;
    }

    .videoControls table.cam-controls .camLockBtn.cam-locked {
    	background-color: rgba(255, 160, 0, 0.9);
    }

    .videoControls table.cam-controls .preAimBtn.active {
    	background-color: rgba(0, 190, 90, 0.9);
    }
    
    #notification-container {
      position: fixed;
      top: 15px;
      left: 50%;
      transform: translateX(-50%);
      width: auto;
      max-width: 90%;
      z-index: 10000;
    }

    .notification-message {
      background-color: #eb2246;
      color: white;
      padding: 12px 15px 20px 40px; /* Extra bottom padding for progress bar */
      border-radius: 6px;
      box-shadow: 0 3px 10px rgba(0,0,0,0.3);
      position: relative;
      font-size: 20px;
      min-width: 300px;
      max-width: 500px;
      text-align: center;
      margin: 0 auto;
    }
    
    .notification-content {
      margin-right: 10px;
      font-weight: 500;
      display: inline-block;
    }
    
    .notification-close {
      position: absolute;
      top: 50%;
      left: 10px;
      transform: translateY(-50%);
      background: transparent;
      border: none;
      color: white;
      font-size: 20px;
      cursor: pointer;
      padding: 0;
      width: 24px;
      height: 24px;
      line-height: 24px;
      text-align: center;
    }

    /* Progress bar styling */
    .notification-message::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      height: 4px;
      width: 100%;
      background-color: rgba(255, 255, 255, 0.4);
      border-radius: 0 0 6px 6px;
    }
    
    .notification-progress {
      position: absolute;
      bottom: 0;
      right: 0;
      height: 4px;
      width: 100%;
      background-color: white;
      transform-origin: right;
      border-radius: 0 0 6px 6px;
    }

    /* Animation for the progress bar */
    @keyframes countdown {
      from { transform: scaleX(1); }
      to { transform: scaleX(0); }
    }
    
    
    
    
    
    .droneIcon {
    	margin-top: 10px;
    	width: 40px;
    	height: 40px;
    }
    
    
	
	
	
	
	
	

	

.block.hardlink.ico div span {
	position: absolute!important;
    margin: auto 0.5em!important;
    color: #5B0C64!important;
    padding: 0 0.5em!important;
    border-radius: 0.3em!important;
    background: transparent!important;
}

.block.hardlink.ico div img {
	width: 2em;
}

/* Hide history overlay by default */

/* Height graph container styling */
.height-graph-container {
  position: fixed;
  max-width: 300px;
  width: 100%;
  height: auto;
  pointer-events: auto; /* Changed from none to auto */
  bottom: 10px !important;
  right: 10px !important;
  z-index: 900;
  display: none; /* Hidden by default */
  background-color: rgba(15, 18, 23, 0.7); /* Add background like other panels */
  backdrop-filter: blur(2px);
  border-radius: 0.8em;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  padding: 0.8em;
}

.height-graph-container * {
  pointer-events: auto; /* Ensure all children also block events */
}

/* Main container for actual canvas elements */
.height-graph-wrapper {
  position: relative;
  width: 100%;
  height: 150px; /* Fixed height to ensure proper stacking */
}

/* Style for both canvases - base is fixed size, contained in wrapper */
.height-graph-container canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: block;
}

/* Base canvas specific styling */
#heightGraphBase {
  z-index: 1;
}

/* Crosshair canvas specific styling */
#heightGraphCrosshair {
  z-index: 2;
  pointer-events: none; /* Let clicks pass through to base canvas */
}

/* Ensure message panel uses consistent styling */

.icobutton .timer {
	width: 20%;
    height: 100%;
    position: absolute;
    background-color: #f30c19;
    margin: 0;
    border-radius: 1em;
}

.icobutton b {
	position: relative;
}

button:disabled,
a:disabled {
	opacity: 0.5!important;
    cursor: not-allowed!important;
}

td.center,
th.center {
	text-align: center;
}
.ctrl {
	display: none;
	pointer-events: none;
	position: fixed;
	z-index: 200;
	right: 57em;
	bottom: 5em;
	background-color: rgba(15, 18, 23, 0.7);
	border-radius: 1em;
	padding: 1em;
	height: 30em;
	width: 32em;
	color: #fff;
	backdrop-filter: blur(2px);
}

.ctrl.jamming {
	background-color: rgba(237, 20, 61, 0.5);
}

.ctrl button {
	pointer-events: all;
	font-size: 1em;
    line-height: 1em;
    font-family: "Open Sans Bold";
    font-size: 1.2em;
    padding: 0.3em 1em 0.4em 1em;
    border-radius: 1.2em;
    text-transform: uppercase;
	background: #0f1217;
    color: #DFE6F5;
    border: solid 0.1em #0f1217;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2em;
}

.ctrl button.mt {
	margin-top: 1em!important;
}

.ctrl button.active {
	background: #DFE6F5;
    color: #0f1217;
    border: solid 0.1em #0f1217;
}

.ctrl button.large {
	width: 100%;
	font-size: 1.25em;
	padding: 0.6em 2em 0.8em 2em;
	background: #DFE6F5;
    color: #0f1217;
    border: solid 0.1em #0f1217;
    margin-top: 2px;
}

.ctrl button.startJamming {
	background-color: #ed143d;
	color: #fff;	
}

div#wrapper section#main .global-buttons {
	pointer-events: none;
	position: fixed;
	z-index: 3;
	left: 8em;
	top: 12em;
	padding: 1em;
}

.global-buttons .btnJammer {
	pointer-events: all;
    font-family: "Open Sans Bold";
    font-size: 1.5em;
    padding: 0.3em 1em 0.4em 1em;
    border-radius: 1.2em;
    text-transform: uppercase;
    border: solid 0.1em #0f1217;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.5em;
	background-color: #ed143d;
	color: #fff;	
}

.mainBox {
  position: relative;
  display: flex;
  flex-direction: column;
}

.mainBox header {
  position: relative;
  z-index: 2;  /* Keep header above footer */
}

.mainBox footer {
  border-radius: 0 0 0.3em 0.3em;  /* Smaller radius at bottom since button will be there */
  background: #6C7689;
  padding: 1em;
  margin-bottom: 2em;  /* Make room for the button */
}

.mainFooterInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.extraDroneDetails {
  display: none;
  background: inherit;
}

.coordinates-box {
  margin: 4px 0;
  padding: 4px 4px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  cursor: copy;
  transition: background-color 0.2s;
  position: relative;
  pointer-events: auto;
}

.coordinates-box:hover {
  background: rgba(0,0,0,0.3);
}

.coord-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-icon {
  opacity: 0.7;
  transition: opacity 0.2s;
  margin-left: auto; /* Push icon to far right */
}

.coordinates-box:hover .copy-icon {
  opacity: 1;
}

.showMoreBtn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 2.5em;
  background: transparent;
  border: none;
  border-radius: 0 0 1em 1em;
  color: inherit;
  cursor: pointer;
  padding: 0.5em 0;
  font-size: 0.9em;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  pointer-events: auto;
  transition: background-color 0.2s;
}

.showMoreBtn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.showMoreBtn img {
  transition: transform 0.2s;
  width: calc(18px + 0.3vw);
  height: calc(18px + 0.3vw);
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
  pointer-events: none;
}

/* Adjust container to prevent overlapping */
.block.objectsGroup .mainBox footer {
  padding-bottom: 2.5em;
}

.showMoreBtn.open img {
  transform: rotate(180deg);
}

/* Update the mainBox footer margin rule */
.block.objectsGroup .mainBox footer {
  border-radius: 0 0 0.3em 0.3em;
  background: #6C7689;
  padding: 1em;
  margin-bottom: 2em; /* Only add margin for drone objects */
}

/* For sensors, don't add the extra margin */
.block.sensorsGroup .mainBox footer {
  border-radius: 0 0 0.3em 0.3em;
  background: #6C7689;
  padding: 1em;
  margin-bottom: 0;
}

/* a device whose own clock is off (R25): quiet, the warning in its tooltip */
button.icobutton.deviceStatus span.deviceClock {
  align-self: center;
  margin: 0 0 0 0.5em;
  padding: 0.1em 0.5em;
  border: 1px solid #8a92a3;
  border-radius: 1.2em;
  background-color: transparent;
  color: #5a6170;
  font-size: 0.75em;
  white-space: nowrap;
}

/* current alarm of an acoustic device, after its name (beats button.icobutton.green span) */
button.icobutton.deviceStatus span.deviceAlarm {
  align-self: center;
  margin: 0 0 0 0.5em;
  padding: 0.2em 0.6em;
  border-radius: 1.2em;
  background-color: #A66BFF;
  color: #ffffff;
  font-size: 0.8em;
  white-space: nowrap;
}

.deviceStatus.highlighted {
  background-color: #929090 !important;
  color: white !important;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(1px);
}

.leftCol .sectorDisplay {
	overflow-y: overlay;
    overflow-x: hidden;
    top: 12.5em;
    position: absolute;
    height: calc(100% - 19em);
    padding-right: 3px;
}

    /* Webkit-based browsers */
    .leftCol .sectorDisplay::-webkit-scrollbar {
      width: 4px;
    }
    .leftCol .sectorDisplay::-webkit-scrollbar-track {
      background: #0f1217;
      border-radius: 5px;
    }
    .leftCol .sectorDisplay::-webkit-scrollbar-thumb {
      background: #000;
      border-radius: 5px;
    }
    .leftCol .sectorDisplay::-webkit-scrollbar-thumb:hover {
      background: #555;
    }
	.leftCol .sectorDisplay {
      scrollbar-width: thin;
      scrollbar-color: rgba(100, 111, 138, 0.2) #0f1217;
    }

    #reportLink a {
      font-size: 0.65em;
      letter-spacing: -0.01em;
  }
  
  /* Main detections section layout */
  section#detections {
    position: absolute;
    background-color: #343a46 !important;
    padding: 0 !important;
    color: #ffffff !important;
    margin-left: 6.5em !important;
    z-index: 14;
    height: calc(100%);
    min-height: 50%;
    width: calc(45%);
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
  }
  
  /* Filter panel - Fixed below header */
  .detections-filter-panel {
    background-color: #1a1e24;
    border-radius: 0.5em;
    margin: 1em 1em 1em 1em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    /* Prevent filter from shrinking */
  }
  
  .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em 1em;
    cursor: pointer;
    background-color: #232830;
    border-radius: 0.5em;
  }
  
  .filter-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: #DFE6F5;
    font-family: "Open Sans Bold";
  }
  
  .chevron-container {
    display: flex;
    align-items: center;
  }
  
  .filter-toggle-icon {
    width: 24px;
    height: 24px;
    filter: brightness(2);
  }
  
  /* Filter content container */
  .filter-content {
    padding: 1em;
    border-top: 1px solid #2a2f36;
  }
  
  /* Search box at the top */
  .filter-search-row {
    margin-bottom: 1.2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #2a2f36;
    box-sizing: border-box;
  }
  
  /* Filter columns layout */
  .filter-columns {
    display: flex;
    gap: 1.5em;
    margin-bottom: 1.2em;
  }
  
  /* Radio button groups */
  .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 0.5em;
  }
  
  /* Hide the actual radio input */
  .radio-group input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
  }
  
  /* Style the label as a button */
  .radio-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #232830;
    border: 1px solid #3a3f48;
    border-radius: 4px;
    padding: 0.4em 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  /* Style for the text inside button */
  .radio-label span {
    color: #9aa0ac;
    font-size: 0.9em;
  }
  
  /* Selected state styling */
  .radio-group input[type="radio"]:checked+span {
    color: #DFE6F5;
  }
  
  .radio-group input[type="radio"]:checked~.radio-label {
    border-color: #15386d;
  }
  
  .radio-group input[type="radio"]:checked {
    background-color: #15386d;
  }
  
  /* Style the selected button */
  .radio-label.selected {
    background-color: #15386d;
    border-color: #15386d;
  }
  
  .radio-label.selected span {
    color: #DFE6F5;
  }
  
  /* Hover state for buttons */
  .radio-label:hover {
    background-color: #2a303a;
  }
  
  /* Custom radio button */
  .custom-radio {
    position: relative;
    width: auto;
    min-width: 60px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    flex-direction: row !important;
    /* Force horizontal layout */
    flex-wrap: nowrap !important;
    /* Prevent wrapping */
    background-color: #232830;
    border: 1px solid #3a3f48;
    border-radius: 4px;
    padding: 0.4em 0.8em;
  }
  
  /* Fix positioning of main label text */
  .custom-radio>span:first-of-type {
    position: relative;
    z-index: 2;
    color: #9aa0ac;
    font-size: 0.9em;
  }
  
  /* Hide number input and unit when not selected */
  .custom-radio input[type="number"],
  .custom-radio .unit {
    position: absolute;
    width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    flex: 0 0 auto;
    z-index: 1;
  }
  
  /* Different animations for input and unit */
  .custom-radio input[type="number"] {
    transition: all 0.2s ease;
  }
  
  .custom-radio .unit {
    transition: opacity 0.01 ease;
    /* Faster fade out for unit */
  }
  
  /* Show input and unit when selected */
  .custom-radio.selected {
    width: auto;
  }
  
  .custom-radio.selected input[type="number"] {
    position: relative;
    right: 0;
    width: 80px;
    opacity: 1;
    margin-left: 5px;
    margin-right: 2px;
    padding: 0.3em;
    height: 25px;
    display: inline-block;
    border: 0.1em solid #3a3f48;
    border-radius: 3px;
    background: transparent;
    color: #c0c6d3;
  }
  
  /* Show unit when selected */
  .custom-radio.selected .unit {
    position: relative;
    right: 0;
    opacity: 1;
    width: auto;
    margin-left: 2px;
  }
  
  /* Date range inputs */
  .date-input {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #3a3f48;
    border-radius: 4px;
    background-color: #232830;
    color: #DFE6F5;
    margin-bottom: 0.5em;
    box-sizing: border-box;
  }
  
  .date-range-separator {
    display: block;
    text-align: center;
    color: #9aa0ac;
    margin: 0.25em 0;
  }
  
  /* Custom altitude input */
  
  
  .filter-column {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    /* Force equal width columns */
  }
  
  /* Filter groups */
  .filter-group {
    margin-bottom: 1em;
  }
  
  .filter-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #DFE6F5;
  }
  
  /* Form elements */
  .filter-group select,
  .filter-group input,
  .filter-search-container input,
  .filter-group input[type="datetime-local"],
  .filter-group .date-input {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #3a3f48;
    border-radius: 4px;
    background-color: #232830;
    color: #DFE6F5;
    font-size: 1em;
    box-sizing: border-box;
    max-width: none;
    display: block;
  }
  
  .filter-search-container {
    box-sizing: border-box;
    display: flex;
  }
  
  
  /* Custom inputs */
  

/* Filter select dropdown styling with SVG arrow */
.filter-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #232830;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: white;
  position: relative;
  padding: 6px 8px;
  padding-right: 28px; /* Space for the arrow */
  transition: background-color 0.2s;
  background-image: url('../gfx/chevron-down-svgrepo-white.svg');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}

/* Add hover and focus states for consistency */
.filter-select:hover {
  background-color: #2a303a;
}

.filter-select:focus {
  outline: none;
  border-color: #3c74d4;
}

/* When dropdown is open (focused) - show up arrow */
.filter-select:focus {
  background-image: url('../gfx/chevron-up-svgrepo-white.svg');
}

  /* Action buttons container */
  .filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8em;
  }
  
  .btn-reset {
    background-color: transparent;
    color: #9aa0ac;
    border: 1px solid #3a3f48;
    border-radius: 4px;
    padding: 0.5em 1em;
    cursor: pointer;
  }
  
  .btn-search {
    background-color: #15386d;
    color: #DFE6F5;
    border: 1px solid #15386d;
    border-radius: 4px;
    padding: 0.5em 1em;
    font-weight: bold;
    cursor: pointer;
  }
  
  /* Filter footer styling */
  .filter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1em;
    border-top: 1px solid #2a2f36;
  }
  
  /* Counter styling */
  .filter-counter {
    color: #9aa0ac;
    font-size: 0.9em;
  }
  
  .filter-counter span {
    color: #DFE6F5;
    font-weight: bold;
  }
  
/* Container for the entire list component*/
.detections-list-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 1em 1em 1em;
  background: #1a1e24;
  border-radius: 0.5em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

  /* Checkbox column styling */
.list-header-checkbox,
.checkbox-column {
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 1px solid #2a2f36;
}

/* Custom checkbox styling */
.checkbox-column input[type="checkbox"],
.list-header-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #232830;
  border: 1px solid #3a3f48;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  margin: 0;
}

.checkbox-column input[type="checkbox"]:checked,
.list-header-checkbox input[type="checkbox"]:checked {
  background-color: #15386d;
  border-color: #15386d;
}

.checkbox-column input[type="checkbox"]:checked::after,
.list-header-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Hover state */
.checkbox-column input[type="checkbox"]:hover,
.list-header-checkbox input[type="checkbox"]:hover {
  border-color: #15386d;
}

/* Disabled state for checkboxes */
.checkbox-column input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading spinner */
.detections-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em;
  color: #DFE6F5;
}

.loading-spinner {
  border: 3px solid #3a3f48;
  border-top: 3px solid #15386d;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin-bottom: 1em;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.incident-row, .detections-list-header {
  display: grid;
  grid-template-columns: 0.1fr 1.8fr 1fr 0.5fr; /* Column ratio */
  column-gap: 0;
  width: 100%;
  box-sizing: border-box;
  border-collapse: collapse;
}

/* Basic list styling without affecting buttons */
.incident-row {
  border-bottom: 1px solid #2a2f36;
  background-color: transparent;
  transition: background-color 0.2s;
}

.incident-row:hover {
  background-color: #2a303a;
  cursor: pointer;
}

.incident-row.selected {
  background-color: #15386d !important;
}

.incident-row > div {
  padding: 0.8em;
  border-right: 1px solid #2a2f36;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.incident-row > div:last-child {
  border-right: none;
}

/* Header - fixed at top */
.detections-list-header {
  flex: 0 0 auto;
  background: #232830;
  border-bottom: 2px solid #3a3f48;
  z-index: 10;
  position: relative;
}

/* Scrollable body - the only element that scrolls */
.detections-list-body {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  position: relative;
}

/* Footer layout with 3 sections */
.detections-list-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #232830;
  border-top: 1px solid #3a3f48;
  padding: 0.5em 1em;
  color: #9aa0ac;
  font-size: 0.9em;
  z-index: 10;
  position: relative;
}

.list-footer-auto-refresh {
  flex: 0 0 160px; /* Fixed width */
  display: flex;
  align-items: center;
}

.auto-refresh-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #232830;
  border: 1px solid #3a3f48;
  border-radius: 3px;
  margin-right: 8px;
  cursor: pointer;
  position: relative;
}

.auto-refresh-checkbox:checked {
  background-color: #15386d;
  border-color: #15386d;
}

.auto-refresh-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auto-refresh-label {
  cursor: pointer;
  user-select: none;
  white-space: nowrap; /* Prevent wrapping */
}

.list-footer-counter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #9aa0ac;
  width: auto;
  white-space: nowrap;
}

.list-footer-counter span {
  color: #DFE6F5;
  font-weight: bold;
}

.list-footer-actions {
  flex: 0 0 160px;
  text-align: right;
}

.btn-refresh {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  margin-left: auto;
}

.btn-refresh img {
  width: 1.4em;
  height: 1.4em;
}

.btn-refresh.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Animation for refresh icon */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-refresh.spinning img {
  animation: spin 0.8s linear 1;
}

.detections-list-header > div {
  padding: 0.8em;
  font-weight: bold;
  color: #DFE6F5;
  border-right: 1px solid #2a2f36;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detections-list-header > div:last-child {
  border-right: none;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3em 1em;
  color: #9aa0ac;
  text-align: center;
}

/* the next page of the list (100 flights a page) */
.btn-more {
  display: block;
  width: calc(100% - 2em);
  margin: 1em;
  padding: 0.6em;
  background: transparent;
  border: 1px solid #2a2f36;
  color: #DFE6F5;
  cursor: pointer;
}

.btn-more:hover {
  background: #2a2f36;
}

.btn-more.disabled {
  opacity: 0.5;
  cursor: wait;
}

.incident-row .action-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.incident-row button.btn-view {
  width: 90%;
  padding: 0.1em 0.1em;
  text-align: center;
  font-size: 1em;
  white-space: nowrap;
}

.btn-view.spinning {
  position: relative;
  color: transparent !important;
}

.btn-view.spinning:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1em;
  height: 1em;
  margin-left: -0.55em;
  margin-top: -0.55em;
  border: 2px solid #252424;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.btn-view.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

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

/* Drone identification column */
.drone-info-column {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  padding: 0.8em;
  border-right: 1px solid #2a2f36;
}

.drone-id {
  font-family: monospace;
  font-weight: bold;
  user-select: text;
  cursor: pointer;
  word-break: break-all;
  display: inline-block;
  padding: 0.25em 0.4em;
  border: 1px solid transparent;
  border-radius: 3px;
  background-color: rgba(21, 56, 109, 0.1);
  position: relative;
  transition: background-color 0.2s ease;
}

.drone-id::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url('../gfx/search-svgrepo-white.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.5;
  margin-left: 5px;
  vertical-align: middle;
  transform: rotate(90deg);
}

.drone-id:hover {
  background-color: rgba(80, 90, 110, 0.3);
  border-color: rgba(100, 110, 130, 0.5);
}

.drone-id:active {
  background-color: rgba(60, 70, 90, 0.4);
}

.drone-name {
  font-size: 0.9em;
  color: #c8cace;
  margin-top: 0.25em;
  user-select: text;
  cursor: text;
  padding: 0.25em 0.4em;
  display: inline-block;
  border-radius: 3px;
  position: relative;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.badge-tag {
  display: inline-block;
  padding: 0.2em 0.5em;
  border-radius: 0.25em;
  font-size: 0.8em;
  font-weight: bold;
  background: #232830;
  color: #9aa0ac;
  border: 1px solid #3a3f48;
}

/* Base badge container styles */
.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 0.5em;
}

/* Badge hover effect */
.badge-tag:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.badge-tag:active {
  transform: translateY(0);
}

/* Altitude badges - Blue variants */
.badge-tag.blue-low-badge {
  background-color: #123354;
  color: #e0f1fc;
  border: 1px solid #2a5b85;
}

.badge-tag.blue-medium-badge {
  background-color: #1a4d80;
  color: #e0f1fc;
  border: 1px solid #2a6ca5;
}

.badge-tag.blue-high-badge {
  background-color: #1a5d99;
  color: #e0f1fc;
  border: 1px solid #2a6ca5;
}

.badge-tag.blue-very-high-badge {
  background-color: #1a6bcc;
  color: #e0f1fc;
  border: 1px solid #2a7ed5;
}

/* Friendly badge - Muted green */
.badge-tag.green-badge {
  background-color: #2b5634;
  color: #d6f5d6;
  border: 1px solid #367a42;
}

/* Alert badge - Muted orange */
.badge-tag.orange-badge {
  background-color: #783d10;
  color: #ffebd0;
  border: 1px solid #9c5016;
}

/* Area badge - Gray */
.badge-tag.gray-badge {
  background-color: #3a4050;
  color: #dae0e6;
  border: 1px solid #566073;
}

/* Sensor badge - Purple */
.badge-tag.purple-badge {
  background-color: #4c2a5b;
  color: #f1e0fc;
  border: 1px solid #66368a;
}

/* Probability badge colors */
.badge-tag.prob-low-badge {
  background-color: #e6c700;
  color: #000000;
  border: 1px solid #d4b700;
}

.badge-tag.prob-medium-badge {
  background-color: #c4d600;
  color: #000000;
  border: 1px solid #b2c400;
}

.badge-tag.prob-high-badge {
  background-color: #90cc00;
  color: #000000;
  border: 1px solid #80b800;
}

.badge-tag.prob-very-high-badge {
  background-color: #5cb800;
  color: #ffffff;
  border: 1px solid #4ca600;
}

/* Active filter badges in header */
.active-filter-badges {
  display: inline-flex;
  margin-left: 10px;
  align-items: center;
}

/* Make sure filter header has proper layout */
.filter-header {
  display: flex;
  align-items: center;
}

.filter-header h2 {
  flex: 0 0 auto;
  margin-right: 10px;
}

.filter-header .chevron-container {
  margin-left: auto;
}

/* Make sure badges in header match other badges */
.filter-header .badge-tag {
  display: inline-block;
  padding: 0.2em 0.5em;
  border-radius: 0.25em;
  font-size: 0.8em;
  font-weight: bold;
  cursor: pointer;
  margin-right: 5px;
}

/* The X button styling */
.filter-header .badge-remove {
  display: inline-block;
  margin-right: 3px;
  font-weight: bold;
  cursor: pointer;
}

.filter-header .badge-remove:hover {
  opacity: 0.7;
}

/* Badge hover effect */
.filter-header .badge-tag:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.filter-header .badge-tag:active {
  transform: translateY(0);
}

/* Flight information column */
.flight-info-column {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  padding: 0.8em;
  border-right: 1px solid #2a2f36;
}

.flight-date {
  font-weight: bold;
  cursor: text;
}

.flight-time {
  margin-top: 0.25em;
  cursor: text;
}

.flight-duration {
  font-size: 0.9em;
  color: #9aa0ac;
  margin-top: 0.25em;
  cursor: text;
}

.flight-date, .flight-time, .flight-duration {
  user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  -moz-user-select: text;
  cursor: text;
}

.has-remote-indicator {
  margin-top: 0.25em;
  font-size: 0.85em;
  color: #eff3ff;
}

/* Action column */
.incident-row .action-column {
  padding: 0.8em;
  display: flex;
  justify-content: center;
  align-items: center;
}

  
  
  section#detections button,
  section#detections a.button {
    font-size: 1em;
    line-height: 1em;
    font-family: "Open Sans Bold";
    font-size: 1.2em;
    padding: 0.3em 1em 0.4em 1em;
    border-radius: 1.2em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2em;
  }
  
  /* Responsive adjustment */
  @media screen and (max-width: 992px) {
    .filter-columns {
      flex-direction: column;
      gap: 0;
    }
  
    .filter-column {
      width: 100%;
    }
  }
  
  .search-icon {
    padding: 0.4em;
    max-height: 2em;
    max-width: 2em;
    display: inline-block !important;
    transform: rotate(90deg);
  }

  /* Report section */
  .detections-report-section {
    display: none;
    background-color: #1a1e24;
    border-radius: 0.5em;
    margin: 0 1em 1em 1em;
    padding: 0.8em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    z-index: 15;
    width: calc(100% - 2em); 
    box-sizing: border-box;
  }

  .report-default, .report-confirmation {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1em;
  }

  .report-comment-container {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .report-comment-container label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #DFE6F5;
  }

  #detections-notification {
    text-align: center;
    font-weight: bold;
    color: #00F61D;
    padding: 0.5em 0;
    width: 100%;
    margin-bottom: 0.5em;
    position: relative;
    top: 0;
    display: none; /* Hidden by default */
  }

  #detections-notification.error {
    color: #ff3b30;
  }

  #detections-notification.success {
    color: #00F61D;
  }

  #report-comment, #report-comment-preview {
    width: 100%;
    height: 3.6em;
    padding: 0.6em;
    border: 1px solid #3a3f48;
    border-radius: 4px;
    background-color: #232830;
    color: #DFE6F5;
    font-family: inherit;
    resize: none;
    line-height: 1.2;
  }

  #report-comment-preview {
    opacity: 0.8;
    background-color: #1d2229;
  }

  .report-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    position: relative;
  }

  .confirmation-text {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #DFE6F5;
    text-align: right;
  }

  .report-buttons, .confirmation-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.6em;
    width: 100%;
    position: relative;
  }

  .report-btn, .cancel-btn, .btn-yes, .btn-no {
    background-color: #15386d;
    color: #DFE6F5;
    border: 1px solid #15386d;
    border-radius: 4px;
    padding: 0.6em 1.2em;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    min-width: 120px; /* Consistent width for all buttons */
    transition: all 0.2s ease;
  }

  /* Secondary button styling (cancel/no) */
  .cancel-btn, .btn-no {
    background-color: transparent;
    color: #DFE6F5;
    border: 1px solid #DFE6F5;
  }

  /* Disabled state styling */
  .report-btn.disabled, .cancel-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .report-btn.disabled {
    background-color: #6C7689;
    border-color: #6C7689;
  }

  .cancel-btn.disabled {
    color: #9aa0ac;
    border-color: #9aa0ac;
  }

  /* For smaller screens, revert to vertical layout */
  @media screen and (max-width: 768px) {
    .report-default, .report-confirmation {
      flex-direction: column;
      align-items: stretch;
    }
    
    .report-comment-container {
      max-width: 100%;
      margin-bottom: 0.5em;
    }
    
    .report-buttons, .confirmation-buttons {
      justify-content: space-between;
    }
  }

  .map-label {
    padding: 4px 8px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    border-radius: 3px;
    white-space: nowrap;
    display: inline-block;
}

.remote-marker {
  width: 10px;
  height: 10px;
  background-color: rgb(53, 154, 255);
  border: 1px solid #66b3ff;
  border-radius: 2px;
}

/* Path styling */

.remote-marker .path {
  stroke: #66b3ff;
  stroke-width: 3px;
}

/* Path label styling */

/* Media control icons with proper gray appearance and effects */
.play-icon, .pause-icon, .stop-icon {
  width: 38px;
  height: 38px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: brightness(0.7) saturate(0.8); /* Makes icons gray */
  transition: filter 0.2s, transform 0.1s;
  flex-shrink: 0;
}

/* Original icon sources */
.play-icon {
  background-image: url('../gfx/ico-play-circle.svg');
}

.pause-icon {
  background-image: url('../gfx/ico-pause-circle.svg');
}

.stop-icon {
  background-image: url('../gfx/ico-stop-circle.svg');
}

/* Fixed playback button and icon styling */
.playback-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 0;
  overflow: hidden;
}

/* Hover effects for both button and icon */
.playback-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.playback-btn:hover .play-icon,
.playback-btn:hover .pause-icon,
.playback-btn:hover .stop-icon {
  filter: brightness(1.0) saturate(0.9);
}

/* Active/click effects */
.playback-btn:active {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(0.95);
}

.playback-btn:active .play-icon,
.playback-btn:active .pause-icon,
.playback-btn:active .stop-icon {
  filter: brightness(1.2) saturate(1.0); /* Further brighten on click */
  transform: scale(0.9);
}

.playback-buttons-group {
  display: flex;
  gap: 8px;
}

/* Speed dropdown styling with SVG arrow */
.speed-dropdown {
  background-color: #2c333d;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: white;
  padding: 6px 8px;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  min-width: 70px;
  transition: background-color 0.2s;
  position: relative;
  padding-right: 28px; /* Space for the arrow */
  background-image: url('../gfx/chevron-down-svgrepo-white.svg');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}

.speed-dropdown:hover {
  background-color: #353c47;
}

.speed-dropdown:focus {
  outline: none;
  border-color: #3c74d4;
}

/* Timestamp display styling */
.playback-timestamp {
  width: 100%;
  text-align: center;
  color: #DFE6F5;
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
  padding: 4px 0;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  margin-bottom: 2px;
}

.timestamp-display {
  letter-spacing: 1px;
}

/* RF detection line styling */

/* Triangulated position visualization */

/* Extra data display panel */
#extraDataDisplay {
  position: fixed !important;
  top: 10px !important;
  right: 10px !important;
  max-width: 250px;
  min-height: 24px;
  width: auto;
  font-size: 12px;
  display: none;
  background-color: rgba(15, 18, 23, 0.7);
  backdrop-filter: blur(2px);
  border-radius: 0.8em;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  padding: 0.8em;
  color: white;
  z-index: 900;
}

#extraDataDisplay h3 {
  margin: 8px 0 8px 0;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

#extraDataDisplay table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
}

#extraDataDisplay th {
  text-align: left;
  color: rgba(255, 255, 255, 0.7);
  font-weight: normal;
  padding: 2px 0;
}

#extraDataDisplay td {
  text-align: right;
  font-weight: bold;
  padding: 2px 0;
}

#extraDataDisplay .group-header {
  padding-top: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-transform: uppercase;
  margin-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.extra-data-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 8px;
  height: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.extra-data-header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}

.extra-data-header .chevron-container {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.extra-data-header .toggle-icon {
  width: 16px;
  height: 16px;
  filter: brightness(2);
  transition: transform 0.2s ease;
}
.extra-data-content > table > tbody > tr:first-child > td.group-header {
  border-top: none !important;
  padding-top: 2px !important;
  margin-top: 0 !important;
}

.extra-data-header {
  margin-bottom: 0 !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

#extraDataDisplay .group-header {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Base component class for floating UI elements */
.map-ui-panel {
  position: absolute;
  background-color: rgba(15, 18, 23, 0.7);
  backdrop-filter: blur(2px);
  border-radius: 0.8em;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  padding: 0.8em;
  color: white;
  z-index: 9999;
  font-family: "Open Sans";
  font-size: 0.9em;
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: 250px;
  overflow: hidden;
  pointer-events: auto;
}

/* Fix typography in all panels */
.map-ui-panel h1, 
.map-ui-panel h2, 
.map-ui-panel h3 {
  margin: 0 0 0.5em 0;
  font-family: "Open Sans Bold";
  font-weight: bold;
  line-height: 1.2;
  width: 100%;
}

.map-ui-panel p {
  margin: 0.25em 0;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.title p#mapTitle {
  font-family: "Open Sans Bold";
  font-weight: 700;
  margin-bottom: 0.4em;
  font-size: 1.1em;
  width: 100%;
  overflow-wrap: break-word;
}

.title p#time {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95em;
  white-space: nowrap; /* Prevents time from wrapping */
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.title small {
  display: block;
  margin-top: 0.5em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85em;
}

/* Playback controls */
#simple-playback-controls {
  position: fixed;
  bottom: 10px !important;
  left: 58%;
  display: none; /* Hidden by default */
  justify-content: center;
  max-width: 300px;
  z-index: 5000;
}

.playback-controls-inner {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}
.playback-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.playback-timestamp {
  width: 100%;
  text-align: center;
  color: #DFE6F5;
  font-family: monospace;
  font-size: 1em;
  font-weight: bold;
  padding: 4px 0;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  margin-bottom: 2px;
  white-space: nowrap;
}

.playback-btn {
  flex: 0 0 auto;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.playback-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.extraInfoDivider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 10px 0;
}

.extraInfoGroup {
  padding-bottom: 5px;
}

/* Enhanced flight info styling */
.flight-info-column {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  padding: 0.8em;
  border-right: 1px solid #2a2f36;
  position: relative;
}

.flight-model {
    font-size: 0.9em;
    color: #9aa0ac;
    margin-top: 0.25em;
    cursor: text;
}

.flight-date, .flight-time, .flight-duration, .flight-model {
    user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
    -moz-user-select: text;
    cursor: text;
}

.more-info-trigger {
  color: #9aa0ac;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  padding: 4px 8px;
  border-radius: 3px;
  transition: color 0.2s, background-color 0.2s;
  gap: 6px;
}

.more-info-trigger:hover {
  color: #DFE6F5;
  background-color: rgba(255, 255, 255, 0.05);
}

.more-info-trigger .chevron-icon {
  width: 12px;
  height: 12px;
  filter: brightness(2);
  transition: transform 0.2s ease;
}

/* Full-width expanded info styling */
.expanded-flight-info {
  grid-column: 1 / -1; /* Span all columns */
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid #2a2f36;
  padding: 12px 16px;
  margin: 0;
}

.expanded-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 20px;
  max-width: 100%;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-right: 12px;
  flex-shrink: 0;
}

.info-value {
  font-size: 12px;
  color: white;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Expanded row styling */
.incident-row.expanded {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .expanded-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px 15px;
  }
}

@media (max-width: 800px) {
  .expanded-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 10px;
  }
}

@media (max-width: 600px) {
  .expanded-info-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  
  .info-value {
    text-align: left;
  }
}

/* Setting divider */
.setting-divider {
  height: 1px;
  background-color: #3a4957;
  margin: 16px 0;
}

/* Toggle switch container */
.toggle-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.toggle-label {
  color: #ecf0f1;
  font-weight: 500;
}

/* Toggle switch styling */
.toggle-switch-container {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  cursor: pointer; /* Add cursor pointer to container */
}

/* Make the checkbox invisible but still covering the full area */
.toggle-switch {
  opacity: 0;
  width: 100%; /* Change from 0 to 100% */
  height: 100%; /* Change from 0 to 100% */
  position: absolute; /* Position absolutely */
  z-index: 100; /* Place above the slider */
  margin: 0; /* Remove any margin */
  cursor: pointer; /* Ensure cursor shows pointer */
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #34495e;
  transition: .4s;
  border-radius: 24px;
  z-index: 1; /* Place below the checkbox */
  pointer-events: none; /* Ensure clicks pass through to checkbox */
}

.toggle-switch:checked + .toggle-slider {
  background-color: #3498db;
}

/* Add the missing circle indicator to the toggle switch */
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* Keep the existing transform rule for when checked */
.toggle-switch:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.timeline-settings-button {
  position: absolute;
  right: 0.5em; /* Position from right edge of screen */
  height: 100%;
  margin: 0; /* Remove margin */
  float: none; /* Remove float */
  z-index: 3; /* Same as timeline */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border: none;
  padding: 0;
}

.timeline-settings-button:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.timeline-settings-button img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.timeline-settings-button:hover img {
    opacity: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Settings dropdown menu */
.timeline-settings-menu {
    position: absolute;
    right: 0em;
    bottom: 3em; /* Above the timeline */
    width: 280px;
    background-color: #2c3e50;
    border: 1px solid #34495e;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.settings-header {
  background-color: #34495e;
  color: #ecf0f1;
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
  font-weight: bold;
  font-size: 14px;
}

.settings-content {
  padding: 16px;
}

.settings-content label {
  display: block;
  color: #ecf0f1;
  margin-bottom: 8px;
  font-weight: 500;
}

.threshold-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.threshold-slider {
  flex: 1;
  height: 4px;
  background: #34495e;
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.threshold-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #3498db;
  border-radius: 50%;
  cursor: pointer;
}

.threshold-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #3498db;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.threshold-display {
  color: #3498db;
  font-weight: bold;
  min-width: 35px;
  text-align: right;
}

.settings-description {
  color: #bdc3c7;
  font-size: 12px;
  line-height: 1.4;
}
