/* Iframes */
.video_wrapper {
  z-index: 0;
  margin-left: 200px;
  transition: 0.3s;
  position: absolute;
  width: 18rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap; /* Allows items to wrap onto new lines */
  height: 100%;
  /* top: 3.7rem; */
  top: 56px;
  padding: 0;
  bottom: 0rem;
  display: flex;
  font-size: 80%;
  overflow-x: scroll;
  /* float: left; */
  background: #fdfefc;
  /* justify-content: space-evenly; */
}

.video_wrapper::-webkit-scrollbar {
  width: 1rem;
  height: 1rem; /* width of the entire scrollbar */
}

.video_wrapper::-webkit-scrollbar-track {
  background-color: var(--primary-bg-color); /* color of the tracking area */
}

.video_wrapper::-webkit-scrollbar-thumb {
  background-color: rgb(0, 0, 0); /* color of the scroll thumb */
  border-radius: 1rem; /* roundness of the scroll thumb */
  border: 0.25rem solid var(--secondary-color); /* creates padding around scroll thumb */
}

/* Style for the sidebar container */
.sidebar1 {
  width: 100%;
  /* Adjust width as needed */
  height: 100%;
  /* Full viewport height */
  overflow-y: auto;
  /* Vertical scrolling if content overflows */
  position: relative;
  background: transparent;
  border-right: 1px solid #ddd;
  box-sizing: border-box;
}

.collapsible {
  background-color: transparent;
  color: white;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1rem;

  margin-bottom: 5px;
  align-items: center;
}

.drones-count {
  display: flex;
}

.count {
  margin: 0 10px;
  font-size: 18px;
  font-family: var(--font-family);
  font-weight: bold;
  color: #e9dbdb;
  /* Adjust color as needed */
}

/* Style for collapsible content */
.collapsible-content {
  display: block;
  overflow-y: auto;
  /* Adjust height based on your needs */
  background: transparent;
  transition: max-height 0.3s ease;
}

.open {
  /* Allow vertical scrolling */
  max-height: calc(50vh - 10rem);
  overflow-x: hidden;
}

#onlineDrones {
  /* Allow vertical scrolling */
  max-height: calc(50vh - 10rem);
  overflow-x: hidden;
}

#offlineDrones {
  max-height: calc(50vh);
  overflow-x: hidden;
}

/* Style for status dots */
.status-dot.online {
  background-color: green;
}

.status-dot.offline {
  background-color: red;
}

.online {
  flex-grow: 1;
  border: none;
  color: white;
  text-align: left;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--success-color);
  /* Green */
  transition: background-color 0.3s;
}

.collapsible-icon {
  display: inline-block;
  color: white;
  transition: transform 0.3s ease;
}

@keyframes rotateRight {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

@keyframes rotateLeft {
  from {
    transform: rotate(180deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes rotateFromCurrent {
  to {
    transform: rotate(180deg);
  }
}

/* Class that triggers the animation */
.rotate-180 {
  animation: rotateFromCurrent 0.5s forwards; /* Duration and fill mode */
}
.collapsible-content {
  display: none;
  /* Hide content by default */
}

.offline {
  flex-grow: 1;
  border: none;
  color: white;
  text-align: left;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  transition: background-color 0.3s;
  background-color: var(--danger-color);
}

/* Remove bullet points from <li> elements */
ul.collapsible {
  list-style-type: none;
  /* Hides the bullet points */
  padding: 0;
  /* Removes default padding */
  margin: 0;
  /* Removes default margin */
}

.notification-icon {
  margin-right: 8px;
  font-size: 24px;
  /* Adjust icon size */
}

.notification-title {
  flex-grow: 1;
  font-size: 14px;
  /* Adjust title size */
  font-weight: normal;
}

/* Expand Icon */
.collapsible-expand {
  font-size: 24px;
  /* Icon size for expand/collapse */
  color: #757575;
  /* Gray color for icon */
}

/* Collapsible Body Styles */
.collapsible-body {
  background-color: #f1f1f1;
  /* Light background for content */
  max-height: 300px;
  /* Set a maximum height */
  overflow-y: auto;
  /* Enables vertical scrolling */
  /* Custom scrollbar styles for WebKit browsers (Chrome, Safari) */
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: #c0c0c0 #f1f1f1;
  /* Firefox scrollbar color */
}

/* WebKit scrollbar styling for Chrome, Safari */
.collapsible-body::-webkit-scrollbar {
  width: 8px;
  /* Width of the scrollbar */
}

.collapsible-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Background color of the track */
}

.collapsible-body::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  /* Color of the scroll thumb */
  border-radius: 4px;
  /* Rounded corners for the scrollbar thumb */
}

.collapsible-body::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
  /* Darker color when hovering over the thumb */
}

/* Specific Notification Styles */
.notification.error {
  border-left: 5px solid #e57373;
  /* Red border for errors */
}

.notification.info {
  border-left: 5px solid #64b5f6;
  /* Blue border for info */
}

.notification.success {
  border-left: 5px solid #81c784;
  /* Green border for success */
}

.notification {
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
  color: #fff;
}

.notification.error {
  background-color: #ff746c;
  /* Red */
}

.notification.info {
  background-color: #3a6f9e;
  /* Blue */
}

.notification.success {
  background-color: #90ee90;
  /* Green */
}

.notification-content {
  display: none;
}

.notification-icon {
  max-width: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

.notification-title {
  font-weight: bold;
}

.collapsible-expand {
  margin-left: auto;
  color: #4b4e4c;
  transition: transform 0.3s ease;
}

/* Remove bullet points from <li> elements */
ul.collapsible {
  list-style-type: none; /* Hides the bullet points */
  padding: 0; /* Removes default padding */
  margin: 0; /* Removes default margin */
}

/* Header of Collapsible Items */
.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 12px;
  background-color: #e0e0e0; /* Light gray background */
  border-bottom: 1px solid #ddd; /* Border between items */
  cursor: pointer; /* Pointer cursor for collapsible header */
  transition: background-color 0.3s ease;
}

.notification-icon {
  margin-right: 8px;
  font-size: 24px; /* Adjust icon size */
}

.notification-title {
  flex-grow: 1;
  font-size: 14px; /* Adjust title size */
  font-weight: bold;
}

/* Expand Icon */
.collapsible-expand {
  font-size: 24px; /* Icon size for expand/collapse */
  color: #757575; /* Gray color for icon */
}

/* Collapsible Body Styles */
.collapsible-body {
  padding: 0;
  background-color: #f1f1f1; /* Light background for content */
  max-height: 300px; /* Set a maximum height */
  overflow-y: auto; /* Enables vertical scrolling */
  /* Custom scrollbar styles for WebKit browsers (Chrome, Safari) */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #c0c0c0 #f1f1f1; /* Firefox scrollbar color */
  overflow-x: hidden;
}

/* WebKit scrollbar styling for Chrome, Safari */
.collapsible-body::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
}

.collapsible-body::-webkit-scrollbar-track {
  background: #f1f1f1; /* Background color of the track */
}

.collapsible-body::-webkit-scrollbar-thumb {
  background: #c0c0c0; /* Color of the scroll thumb */
  border-radius: 4px; /* Rounded corners for the scrollbar thumb */
}

.collapsible-body::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0; /* Darker color when hovering over the thumb */
}

/* Specific Notification Styles */
.notification.error {
  border-left: 5px solid #e57373; /* Red border for errors */
}

.notification.info {
  border-left: 5px solid #64b5f6; /* Blue border for info */
}

.notification.success {
  border-left: 5px solid #81c784; /* Green border for success */
}
/* Main video wrapper container */
.video_wrapper {
  position: absolute;
  bottom: 2rem;
  width: 18rem;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: white;
  margin-left: 50px;
  z-index: 999;
}

.drone-status-title {
  display: none;
  background-color: #f5f5f5;
  /* Light gray background */
  padding: 15px;
  text-align: left;
  border: 1px solid #e0e0e0;
  /* Light border around */
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.drone-status-title h5 {
  margin-bottom: 10px;
  color: #0077b6;
  /* Primary blue for title */
  font-size: 14px;
  font-weight: 600;
}

.drone-status-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drone-status-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  /* Light separator between items */
  font-size: 12px;
  color: #333333;
  /* Dark gray text */
  font-weight: 500;
}

.drone-status-list li:last-child {
  border-bottom: none;
  /* Remove border from the last item */
}

.drone-status-list span {
  font-weight: bold;
  color: #0077b6;
  /* Primary color for numbers */
}

/* Collapsible header section */
.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 0.8rem 1.2rem; */
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.collapsible-header:hover {
  background-color: #f1f3f4;
  /* Hover effect for better interaction */
}

/* Notification styles for Total, Online, and Offline Drones */
.notification {
  display: flex;
  align-items: center;
}

.notification .notification-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.notification .count {
  font-size: 1.2rem;
  font-weight: bold;
  color: #212121;
}

.notification-title {
  font-weight: normal;
  color: var(--primary-color);
  font-size: 1rem;
}

.collapsible-expand {
  font-size: 1.5rem;
  cursor: pointer;
}

/* Specific styles for Total, Online, and Offline */
.notification.info {
  background: #fff;
  border-left: 4px solid #42a5f5;
}

.notification.success {
  background: #fff;
  border-left: 4px solid #66bb6a;
}

.notification.error {
  background: #fff;
  border-left: 4px solid #ef5350;
}

/* Collapsible body */
.collapsible-body {
  background-color: #f9f9f9;
  border-left: 4px solid #e0e0e0;
  margin-bottom: 1rem;
  border-radius: 4px;
}

/* Small screen iframe styles */
.small-screen-iframe {
  width: 100%;
  pointer-events: none;
  border: none;
  border-radius: 4px;
  background-color: #000;
}

.drone-info {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  color: #333;
}

.drone-info h5 {
  margin: 0;
  font-size: 1rem;
  color: #ff7f00;
}

.drone-info p {
  margin: 0.2rem 0;
  font-size: 0.85rem;
  color: #0077b6;
}

.iframe_div {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 2px 4px;
  width: 100%;
  text-align: center;
  cursor: pointer;
  margin: 0.5rem 0;
  transition: background-color 0.3s ease;
}

.iframe_div:hover {
  background-color: #f0f0f0;
  /* Slightly change background on hover */
}

.drone-button-card {
  display: flex;
  justify-content: space-between;
  text-align: center;
  padding: 2px 4px;
}

.drone-button-card h5 {
  font-weight: normal;
  margin: 5px 0;
  color: #333;
  font-size: 1rem;
}

.warning-text {
  margin-top: 10px;
  color: #dc3545;
  font-size: 12px;
  font-weight: bold;
  display: block;
}

.rotate-icon {
  display: inline-block;
  /* Ensure the element is treated as a block for rotation */
  transition: transform 0.3s ease;
  /* Smooth transition */
}

.rotate-icon.rotated {
  transform: rotate(0.5turn);
  /* Rotate 180 degrees */
}

.drone-feed-container {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: center;
}

.drone-info {
  font-size: 16px;
  margin-bottom: 10px;
}

.drone-id {
  font-weight: bold;
}
