/* Container & Menu */

.menu-container {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 50px;
  height: 100vh;
  background-color: rgb(30, 30, 30);
  border-right: 1px rgb(60, 60, 60) solid;
  -webkit-box-shadow: 0px 0px 30px -3px rgba(0, 0, 0, 1);
  -moz-box-shadow: 0px 0px 30px -3px rgba(0, 0, 0, 1);
  box-shadow: 0px 0px 30px -3px rgba(0, 0, 0, 1);
  z-index: 1001;
  transition: width 0.1s ease-in-out;
}

.menu-container a:hover {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

.menu-expanded {
  width: 180px;
}

.menu-item {
  margin: 9px;
  width: 32px;
  height: 50px;
  display: flex;
  transition: width 0.1s ease-in-out;
  overflow: hidden;
}

.menu-expanded .menu-item {
  width: 162px;
}

.menu-label {
  color: rgb(190, 190, 190);
  padding: 6px 6px 6px 14px;
  font-size: 0.95rem;
  cursor: pointer;
}

.menu-label:hover {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

.menu-expanded .menu-label {
  width: 50px;
}

.menu-label:selected {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

.menu-item:last-child {
  border: none;
}

.menu-icon {
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin: 0px;
  padding: 0px;
}

.content-container {
  position: fixed;
  top: 0px;
  right: 0px;
  width: calc(100vw - 50px);
  height: 100vh;
  z-index: 1000;
}

/* Toastr Override */

.toast-top-left {
  left: 62px;
}

/* Map Markers */

.marker {
  background-size: cover;
  width: 20px;
  height: 20px;
  border-radius: 10%;
  opacity: 1.0;
  border: 0px solid #fff;
  cursor: pointer;
}

.marker.marker-ROT {
  background-image: url('/icons/rot_red.png');
  width: 28px;
  height: 30px;
  cursor: pointer;
}

.marker.marker-FIX {
  background-image: url('/icons/fix_red.png');
  width: 28px;
  height: 30px;
  cursor: pointer;
}

.marker.marker-GLI {
  background-image: url('/icons/gli_red.png');
  width: 40px;
  cursor: pointer;
}

.marker.marker-JET {
  background-image: url('/icons/jet_red.png');
  width: 28px;
  height: 30px;
  cursor: pointer;
}

.marker.marker-PGL {
  background-image: url('/icons/pgl_red.png');
  width: 28px;
  height: 30px;
  cursor: pointer;
}

.marker.marker-trackingCam {
  background-image: url('/icons/camera.png');
  width: 28px;
  height: 30px;
  cursor: pointer;
}


.marker.marker-drone {
  background-image: url('/icons/drone.png');
  width: 28px;
  height: 30px;
  cursor: grab;
}

.marker.marker-drone-active {
  background-image: url('/icons/drone-active.png');
  width: 28px;
  height: 30px;
  cursor: grab;
}

.marker.marker-station {
  background-image: url('/icons/station.png');
  width: 28px;
  height: 30px;
  cursor: grab;
}

.marker.marker-station-active {
  background-image: url('/icons/station-active.png');
  width: 28px;
  height: 30px;
  cursor: grab;
}

.marker.marker-numbered {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.7rem;
  opacity: 1.0;
  border: 1px solid #fff;
  background-color: #fff;
  font-size: 0.7rem;
  color: #000;
  padding-left: 0.45rem;
  cursor: pointer;
}

.marker.marker-text {
  width: 3rem;
  height: 1.4rem;
}

.marker.marker-plus {
  background-size: cover;
  width: 1rem;
  height: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #fff;
  background-color: #fff;
  cursor: pointer;
  background-image: url('/icons/planning/plus.png');
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.marker-geofence,
.marker-geofence-inner,
.marker-geofence-outer {
  background-size: cover;
  width: 10px;
  height: 10px;
  border-radius: 10%;
  opacity: 1.0;
  border: 1px solid #fff;
  cursor: pointer;
  background-image: url('/icons/planning/geofence/marker.png');
}

.marker-geofence-inner {
  background-image: url('/icons/planning/geofence/inner.png');
}

.marker-geofence-outer {
  background-image: url('/icons/planning/geofence/outer.png');
}

.marker-obstacle,
.marker-obstacle-outer {
  background-size: cover;
  width: 10px;
  height: 10px;
  border-radius: 10%;
  opacity: 1.0;
  border: 1px solid #fff;
  cursor: pointer;
  background-image: url('/icons/planning/obstacle/marker.png');
}

.marker-obstacle-outer {
  background-image: url('/icons/planning/obstacle/outer.png');
}

.marker-threat {
  background-size: cover;
  width: 25px;
  height: 25px;
  cursor: pointer;
  background-image: url('/icons/map/threat_info.png');
}

.marker-threat.marker-threat-warning {
  background-image: url('/icons/map/threat_warning.png');
}

.marker-threat.marker-threat-danger {
  background-image: url('/icons/map/threat_danger.png');
}


.marker-safe-zone-orange {
  background-image: url('/icons/safezone-orange.png');
  background-size: cover;
  background-position: center;
  width: 30px;
  height: 30px;
  opacity: 1.0;
  cursor: pointer;
  border-radius: 2px;
}

.marker-safe-zone-green {
  background-image: url('/icons/safezone-green.png');
  background-size: cover;
  background-position: center;
  width: 30px;
  height: 30px;
  opacity: 1.0;
  cursor: pointer;
  border-radius: 2px;
}

.marker-safe-zone.actual {
  border: 1px rgb(58, 185, 45) solid;
  background-color: rgb(58, 185, 45);
}

.marker-safe-zone.desired {
  border: 1px rgb(66, 160, 255) solid;
  background-color: rgb(66, 160, 255);
}

/* Launch Interface */

.launch {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
}

.launch-cameras {
  background-color: rgb(245, 245, 245);
  position: fixed;
  top: 0px;
  left: 0px;
  width: 32vw;
  height: 100vh;
}

.launch-cameras-station {
  margin: 10px;
}

.launch-cameras-station img {
  margin-bottom: 10px;
  height: calc((32vw - 20px) * 0.5625);
  width: 100%;
}

.launch-progress {
  position: fixed;
  top: 0px;
  right: 0px;
  width: 67vw;
  height: 100vh;
}

.launch-stages {
  margin: 10px;
}

.launch-stage {
  display: inline-block;
  width: 25%;
  text-align: center;
  padding: 10px;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
  border: 2px rgb(255, 255, 255) solid;
}

.launch-stage.launch-stage-incomplete {
  background-color: #ce4c35;
}

.launch-stage.launch-stage-inprogress {
  background-color: #ce9935;
}

.launch-stage.launch-stage-complete {
  background-color: #35ce8d;
}

.launch-tabs {
  width: calc(67vw - 20px);
  margin: 10px;
}

.launch-tab-prompt {
  display: table-cell;
  width: calc(((67vw - 20px) / 8) * 5);
  padding-right: 5px;
  border-right: 2px rgb(230, 230, 230) solid;
}

.launch-tab-safety {
  display: table-cell;
  width: calc(((67vw - 20px) / 8) * 3);
  padding-left: 5px;
}

.launch-tab-heading {
  padding: 5px;
  margin-bottom: 5px;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  background-color: rgb(245, 245, 245);
  border: 2px rgb(230, 230, 230) solid;
}

.launch-tab-content {
  padding: 5px;
  margin-bottom: 10px;
}

.launch-history {
  display: table-cell;
  padding-right: 5px;
  border-right: 2px rgb(230, 230, 230) solid;
  width: calc(((67vw - 20px) / 8) * 5);
  height: 40vh;
}

.launch-options {
  display: table-cell;
  padding-left: 5px;
  width: calc(((67vw - 20px) / 8) * 3);
}

/* Planning Interface */

.planning {
  position: fixed;
  top: 0px;
  right: 0px;
  width: calc(100vw - 50px);
  height: 100vh;
}

.planning .planning-sidebar {
  width: 400px;
  height: 100vh;
  position: fixed;
  left: 50px;
  top: 0px;
  border-right: 1px rgb(100, 100, 100) solid;
  padding: 20px;
  overflow-y: auto;
}

.planning .planning-map {
  width: calc(100vw - 450px);
  height: 100vh;
  position: fixed;
  right: 0px;
  top: 0px;
  border-right: 1px rgb(100, 100, 100) solid;
}

.dashboard-map-controls {
  position: fixed;
  top: 0px;
  right: 0px;
  width: 490px;
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100vh;
  z-index: 1001;
  padding: 10px;
}

/* Map Controls */
.map-drone-telemetry {
  position: fixed;
  top: 0px;
  right: 245px;
  width: 265px;
  overflow-y: scroll;
  overflow-x: hidden;
  /* height: 100vh; */
  z-index: 1001;
  padding: 10px;
}

/* Map Controls */
.map-controls {
  position: fixed;
  top: 0px;
  right: 0px;
  width: 265px;
  overflow-y: scroll;
  overflow-x: hidden;
  /* height: 100vh; */
  z-index: 1001;
  padding: 10px;
}

.map-controls-close {
  width: 100%;
  border-radius: 3px;
  border: 1px rgb(230, 230, 230) solid;
  color: rgb(230, 230, 230);
  background-color: rgba(30, 30, 30, 0.75);
  padding: 3px;
  font-size: 80%;
  text-transform: uppercase;
}

/* Custom Scrollbars */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  border-radius: 0px;
  background-color: none;
}

::-webkit-scrollbar-thumb {
  border-radius: 0px;
  background-color: rgba(0, 0, 0, 0.75);
}

/* Camera Control */

.camera-control-m,
.camera-control-dm {
  margin: 0px 0px 8px 0px;
  width: 100%;
  border: 1px rgb(230, 230, 230) solid;
  border-radius: 5px;
  display: flex;
  flex-direction: row;
}

.camera-control-m-option,
.camera-control-dm-option {
  flex: auto;
  flex-basis: 50%;
  text-align: center;
  font-size: 0.8rem;
  border-radius: 5px;
  margin: 3px;
}

.camera-control-m-option.selected,
.camera-control-dm-option.selected {
  background-color: rgba(53, 206, 141, 0.6);
}

/* Heading Selector */

.heading-container {
  position: absolute;
  top: 40px;
  left: 10px;
  width: 100px;
  height: 212px;
}

.heading-auto {
  position: absolute;
  top: 106px;
  /* left: 37px; */
  font-size: 12px;
  text-decoration: underline;
  text-transform: uppercase;
}

.heading-camera-icon {
  background-image: url('/icons/drone-active.png');
  width: 50px;
  height: 50px;
  position: absolute;
  top: 25px;
  left: 25px;
  background-size: cover;
}

.heading-manually_number {
  position: absolute;
  bottom: -2px;
  font-size: 12px;
  width: 100px;
}

.heading-manually_button {
  height: 30px;
  font-size: 25px;
  padding: 0px;
}

.heading-camera-selector {
  position: absolute;
  top: 0px;
  left: 46px;
  width: 9px;
  height: 50px;
  border-top: 1px rgb(245, 245, 245) solid;
}

.heading-camera-handle {
  position: absolute;
  top: -3px;
  right: -0px;
  width: 10px;
  height: 12px;
  z-index: 1002;
}

.heading-camera-selecting {
  background-color: rgb(206, 153, 53);
}

.heading-camera-selected {
  background-color: rgb(53, 206, 141);
}

.heading-root {
  transform: rotate(90deg)
}

/* Pitch Selector */

.pitch-container {
  position: absolute;
  top: 40px;
  right: 10px;
  width: 100px;
  height: 212px;
}

.pitch-auto {
  position: absolute;
  top: 106px;
  /* right: 35px; */
  font-size: 12px;
  text-decoration: underline;
  text-transform: uppercase;
}

.pitch-camera-icon {
  background-image: url('/icons/video-camera.png');
  width: 50px;
  height: 50px;
  position: absolute;
  top: 10px;
  left: 10px;
  background-size: cover;
}

.pitch-camera-selector {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 80px;
  height: 6px;
  border-right: 1px rgb(245, 245, 245) solid;
}

.pitch-camera-handle {
  position: absolute;
  top: 0px;
  right: -10px;
  width: 20px;
  height: 6px;
  z-index: 1002;
}

.pitch-manually_number {
  position: absolute;
  bottom: -2px;
  font-size: 12px;
  width: 100px;
}

.pitch-manually_button {
  height: 30px;
  font-size: 25px;
  padding: 0px;
}

.pitch-camera-selecting {
  background-color: rgb(206, 153, 53);
}

.pitch-camera-selected {
  background-color: rgb(53, 206, 141);
}

.pitch-root {
  transform: rotate(90deg)
}

/* Flight Report Request */

.flight-report {
  position: fixed;
  left: 63px;
  top: 10px;
  width: 226px;
  border-radius: 3px;
  background-color: rgba(50, 50, 50, 0.8);
  border: 1px rgb(255, 255, 255) solid;
}

.flight-report .flight-report-header {
  text-align: center;
  color: rgb(255, 255, 255);
  text-transform: uppercase;
  padding: 5px 5px 2px 5px;
}

.flight-report .flight-report-content {
  padding: 5px;
}

/* New Threat Alert */

.threat-takeoff {
  position: fixed;
  left: 63px;
  top: 100px;
  width: 226px;
  border-radius: 3px;
  background-color: rgba(50, 50, 50, 0.8);
  border: 1px rgb(255, 255, 255) solid;
}

.threat-takeoff .threat-takeoff-header {
  text-align: center;
  color: rgb(255, 255, 255);
  text-transform: uppercase;
  padding: 5px 5px 2px 5px;
}

.threat-takeoff .threat-takeoff-content {
  padding: 5px;
}

/* Devices */

.devices {
  position: fixed;
  top: 0px;
  right: 0px;
  width: calc(100vw - 50px);
  height: 100vh;
  padding: 30px 30px 30px 50px;
}

.device-media-queue {
  height: calc(100vh - 140px);
  overflow-x: hidden;
  overflow-y: scroll;
}

/* Media */

.media {}

.media-preview {
  border: 1px rgb(100 100 100 / 60%) solid;
  border-radius: 14px;
  text-align: center;
  margin: 10px;
  padding: 10px;
}

/* Admin */

.admin {
  position: fixed;
  top: 0px;
  right: 0px;
  width: calc(100vw - 50px);
  height: 100vh;
  padding: 30px 30px 30px 50px;
  background-color: rgb(245, 245, 245);
  overflow-x: hidden;
  overflow-y: auto;
}

/* Advanced */

.advanced {
  position: fixed;
  top: 0px;
  right: 0px;
  width: calc(100vw - 50px);
  height: 100vh;
}

.advanced .advanced-menu {
  width: 300px;
  height: 100vh;
  position: fixed;
  left: 50px;
  top: 0px;
  padding: 20px;
  overflow-y: auto;
}

.advanced .advanced-content {
  width: calc(100vw - 350px);
  height: 100vh;
  position: fixed;
  right: 0px;
  top: 0px;
  border-right: 1px rgb(100, 100, 100) solid;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: scroll;
}


.tab {
  background-color: #000000;
  position: fixed;
  top: 370px;
  left: 60px;
  z-index: 1000;
  /* border: 1px rgb(0,0,0) solid; */
  width: 480px;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
  width: 96px;
  color: #ddd;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  position: fixed;
  display: none;
  position: fixed;
  left: 60px;
  width: 480px;
  height: 360px;
  z-index: 1000;
  border: 1px rgb(0, 0, 0) solid;
}

/* override the selector style */
.card.card-dark select.form-control option {
  color: #495057;
}

/* device flight list style*/
.delete-button {
  text-align: right;
}

.mapboxgl-ctrl-top-right {
  right: auto !important;
}

/* Hidden the pin input in user creation & update */
.hidden-pin {
  visibility: hidden;
}

.table-logs td {
  vertical-align: middle;
}

.logs-download {
  font-style: normal;
}

.logs-hide {
  display: none;
}

.landing-cancel {
  margin-top: 10px;
}

.Toastify__toast-container--top-left {
  top: 4em !important;
  left: 4em !important;
  --nth: 1 !important;
  --len: 2 !important;
  opacity: 0.85 !important;
}

.hidden-stop {
  display: none;
}

.status-bgcolor {
  background-color: #bbffcc !important;
}

.version-menu {
  position: fixed;
  bottom: 0px;
}

.version-table {
  width: 100%;
  text-align: left;
  margin-top: 10px;
  font-size: 20px;
}

.version-table td {
  padding: 5px 20px;
  text-align: right;
}

.version-table td:first-child {
  text-align: left;
}

.version-table td img {
  width: 20px;
  margin-left: 10px;
  padding-bottom: 4px;
}

.version-master {
  font-size: 22px;
}

.version-master span {
  text-decoration: underline;
}

.procedureDrawer .css-9emuhu-MuiPaper-root-MuiDrawer-paper {
  width: 85% !important;
  margin: auto !important;
  border-radius: 15px 15px 0px 0px;
}

/* Control Panel */
.system-panel {
  position: absolute;
  left: 160px;
  width: 280px;
}

.system-select-box {
  min-width: 200px;
  padding: 25px 0px;
  margin-right: 40px;
}

.system-select-box fieldset {
  border-radius: 14px;
  border-width: 1px;
  border-color: #ffc107 !important;
}

.system-select-box fieldset legend {
  color: #ffc107 !important;
}

.system-select-box svg {
  color: rgb(255 255 255) !important;
}

.fieldset-group {
  border-radius: 14px;
  border-width: 1px;
  border-color: rgb(255 255 255);
  border-style: solid;
  padding: 10px;
  margin: 5px 10px;
  min-width: 264px;
  height: 84px;
  text-align: center;
}

.legend-title {
  font-size: 12px;
  color: rgb(255 255 255);
  padding: 0px 6px;
  margin: 0px;
  width: auto;
}

.status-icon {
  font-size: 60px !important;
  padding: 0px 10px;
  margin-top: -10px;
}

.drone-telemetry-panel {
  width: 280px;
  margin-top: -8px;
}

.drone-telemetry-icon img {
  height: 38px;
  margin-bottom: 2px;
}

.drone-media-icon {
  height: 38px;
}

.drone-telemetry-data {
  text-align: center;
  font-size: 14px;
}

.drone-center-icon img {
  height: 48px;
  margin-top: -22px;
}

.drone-center-icon button:focus {
  outline: none;
}

.hidden-hb {
  display: none !important;
}

.div-response {
  width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, .125);
  padding: 10px;
}

.div-response table {
  width: 100%;
}

.div-response table tr {
  height: 48px;
}

.div-response table td:last-child,
.div-response table td:nth-last-child(2) {
  width: 280px;
}

.log-download-btn {
  border-radius: 5px;
  width: 160px;
}

.css-m38smn {
  height: 0px !important;
}

.media-hidden {
  display: none !important;
}

.canvas-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.canvas-container canvas {
  width: 100%;
  height: 100%;
  border: 1px solid black;
}

.canvas-container .overlay-canvas {
  position: absolute;
  bottom: 0;
  /* Position the text at the bottom */
  left: 0;
  right: 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.5);
  /* Optional: semi-transparent background */
  padding: 10px;
  font-size: 20px;
}

.map-popup {
  z-index: 1000;
  /* Ensure this is higher than the marker's z-index */
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mapboxgl-popup-content {
  border-radius: 10px;
}

.mapboxgl-popup-anchor-bottom,
.mapboxgl-popup-anchor-bottom-left,
.mapboxgl-popup-anchor-bottom-righ {
  z-index: 100000;
}

.h8gcs-zoom-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: lime;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 30;
  font-weight: 600;
}

.h8gcs-video-square {
  stroke: lime;
  stroke-width: 2;
  fill: none;
}

.h8gcs-video-corner {
  stroke: lime;
  stroke-width: 2;
}

.h8gcs-video-svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 20;
}

.center-icon-container {
  background-color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33.99px;
  height: 33.99px;
  cursor: pointer;
}

.center-icon {
  font-size: 24px;
  /* Adjust size to match SearchIcon */
}

.search-container {
  display: flex;
  align-items: center;
  position: relative;
}

.search-icon {
  cursor: pointer;
  margin-right: 8px;
  background-color: white;
  border-radius: 50%;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
}

.search-input {
  width: 0;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: width 0.3s ease;
  opacity: 0;
  position: relative;
  z-index: 10;
}

.search-input.expanded {
  width: 200px;
  opacity: 1;
}

.suggestions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  position: absolute;
  width: 100%;
  z-index: 1000;
  max-height: 150px;
  overflow-y: auto;
  top: 100%;
  /* Position the list directly below the input */
  left: 0;
  margin-top: 4px;
  /* Add some spacing between the input and the list */
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

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

.suggestion-item:hover {
  background-color: #f0f0f0;
}

/* Device Card Styles */
.device-card {
  margin-bottom: 16px;
  min-height: 160px;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
}

.device-card-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}

.device-card-tab {
  flex: 1;
  padding: 8px;
  background: white;
  border: none;
  border-bottom: none;
  font-size: smaller;
}

.device-card-tab.active {
  background: #f0f0f0;
  border-bottom: 2px solid #1976d2;
}

.device-card-content {
  padding: 12px;
}

.device-info-row {
  display: flex;
  margin-bottom: 4px;
}

.device-info-label {
  font-weight: bold;
  min-width: 120px;
  display: inline-block;
}

/* .device-info-value - No specific styles needed */

.device-buttons {
  margin: 8px 0;
}

.device-button {
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  margin-right: 8px;
}

.device-button-operate {
  background: #1976d2;
}

.device-button-edit {
  background: #ff9800;
}

.device-button-remove {
  background: #d32f2f;
}

.device-subdevices-header {
  display: flex;
  margin-bottom: 8px;
  margin-top: 12px;
}

.device-refresh-container {
  margin-bottom: 16px;
  display: flex;
  justify-content: flex-end;
}

.device-refresh-button {
  padding: 8px 16px;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.device-refresh-button:enabled {
  background-color: #1976d2;
}

.device-refresh-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Sub-Device Styles */
.sub-device-card {
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.sub-device-content {
  padding: 12px;
}

.sub-device-info-row {
  display: flex;
  margin-bottom: 4px;
}

.sub-device-info-label {
  font-weight: bold;
  min-width: 60px;
  display: inline-block;
}

.sub-device-buttons {
  margin: 8px 0;
}

/* Alert Panel Styles */
.alert-panel {
  position: fixed;
  top: 95px;
  left: 60px;
  z-index: 1002;
}

.alert-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ff0707;
  color: #000;
  border-radius: 20px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  min-width: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.alert-counter:hover {
  background-color: #ff0707;
}

.alert-counter.has-alerts {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

.alert-icon {
  margin-right: 5px;
  font-size: 16px;
}

.alert-count {
  font-size: 14px;
  font-weight: bold;
}

.alert-list-container {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 10px;
  min-width: 300px;
  max-width: 400px;
  z-index: 1000;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #ddd;
  overflow: hidden;
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #ff0707;
  color: black;
  border-radius: 4px 4px 0 0;
  font-size: 14px;
  font-weight: bold;
}

.alert-title {
  font-weight: bold;
  font-size: 14px;
  color: inherit;
}

.alert-clear-btn {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: black;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
}

.alert-clear-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

.alert-list {
  max-height: 300px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.alert-item {
  padding: 8px 12px;
  transition: background-color 0.2s ease;
}

.alert-item:not(:last-child) {
  border-bottom: 1px solid #eee;
}

.alert-item:hover {
  background-color: #f8f9fa;
}

.alert-item.no-alerts {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 16px;
}

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

.alert-message {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  word-wrap: break-word;
  margin-bottom: 4px;
}

.alert-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
}

.alert-time {
  font-weight: 500;
}

.alert-topic {
  font-family: monospace;
  font-size: 10px;
  color: #888;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Warning Panel Styles */
.warning-panel {
  position: fixed;
  top: 140px;
  left: 60px;
  z-index: 1002;
}

.warning-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ff9800;
  color: #fff;
  border-radius: 20px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  min-width: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.warning-counter:hover {
  background-color: #fb8c00;
}

.warning-counter.has-warnings {
  animation: warning-pulse 2s infinite;
}

@keyframes warning-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
  }
}

.warning-icon {
  margin-right: 5px;
  font-size: 16px;
}

.warning-count {
  font-size: 14px;
  font-weight: bold;
}

.warning-list-container {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 10px;
  min-width: 300px;
  max-width: 400px;
  z-index: 1000;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #ddd;
  overflow: hidden;
}

.warning-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #ff9800;
  color: white;
  border-radius: 4px 4px 0 0;
  font-size: 14px;
  font-weight: bold;
}

.warning-title {
  font-weight: bold;
  font-size: 14px;
  color: inherit;
}

.warning-clear-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
}

.warning-clear-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.warning-list {
  max-height: 300px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.warning-item {
  padding: 8px 12px;
  transition: background-color 0.2s ease;
}

.warning-item:not(:last-child) {
  border-bottom: 1px solid #eee;
}

.warning-item:hover {
  background-color: #fff8f0;
}

.warning-item.no-warnings {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 16px;
}

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

.warning-message {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  word-wrap: break-word;
  margin-bottom: 4px;
}

.warning-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
}

.warning-time {
  font-weight: 500;
}

.warning-topic {
  font-family: monospace;
  font-size: 10px;
  color: #888;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}