#mission-list {
  width: 300px;
  padding: 20px;
  border-right: 1px solid #ddd;
  background-color: #f8f8f8;
  height: 100%;
  overflow-y: auto;
  /* Allow scrolling if the list is long */
  flex-shrink: 0;
}

#mission-list h3 {
  text-align: center;
  margin-bottom: 10px;
}

#mission-list ul {
  list-style: none;
  padding-left: 0;
}

#mission-list li {
  background-color: #0078d4;
  color: white;
  padding: 10px;
  margin: 10px 0;
  cursor: pointer;
  border-radius: 4px;
}

#mission-list li:hover {
  background-color: #005fa3;
}

/* Full Calendar Container */
#calendar {
  flex: 1;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#calendar-container {
  flex: 1;
  /* Allow calendar to expand */
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* FullCalendar adjustments */
.fc-day-grid-container {
  overflow: auto;
  max-height: calc(100vh - 100px);
  /* Adjust based on the available height */
}

/* FullCalendar custom toolbar margin */
.fc-toolbar {
  margin-bottom: 20px;
}

/* Additional adjustments for ensuring the days don't overflow */
.fc-view-container {
  overflow: hidden;
  /* Prevent overflow */
}

/* Adjust the header size */
.fc-toolbar {
  margin-bottom: 10px;
}

.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 */
}

.bg-color {
  background-color: rgba(0, 120, 212, 0.1) !important;
}

/* Style the list container */
.basic-list,
.missions-list {
  list-style: none;
  /* Remove default bullets */
  padding: 0;
  /* Remove default padding */
  margin: 0rem 0;
  /* Add spacing */
}

.basic-list,
.missions-list {
  font-size: 1rem;
}

.selected {
  font-weight: bold;
}

.basic-list li {
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #ffffff;
  font-weight: 300;
}

/* Initially hide the span */
.show-on-hover {
  display: none;

  /* Make the text in the span blue */
  cursor: pointer;
  /* Change cursor to pointer to indicate interaction */
}

.drone-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  background-color: #fbfbfb;
  color: #333333;
  padding: 4px;
  /* margin: 2px 0; */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  width: auto;
  /* height: max-content; */
}

.card-content {
  display: flex;
  justify-content: space-between;
}

.text-content {
  display: flex;
  padding: 8px;
  justify-content: space-around;
  flex-direction: column;
  /* margin-bottom: auto; */
}

.mission-name {
  font-weight: 600;
}

/* .time {
  font-size: 0.9em;
  color: #555555;
  margin-bottom: 8px;
} */

.time {
  font-size: 0.9rem;
  color: #333;
  background-color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: max-content;
  background-color: rgba(0, 119, 182, 1); /* 0.3 is low opacity */
  color: #fff;
  margin-left: auto;
}

h5 {
  font-size: 1.1em;
  color: #e4e8ec;
}

.flight-time,
.status {
  margin-top: 4px;
  color: #333333;
}

.drone-name {
  margin-top: 4px;
  display: flex;
}

.drone-name img,
.flight-time img {
  width: 20px;
  height: 20px !important;
  margin-right: 8px;
}

@media (max-width: 600px) {
  .card-content {
    flex-direction: column;
  }
}

.card-content {
  padding: 0;
}

.map-container {
  margin-top: 18px;
  background-color: #bdb7b7;
  width: 50%;
  height: 90vh;
  padding: 4px;
}

iframe {
  position: absolute;
  width: calc(100vw - 54px);
  top: 56px;
  right: 0;
  height: calc(100vh - 56px);
  pointer-events: all;
}

.saved-mission-lists {
  width: 100%;
}

.delete-btn {
  padding: 4px 15px;
  /* Add padding for better click area */
  font-size: 1rem;
  /* Font size */
  color: white;
  /* Text color */
  background-color: red;
  /* Red background */
  border: none;
  /* Remove default border */
  border-radius: 5px;
  /* Rounded corners */
  cursor: pointer;
  /* Pointer cursor on hover */
  transition: background-color 0.3s, transform 0.2s;
  /* Smooth transitions */
}

/* Button hover effect */
.delete-btn:hover {
  background-color: darkred;
  /* Darker red when hovering */
  /* transform: scale(1.1); */
  /* Slightly enlarge the button */
}

/* Button active effect (when clicked) */
.delete-btn:active {
  transform: scale(0.9);
  /* Shrink the button when clicked */
}

#setDateTime {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 5rem;
  background-color: #f4f4f4;
  /* Light background */
  border-radius: 8px;
  /* Rounded corners */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for a nice effect */
  width: 300px;
  /* Set a fixed width */
  border: 1px solid #ddd;
  /* Light border */
  width: 100%;
}

h6 {
  margin: 10px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  /* Dark color for text */
}

#datepicker,
#timepicker {
  padding: 10px;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  /* Light border for inputs */
  margin-bottom: 12px;
  /* Spacing between inputs */
  width: 100%;
  /* Full width for inputs */
  box-sizing: border-box;
  /* Ensure padding doesn't affect width */
}

#datepicker:focus,
#timepicker:focus {
  outline: none;
  border-color: #007bff;
  /* Highlight border color on focus */
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.25);
  /* Subtle blue glow */
}

.sched-btn {
  background-color: var(--primary-color);
  /* Blue background for the button */
  color: #fff;
  /* White text */
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s;
  /* Center align button */
}

.sched-btn:hover {
  /* background-color: #0056b3; */
  /* Darker blue on hover */
}

.sched-btn:active {
  background-color: #00408a;
  /* Even darker blue on click */
}

.mission-name-title {
  display: flex;
}

.mission-name-title span {
  margin: auto;
}

.card-body {
  padding: 4px;
}
.card-body h6 {
  margin: 4px 0;
}

.past-missions {
  background-color: #dbdfe1;
  position: absolute;
  bottom: 0;
  right: 0;
  height: calc(100% - 56px);
  width: calc(100vw - 50px);
  display: flex;
  flex-direction: column;
}

.past-missions-map-container {
  width: 100%;
}

/* Container to hold the cards */
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  width: max-content;
  transition: 0.3s;
  height: fit-content;
  margin-bottom: 16px;
}

/* Default card styling */
.drone-card {
  flex: 1 1 calc(33% - 8px);
  /* This makes each card take up 1/3 of the container */
  max-width: 350px;
  /* Ensures that the card won't exceed a third of the container width */
  min-width: 220px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: white;
  overflow: hidden;
  transition: 0.3s ease-in-out;
}

/* Image settings to make them responsive */
.drone-card img {
  height: 13rem;
  object-fit: cover;
  border-radius: 8px;
}

/* Container for the calendar */
.calendar {
  position: relative;
  display: inline-block;
  width: auto;
}

/* Style for the input field */
#datepicker {
  width: 100%;
  padding: 10px 40px 10px 15px;
  /* Extra space for the calendar icon */
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
}

/* Unicode calendar icon inside the input field */
#datepicker::before {
  content: "\1F4C5";
  /* Unicode for calendar icon */
  font-size: 18px;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: #666;
  /* Icon color */
}

/* Focus effect */
#datepicker:focus {
  outline: none;
  border-color: #0077b6;
  /* Change border color when focused */
}

/* Optional: Customize the placeholder text */
#datepicker::placeholder {
  color: #aaa;
}

/* Basic styles for pagination controls */
#paginationControls {
  display: flex;
  align-items: center;
  margin: 20px 8px;
}

#paginationControls button {
  background-color: rgba(0, 119, 182, 1);
  /* Retains the primary color */
  color: white;
  border: 1px solid rgb(55, 101, 126);
  /* Border color */
  width: 40px;
  /* Set a fixed width */
  height: 40px;
  /* Set a fixed height to make it circular */
  border-radius: 50%;
  /* Makes it circular */
  cursor: pointer;
  font-size: 14px;
  /* Adjust font size to fit the smaller button */
  text-align: center;
  /* Centers the text */
  line-height: 38px;
  /* Centers the text vertically */
  margin: 0 5px;
  /* Keep some spacing between buttons */
  transition: background-color 0.3s, border-color 0.3s;
}

#paginationControls button:hover {
  background-color: rgba(0, 90, 140, 1);
  /* Slightly darker on hover */
  border-color: rgba(0, 77, 123, 1);
  /* Darker border on hover */
}

#paginationControls button:disabled {
  background-color: #c0c0c0;
  border-color: #c0c0c0;
  cursor: not-allowed;
}

#paginationControls button:hover:not(:disabled) {
  background-color: rgba(0, 119, 182, 1);
  border-color: rgb(6, 76, 114);
}

#currentPage {
  font-size: 16px;
  margin: 0 10px;
}

/* Ensure parent container takes full height of the viewport */
#parentContainer {
  display: flex;
  flex-direction: column;
  width: fit-content;
  padding-left: 8px;
  margin-top: 1rem;
}

/* Optional: If you want to set constraints on the map container */
#mapContainer {
  border-radius: 8px;
  width: 650px;
  height: fit-content;
}

.mission-detail {
  display: inline-flex;
  align-items: center;
  color: rgba(0, 119, 182, 1);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mission-detail:hover {
  text-decoration: underline;
  /* Underline text on hover */
}

.arrow {
  margin-left: 8px;
  /* Add some space between text and the arrow */
  font-size: 18px;
  /* Arrow size */
  transition: transform 0.3s ease;
  /* Smooth arrow transition */
}

.mission-detail:hover .arrow {
  transform: translateX(5px);
  /* Arrow moves slightly on hover */
}

.no-data-available {
  display: none;
  position: absolute;
  /* Ensures it is visible when set to block */

  top: 0;
  /* Position from the top */
  left: 50%;
  /* Position from the left */
  transform: translate(-50%, 0);

  font-size: 16px;
  /* Sets the font size */
  font-weight: bold;
  /* Makes the text bold */
  color: #ff4d4f;
  /* Sets the text color (red for emphasis) */
  background-color: #fff3f3;
  /* Light red background for contrast */
  border: 1px solid #ff4d4f;
  /* Adds a border matching the text color */
  border-radius: 5px;
  /* Rounds the corners */
  padding: 10px 20px;
  /* Adds spacing inside the element */
  text-align: center;
  align-items: center;
  /* Centers the text */
  margin: 20px auto;
  /* Adds spacing around the element and centers it */
  width: fit-content;
  /* Adjusts width to fit content */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.columns {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 50%;
  height: 100%;
}

.scrollbar-container {
  max-height: 50vh;
  overflow-y: auto;
  width: 100%;
  border: 1px solid #ddd;
  padding: 4px;
}

.schedule-mission {
  position: absolute;
  right: 0;
  background-color: #fff;
  width: calc(100vw - 50px);
  top: 56px;
  height: calc(100vh - 56px);
}

.card-header {
  background: var(--primary-color);
}

.disabled-card {
  opacity: 0.5;
  pointer-events: none;
}

.disabled-input {
  background-color: #e9ecef;
  border: 1px solid #ddd;
  cursor: not-allowed;
}

.disabled-btn {
  background-color: #6c757d;
  border-color: #6c757d;
  cursor: not-allowed;
}

.disabled-btn:hover {
  background-color: #6c757d;
}

#drones-list li {
  padding: 2px 8px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #ffffff;
  font-weight: 300;
}

#drones-list li:hover {
  background-color: rgba(0, 120, 212, 0.1);
  border-radius: 4px;
}
