.color-primary-0 {
  color: #F5F5F5;
} /* Main Primary color */
.color-primary-1 {
  color: #050303;
}

.color-primary-2 {
  color: #640000;
}

.color-primary-3 {
  color: #FF0000;
}

.color-primary-4 {
  color: #B30000;
}

/* For AngularJS ng-cloak directive */
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
  display: none !important;
}

body {
  background-color: #F5F5F5;
}

#main_nav {
  height: 70px;
  background-color: #F5F5F5;
  margin-bottom: 0;
  border-bottom: 2px solid #ddd;
}
#main_nav .as-brand {
  height: 70px;
  padding: 10px 0px;
}
#main_nav .nav > li {
  height: 70px;
  font-size: 18px;
}
#main_nav .nav > li > a {
  height: 100%;
  display: block;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 58px;
}
#main_nav .nav > li.active > a {
  border-bottom: 3px solid #B30000;
  color: #050303;
  background-color: transparent;
}
#main_nav .as-nav > li > a:hover {
  border-bottom: 3px solid #FF0000;
  border-radius: 0;
}
#main_nav .account {
  font-size: 1.5em;
  margin: 0;
  margin-right: 1%;
  line-height: 60px;
  padding-top: 10px;
}

@media only screen and (max-width: 768px) {
  #main_nav {
    height: fit-content;
  }
}
.logo-image {
  margin-right: 10px;
  height: 55px;
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary, .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
  background-color: #819595;
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default, .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default {
  background-color: #696773;
  color: #ffffff;
}

.target-info .target-details {
  font-size: 25px;
}

.target-info .target-details dt {
  font-weight: normal;
}

.target-info .target-details dd {
  font-weight: bold;
}

.target-info {
  margin-bottom: 25px;
}

.map-ok, .map-alert {
  width: 100%;
}

.client-off-warning {
  font-size: 22px;
}

.client-inactive img {
  opacity: 0.2;
}

#threat-monitor {
  position: relative;
}

#loading, #app-loading {
  width: 300px;
  height: 100%;
  margin: 15% auto;
}

#loading .status, #app-loading .status {
  text-align: center;
  font-size: 2em;
}

/* loading icon */
.loading-animation .glyphicon-repeat {
  animation: loading-spin 1s linear infinite;
}

@keyframes loading-spin {
  100% {
    transform: rotate(360deg);
  }
}
.connecting {
  float: right;
}

.connecting .glyphicon-option-horizontal {
  padding-right: 24px;
  animation: connecting-slide 1.5s linear infinite;
}

@keyframes connecting-slide {
  50% {
    background-position: 10px;
    padding-right: 0;
  }
  100% {
    background-position: -10px;
    padding-right: 24px;
  }
}
#no-reports {
  font-size: 18px;
}

/* ------------------------------- */
/* global bootstrap customizations */
/* ------------------------------- */
.panel {
  border-radius: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
}

.panel-heading {
  padding: 10px 10px;
}

h3.panel-title {
  font-size: 22px;
}

section {
  padding-top: 10px;
}

/* Show the "X" for input clearing,
taken from https://stackoverflow.com/questions/32312348/how-to-show-x-clear-in-chrome-input-with-type-number*/
input[type=search] {
  -webkit-appearance: searchfield;
}

input[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: searchfield-cancel-button;
}
.camera-overlay {
  position: absolute;
  right: 1%;
  top: 1%;
  background: #f5f5f5;
  border: 1px solid #ddd;
  z-index: 999;
  border-radius: 5px;
}
.camera-overlay button.expand {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1000;
}
.camera-overlay .camera-content {
  display: none;
}
.camera-overlay .camera-stream {
  width: 100%;
}
.camera-overlay div.slider {
  height: 1.5em;
}
.camera-overlay input[type=range] {
  -webkit-appearance: none;
  border-radius: 5px;
}
.camera-overlay input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  position: relative;
  top: 0px;
  z-index: 1;
  width: 11px;
  height: 11px;
  line-height: 1.5;
  cursor: pointer;
  background: #555;
  border-radius: 5px;
}
.camera-overlay .camera-image-wrapper {
  position: relative;
}
.camera-overlay .camera-tilt {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.camera-overlay .camera-tilt button {
  display: block;
  margin: 5px;
}
.camera-overlay .camera-pan {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.camera-overlay .camera-error {
  text-align: center;
  padding: 80px;
}
.camera-overlay .camera-autocuing {
  color: red;
}

.camera-overlay.normal {
  padding: 5px;
  width: 33%;
}
.camera-overlay.normal .camera-content {
  display: block;
}

.camera-overlay.expanded {
  padding: 5px;
  width: 80%;
}
.camera-overlay.expanded .camera-content {
  display: block;
}
/*
this file should contain rules that are reused throught the codebase in UI components
and are not limited to a specific view
*/
/* below .ol-zoom */
/* .ol-zoom is positioned left: 0.5em*/
.panel-with-tabs .panel-heading {
  border: 0;
  padding-bottom: 0;
  padding-right: 0;
}

.map {
  /* navbar takes 70px off the top of the page */
  /* 90px takes margin etc into account */
  height: calc(100vh - 70px) !important;
}

.map-col {
  padding: 0;
}

.map-style-selector {
  position: absolute;
  top: 5.5em;
  left: 0.5em;
  z-index: 1000;
}
.map-style-selector .style-options {
  color: #fff;
  left: 2.2em; /* on the right of the button */
  position: relative;
  margin-left: 0.2em;
  border-radius: 7px;
  min-width: 10.4em;
}
.map-style-selector .style-options ul {
  background-color: rgba(0, 60, 136, 0.5);
  list-style-type: none;
  padding: 2px 10px;
  margin: 0;
  border-radius: 7px;
}
.map-style-selector .style-options ul:hover {
  background-color: rgba(0, 60, 136, 0.7);
}

.ol-control button {
  height: 1.8em;
  width: 1.8em;
}

.ol-scale-line {
  background: rgba(0, 60, 136, 0.5);
}

.right-col {
  /* navbar takes 70px off the top of the page */
  height: calc(100vh - 70px);
  padding-top: 20px;
  box-shadow: -10px 5px 15px -10px #000;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: scroll;
}

.right-col > div {
  width: 100%;
}

.nav a {
  cursor: pointer;
}

.form-popup {
  padding-top: 1em;
}

input[type=radio] {
  cursor: pointer;
}

input.digit-1 {
  display: inline;
  width: 4em;
}

input.digit-2 {
  display: inline;
  width: 5em;
}

input.digit-3 {
  display: inline;
  width: 6em;
}
control-panel {
  background-color: #F5F5F5;
  padding: 15px;
  overflow-y: auto;
}

.control-panel .control-section label {
  display: block;
  font-weight: 600;
  color: #333;
}

.control-panel .control-section input,
.control-panel .control-section select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: border-color 0.3s;
}

.control-panel .control-section input:focus,
.control-panel .control-section select:focus {
  border-color: #007bff;
}

.control-panel .uri-control {
  display: flex;
  gap: 5px;
}

.uri-control input {
  flex: 1;
}

.flowgraph-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-panel .control-section {
  margin-top: 2px;
}

.control-apply-button {
  display: flex;
  justify-content: center;
}

.control-apply-button button {
  margin-top: 10px;
}

.control-panel input {
  border-radius: 4px;
}
.control-panel select {
  border-radius: 4px;
}

.control-panel button {
  padding: 10px 15px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 4px;
}

.control-panel button:hover {
  background-color: #0056b3;
}
.uri-dialog {
  padding: 20px;
  max-width: 400px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.uri-dialog h2 {
  margin: 0 0 10px;
  font-size: 1.5em;
  color: #333;
}

.uri-dialog .control-section label {
  display: block;
  font-weight: 600;
  color: #333;
}

.uri-dialog .control-section input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.uri-dialog .control-section input:focus {
  border-color: #007bff;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dialog-actions button {
  padding: 8px 12px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dialog-actions button:hover {
  background-color: #0056b3;
}
#form_errors {
  margin-bottom: 10px;
}

.controls {
  margin-bottom: 10px;
}
.direction-display {
  background-color: #F5F5F5;
  border-radius: 4px;
  padding: 10px;
  box-sizing: border-box;
  height: 300px;
}

.direction-display canvas {
  width: 100%;
  height: 100%;
}

/* Ensure the plot background is transparent */
#directionPlot .plot-container {
  background: transparent !important;
}

.direction-plot {
  width: 100%;
  height: 100%;
  position: relative;
}
.direction-plot canvas {
  width: 100%;
  height: 100%;
  border-radius: 150px;
}

/* Radar screen glow effect */
.direction-plot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.1);
  pointer-events: none;
  border-radius: 50%;
}
.error-message .glyphicon-remove {
  color: red;
}
.error-display {
  position: absolute;
  bottom: 1em;
  left: 1em;
  right: 1em;
  background-color: #ff4444;
  color: white;
  padding: 0.8em;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in;
  z-index: 1000;
}

.error-message {
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.message {
  padding: 8px;
  border-radius: 4px;
}

.message.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

.message.status {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.message.normal {
  color: #383d41;
  background-color: #e9ecef;
  border: 1px solid #dee2e6;
}
/* below .ol-zoom */
/* .ol-zoom is positioned left: 0.5em*/
.flight-info-overlay {
  position: absolute;
  top: calc(11.3em + 0.5em);
  left: calc(0.5em + 22px);
  padding: 5px;
  z-index: 999;
  font-size: 12px;
  background: #fefefe;
  border: 1px solid #eee;
}
.flight-info-overlay p {
  margin: 0;
}

.flight-slider-overlay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10%;
  background: #f5f5f5;
  border: 1px solid #999;
  padding: 10px;
  z-index: 999;
  border-radius: 5px;
  width: 50%;
}
.flight-slider-overlay div.slider {
  height: 1.5em;
}
.flight-slider-overlay input[type=range] {
  -webkit-appearance: none;
  border-radius: 5px;
}
.flight-slider-overlay input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  position: relative;
  top: 0px;
  z-index: 1;
  width: 11px;
  height: 11px;
  line-height: 1.5;
  cursor: pointer;
  background: #555;
  border-radius: 5px;
}

.modal-background {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(85, 85, 85, 0.8);
  width: 100vw;
  height: 100vh;
}

.modal-content {
  background: #fff;
  border: 1px solid #999;
  border-radius: 10px;
  margin: 0 5%;
  margin-top: 90px;
  padding: 20px;
  /* nav bar is 70px */
  height: calc(90vh - 70px);
}
.modal-content .map {
  height: 100% !important;
}
.modal-content .map-style-selector {
  top: calc(5.5em + 20px);
  left: calc(0.5em + 20px);
}

.modal-close {
  display: block;
  position: absolute;
  top: -15px;
  right: -10px;
  width: 35px;
  text-align: center;
  color: #eee;
  line-height: 35px;
  font-size: 40px;
  background: #ef7676;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Arial";
}

.modal-close:hover, .modal-close:active {
  color: #fff;
  text-decoration: none;
  background: #999;
  background: #f74343;
}
.metadata-display {
  padding: 0.5em;
  box-sizing: border-box;
  overflow-y: auto;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12em, 1fr));
  gap: 0.5em;
}

.metadata-item {
  display: flex;
  gap: 0.5em;
  align-items: center;
}

.metadata-item label {
  font-weight: bold;
  white-space: nowrap;
}

.metadata-item span {
  flex: 1;
  text-align: left; /* Force left alignment for all spans */
}

/* Remove any data-type specific alignments */
.metadata-item[data-type=small-number] span,
.metadata-item[data-type=number] span {
  text-align: left;
}

/* Specific widths for different types of values */
.metadata-item[data-type=text] span {
  min-width: 80px; /* For type, antenna */
}

.metadata-item[data-type=number] span {
  min-width: 100px; /* For frequencies, bandwidth */
}
@charset "UTF-8";
.info-panel {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.info-panel > div {
  width: 100%;
}

.hover-right {
  position: absolute;
  right: 0px;
  top: 50px;
  opacity: 0.7;
}

.threat-single {
  border: 1px solid #ebccd1;
  margin-bottom: 10px;
}

.threat-body {
  padding: 10px;
}

.threat-single .title {
  background: #f2dede;
  color: #555;
  font-weight: bold;
  padding: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.busy-view .threat-body {
  padding: 3px;
}

.busy-view .threat-single button {
  font-size: 13px;
}

.threat-selected {
  border: 1px solid #ebccd1;
  padding: 5px;
  margin-bottom: 10px;
}

.threat-selected button:not(:last-child) {
  margin-bottom: 5px;
}

.threat-selected .title {
  float: left;
  padding: 10px;
}

.threat-single {
  background: white;
}

.threat-single button {
  margin-left: 7.5%;
  margin-bottom: 15px;
  width: 85%;
}

.threat-single .name .whitelist {
  color: #aaa;
  cursor: pointer;
}

.threat-single .name .whitelist:hover {
  color: #333;
}

.threat-single .allowed {
  color: #1d9300;
}

.denied {
  color: #f43918;
}

.modal-error {
  width: 100%;
  height: 100%;
  text-align: center;
  z-index: 999;
  position: fixed;
  top: 0px;
  padding-top: 30vh;
  background: rgba(255, 255, 255, 0.8);
  font-size: 2em;
}

/* error icon */
.modal-error .glyphicon-remove {
  color: red;
}

.modal-error .support {
  text-align: left;
  margin: 2em auto;
  width: 35em;
}

@media (max-height: 900px) {
  .monitor .right-col h3 {
    font-size: 18px !important;
  }
}
@media (min-width: 1500px) and (min-height: 900px) {
  .monitor .right-col {
    font-size: 20px;
  }
  .monitor .threat-selected button {
    font-size: 18px;
  }
  .monitor .threat-single button {
    font-size: 20px;
  }
}

.busy-view .threat-selected {
  background: white;
}

.busy-view .threat-single {
  font-size: 13px;
  width: calc(33% - 3.3px);
  float: left;
  margin-left: 5px;
}

.busy-view .threat-single:first-child {
  margin-left: 0px;
}

.busy-view .threat-single:nth-child(4n) {
  margin-left: 0px;
}

.busy-view .threat-single .title {
  padding: 3px;
  cursor: pointer;
}

.busy-view .threat-single .title:hover {
  background: #ffd8d6;
}

.threat-single.selected {
  border: 1px solid #aaa;
}

.threat-single .title.selected {
  background: rgba(0, 127, 255, 0.8);
  color: white;
}

.busy-view .threat-single .title.selected {
  background: #f2382b;
  color: white;
}

.busy-view .threat-single:nth-child(4n) {
  margin-right: 0;
}

.threat-selected .actions {
  float: left;
  padding: 10px;
}

.threat-selected button {
  width: 100%;
  display: block;
}

.threat-selected .column {
  float: left;
  padding: 10px;
  width: 33%;
}

.threat-panel {
  width: 100%;
}

.threat-panel .reset {
  margin-bottom: 20px;
  text-align: left;
}

.scanning:after {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  -webkit-animation: ellipsis steps(4, end) 900ms infinite;
  animation: ellipsis steps(4, end) 900ms infinite;
  content: "…"; /* ascii code for the ellipsis character */
  width: 0px;
}

@keyframes ellipsis {
  to {
    width: 1.25em;
  }
}
@-webkit-keyframes ellipsis {
  to {
    width: 1.25em;
  }
}
.threat-history {
  align-self: flex-end;
}

.energy-history td, .energy-history th {
  text-align: center;
}

.jammers {
  background: white;
  margin-bottom: 10px;
}

.jammers .panel-body {
  padding: 0px 0px 15px 0px;
}

.jammers table {
  margin-bottom: 0;
  margin-right: auto;
  margin-left: auto;
  border-collapse: separate;
  border-spacing: 10px 5px;
}

.jammers thead {
  font-size: 16px;
}

.jammers tbody {
  font-size: 15px;
}

.jammers td, .jammers th {
  text-align: center;
  padding: 5px !important;
}

.jammers .jamming-status {
  padding: 8px 25px;
  font-size: inherit;
}

.jammers .jammer-warning {
  font-size: 80%;
}

.jammers .label-default.jamming-status {
  background-color: #BBB;
}

.jammers .jamming-status.jamming-on {
  animation: jamming-label-animation 0.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-direction: alternate;
}

@keyframes jamming-label-animation {
  from {
    opacity: 0.9;
  }
  to {
    opacity: 1;
  }
}
.simulation-alert, .location-alert {
  position: absolute;
  top: 10px;
  z-index: 100;
  left: 50%;
  background: #fff475;
  font-weight: bold;
  color: #222;
  padding: 10px;
  border-radius: 20px;
  transform: translate(-50%);
  box-shadow: 0px 0px 10px #333;
}

.device-marker {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(148, 251, 31);
  box-shadow: 1px 1px 5px 0 #777;
  animation: device-animation 0.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-direction: alternate;
  z-index: 60;
  /* position is important for z-index to work, see https://cssreset.com/z-indexnotworking */
  position: relative;
}

.device-marker-off {
  background-color: rgba(200, 200, 200, 0.9);
  box-shadow: 1px 1px 5px 0 #777;
  animation: none;
  z-index: 49;
}

.device-marker-edited {
  background-color: rgb(0, 0, 255);
  animation: none;
}

.device-marker::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

.device-marker::after {
  background-image: url(/rfsensor.png);
}

.device-marker.radar::after {
  background-image: url(/radar.png);
}

.device-marker.camera {
  z-index: 55;
}

.device-marker.camera::after {
  background-image: url(/camera.png);
}

.threat-marker {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 50, 50, 0.8);
  box-shadow: 1px 1px 5px 0 #777;
  border: 1px solid #fff;
  cursor: pointer;
  /* position is important for z-index to work, see https://cssreset.com/z-indexnotworking */
  position: relative;
}

.threat-marker-drone {
  z-index: 99;
}

.threat-marker::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  filter: invert(100%);
}

.threat-marker-drone::before {
  background-image: url(/drone.png);
}

.threat-marker-pilot::before {
  background-image: url(/pilot.png);
}

.threat-marker-pilot {
  /* below threat-marker-drone but above threat-marker-home */
  z-index: 89;
}

.threat-marker-home::before {
  background-image: url(/home.png);
}

.threat-marker-home {
  /* below threat-marker-drone and threat-marker-pilot */
  z-index: 79;
}

.threat-marker-radar::before {
  background-image: url(/drone.png);
}

.threat-marker-radar {
  z-index: 99;
}

.threat-marker-radar::after {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  box-shadow: 1px 1px 2px 0 #777;
  text-align: center;
  vertical-align: center;
  font-size: 12px;
  position: absolute;
  background-color: #353535;
  background-image: url(/radargreen.png);
  color: #555;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-size: 25px 25px;
}

.threat-marker-drone-classic, .threat-marker-pilot-classic {
  background-color: rgb(244, 244, 244);
  border-color: #777;
}

.threat-marker-drone-classic::before {
  background-image: url(/drone.png);
  filter: none;
}

.threat-marker-pilot-classic::before {
  background-image: url(/pilot.png);
  filter: none;
}

.threat-marker-clicked {
  background-color: rgba(0, 127, 255, 0.8);
}

.threat-marker-label {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 1px 1px 2px 0 #777;
  text-align: center;
  vertical-align: center;
  font-size: 12px;
  position: absolute;
  background-color: #fff;
  border: 1px solid #000;
  color: #555;
  z-index: 100;
  top: 0;
}

.threat-marker-drone-classic .threat-marker-label,
.threat-marker-pilot-classic .threat-marker-label {
  background-color: rgb(255, 50, 50);
  border: 1px solid #fff;
  color: #fff;
}

.threat-marker-label:nth-of-type(2) {
  right: 0;
}

.threat-marker-label:nth-of-type(3) {
  right: 0;
  bottom: 0;
  top: auto;
}

.threat-marker-label:nth-of-type(4) {
  left: 0;
  bottom: 0;
  top: auto;
}

.threat-arrow::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 60px solid rgba(255, 50, 50, 0.8);
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  animation: arrow-animation 0.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-direction: alternate;
}

.threat-arrow-clicked::after {
  border-left-color: rgba(0, 127, 255, 0.8);
}

@keyframes arrow-animation {
  from {
    transform: translateX(-5px);
  }
  to {
    transform: translateX(5px);
  }
}
.threat-icons {
  float: right;
}

.threat-icon {
  width: 30px;
  height: 30px;
  background-size: contain;
  float: right;
  opacity: 0.7;
  background-size: 30px !important;
}

.threat-icon:hover {
  opacity: 1;
}

.threat-icon-drone {
  background: url(/drone.png);
}

.threat-icon-home {
  background: url(/home.png);
}

.threat-icon-pilot {
  background: url(/pilot.png);
}

/* Reusable */
.mobile-only {
  display: none;
}

@media only screen and (max-width: 768px) {
  .mobile-only {
    display: block;
  }
}
.location-search-overlay {
  position: absolute;
  right: 1%;
  top: 1%;
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 10px;
  z-index: 999;
  border-radius: 5px;
  max-width: 33%;
}
.location-search-overlay input {
  display: inline;
  width: auto;
  height: 30px;
}
.location-search-overlay table {
  margin: 0;
}

#simulation-profile {
  font-family: monospace;
}

#planning .right-col .panel-heading {
  font-size: 1.5em;
}
plot-legend {
  background-color: #F5F5F5;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  display: block;
}

.plot-legend .legend-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  font-size: 16px;
}

.plot-legend .legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plot-legend .legend-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  background-color: #fff;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.plot-legend .legend-item:hover {
  border-color: #007bff;
}

.plot-legend .legend-item:active {
  background-color: #f0f0f0;
}

.plot-legend .legend-item-disabled {
  opacity: 0.5;
}

.plot-legend .color-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.plot-legend .antenna-name {
  color: #333;
  font-size: 14px;
}

.plot-legend .legend-empty {
  color: #777;
  font-style: italic;
  padding: 5px 0;
  font-size: 14px;
}
.restart-control {
  padding: 0.5em;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  align-items: center;
}

.restart-buttons {
  display: flex;
  gap: 1em;
  justify-content: center;
  width: 100%;
}

.restart-buttons button {
  padding: 0.5em 1em;
  min-width: 8em;
  border-radius: 4px;
  color: #fff;
  border-color: #007bff;
  background-color: #007bff;
}
.restart-buttons button:disabled {
  background-color: gray;
}
.restart-buttons button:hover:enabled {
  background-color: #0056b3;
}
.account-settings .setting {
  padding: 10px 0;
}

.settings-home-devices table tr {
  cursor: pointer;
}

table.search-results tr {
  cursor: pointer;
}

#antenna-table {
  overflow-x: auto;
}
#antenna-table .port-col, #antenna-table .angle-col, #antenna-table .width-col, #antenna-table .range-col {
  width: 15%;
}
#antenna-table .delete-col {
  width: 5%;
}

#antenna-table .device-simplified .range-col {
  width: 25%;
}
#antenna-table .device-simplified .angle-col, #antenna-table .device-simplified .width-col {
  width: 18%;
}

#antenna-table .port-input {
  padding-right: 6px;
  padding-left: 6px;
}

#antenna-table .type-input {
  padding-right: 0px;
  padding-left: 0px;
}

#settings {
  /* let users click through device overlays on the map */
}
#settings .right-col .panel-heading {
  font-size: 1.5em;
}
#settings .ol-overlay-container {
  pointer-events: none;
}
spectrum-plot,
control-panel,
direction-display,
error-display,
metadata-display,
websocket-control,
restart-control plot-legend {
  display: block;
  border-radius: 8px;
}

control-panel {
  /* Specific component adjustments */
}
control-panel control-panel {
  flex: 1;
  overflow-y: auto;
}

.app-container {
  display: flex;
  gap: 0.1em;
  background-color: #F5F5F5;
  overflow: hidden;
  height: 100%;
}

/* Left panel containing plot and metadata */
.left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  min-width: 0;
  overflow: hidden;
}

.plot-area {
  flex: 1;
  min-height: 0;
}

metadata-display {
  height: auto;
  flex-shrink: 0;
  overflow-y: auto;
}

/* Right panel containing controls, direction, and error */
.right-panel {
  width: 20em;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  overflow: hidden;
}

control-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

direction-display {
  height: 300px;
  flex-shrink: 0;
}

error-display {
  height: fit-content;
  flex-shrink: 0;
}

websocket-control {
  height: fit-content;
  flex-shrink: 0;
}

restart-control {
  height: fit-content;
  flex-shrink: 0;
}

.app-header {
  background-color: #F5F5F5;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.app-header h1 {
  font-size: 1.5em;
  color: #333;
  margin: 0;
}

.app-header .controls {
  display: flex;
  gap: 10px;
}

.app-header .controls button {
  padding: 8px 12px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.app-header .controls button:hover {
  background-color: #0056b3;
}
.spectrum-plot {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #F5F5F5;
  border-radius: 8px;
  padding: 15px;
  box-sizing: border-box;
}

.spectrum-plot-container {
  flex: 1;
  min-height: 0;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.spectrum-plot canvas {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background-color: #f8f9fa;
}

.clear-button {
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #f44336;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  flex-shrink: 0;
}

.clear-button:hover {
  background-color: #c82333;
}

.plot-container {
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  position: relative;
}

canvas {
  width: 100%;
  height: 100%;
}

/* Optional: Add a subtle inner glow */
.plot-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.1);
  pointer-events: none;
}
#health {
  padding: 10px;
}

.health-modules {
  list-style: none;
}
.health-modules .glyphicon-ok {
  color: green;
}
.health-modules .glyphicon-remove {
  color: red;
}
.health-modules .glyphicon-exclamation-sign {
  color: #f0ad4e;
}
.health-modules li .status {
  text-transform: capitalize;
}

.device-license-status {
  font-weight: bold;
}
.websocket-control {
  padding: 0.5em;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  position: relative;
}

.control-section {
  display: flex;
  gap: 0.5em;
  align-items: center;
  width: 100%;
}

.control-section label {
  white-space: nowrap;
  display: block;
  color: #666;
}

.uri-control {
  display: flex;
  gap: 0.5em;
  align-items: center;
  width: 100%;
}

.uri-control input {
  flex: 1;
  padding: 0.3em;
  height: 2em;
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.uri-control input.error {
  border-color: #ff4444;
}

.uri-control button {
  padding: 0 0.6em;
  height: 2em;
  white-space: nowrap;
}

.uri-control button.connected {
  background-color: #44ff44;
}

.connection-error {
  color: #ff4444;
  font-size: 0.9em;
}

/* Button styles */
.ws-button {
  width: 100%;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.ws-button.connected {
  background-color: #4CAF50;
  color: white;
}

.ws-button.disconnected {
  background-color: #f44336;
  color: white;
}

/* Dialog overlay */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* Dialog styles */
.uri-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}

.uri-dialog h3 {
  margin: 0 0 20px 0;
  color: #333;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dialog-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.dialog-actions button:first-child {
  background-color: #f5f5f5;
  color: #333;
}

.dialog-actions button:last-child {
  background-color: #2196F3;
  color: white;
}

.uri-dialog input,
.uri-dialog select {
  width: 100%;
  box-sizing: border-box;
}

.uri-dialog .control-section {
  margin-bottom: 15px;
}

/* Add this to your existing CSS */
.saved-uris-section {
  margin-top: 15px;
  margin-bottom: 15px;
}

.saved-uri-list {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.saved-uri-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-uri-item:last-child {
  border-bottom: none;
}

.saved-uri-item:hover {
  background-color: #f5f5f5;
}

.saved-uri-item.active {
  background-color: #e0e0e0;
}