html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: row;
  font-family: "Roboto", Arial, sans-serif;
  background-color: #f4f7fb;
}

/* Map styles */
#myMap {
  width: 100vw;
  height: 60vh;
  flex-shrink: 0;
  position: absolute;
  top: 44px;
}

.tabs {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  width: 100vw;
  justify-content: space-between;
}

.save-doc {
  display: flex;
  justify-content: space-between;
  height: fit-content;
  width: inherit;
  max-width: max-content;
}
.doc-input {
  margin-right: 8px;
}

.save-doc-btn {
  padding-bottom: 8px;
  width: auto;
  margin: 2px 8px;
}

/* Panel styles */
#panel {
  width: 100vw;
  position: absolute;
  padding: 4px 0;
  left: 0;
  bottom: 0;
  background-color: white;
  right: 0;
  bottom: 0;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  height: calc(40vh - 44px);
  overflow-y: hidden;
  display: flex;
  gap: 4px;
  /* 
  justify-content: space-between; */
}

/* Table styles */

.table-wrapper {
  width: 100%;
  max-height: 300px; /* Set the max height for the scrollable area */
  overflow-y: auto; /* Enable vertical scroll */
}

table {
  width: 100%;
}

table th,
table td {
  padding: 8px;
  text-align: start;
  font-size: 12px;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
  vertical-align: middle;
}

table td input,
table td select {
  width: 100%;
  padding: 6px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: left;
}
table td button {
  padding: 6px 10px;
  font-size: 12px;
  border: none;
  background-color: #e53e3e;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  text-transform: uppercase;
}

table tr:hover {
  background-color: #f1f1f1;
}

table tbody {
  max-height: 200px;
  overflow-y: auto;
}

/* 
table thead {
  display: table;
  width: 100%;
  table-layout: fixed;
} */

/* tr {
  width: 100%;
  display: inline-table;
}
*/

/* Marker addition section */
#addMarker {
  background-color: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 16px;
}

#addMarker h5 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

#addMarker div {
  display: flex;
  align-items: center;
  gap: 12px;
}

#addMarker input[type="number"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

#addMarker button {
  padding: 10px 16px;
  background-color: #0078d4;
  color: white;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#addMarker button:hover {
  background-color: #005a9e;
}

.marker-number {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 6px 10px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}

/* Panel Sections */
.panel-section {
  background-color: #f9f9f9;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: auto;
  height: 100%;
}

/* Section Headers */
.panel-section h6 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #0078d4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-section h6 i {
  font-size: 18px;
  color: #0078d4;
}

/* Action Buttons */
.panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.panel-actions button {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.panel-actions button.save {
  background-color: #28a745;
  color: white;
}

.panel-actions button.reset {
  background-color: #dc3545;
  color: white;
}

.panel-actions button:hover {
  opacity: 0.9;
}

/* Stats Area */
.stats-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #555;
  background-color: #f4f7fb;
  padding: 8px;
  border-radius: 4px;
  margin-top: 12px;
}

/* Panel Section Styling */
.panel-section {
  background-color: #f9f9f9; /* Light gray background */
  border: 1px solid #ddd; /* Subtle border */
  border-radius: 8px; /* Rounded corners */
  padding: 4px; /* Add spacing inside the section */
  margin-bottom: 4px; /* Space between sections */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

/* Section Header */
.panel-section h6 {
  font-size: 1rem; /* Slightly larger font size */
  font-weight: bold; /* Bold header */
  color: #0078d4; /* Accent color for header */
  margin-bottom: 12px; /* Space below the header */
  display: flex;
  align-items: center;
  gap: 8px; /* Space between icon and text */
}

/* Input Styling */
.panel-section label {
  font-size: 14px; /* Label font size */
  color: #333; /* Darker text for contrast */
  display: block;
  margin-bottom: 6px; /* Space below label */
}

.panel-section input {
  width: 100%; /* Full-width input */
  padding: 8px; /* Inner spacing */
  font-size: 14px; /* Consistent font size */
  border: 1px solid #ccc; /* Subtle border */
  border-radius: 4px; /* Rounded corners */
  box-sizing: border-box; /* Ensure proper sizing */
  outline: none; /* Remove focus outline */
  transition: border-color 0.2s ease-in-out; /* Smooth transition on focus */
}

.panel-section input:focus {
  border-color: #0078d4; /* Highlighted border on focus */
  box-shadow: 0 0 4px rgba(0, 120, 212, 0.2); /* Subtle glow effect */
}

/* Panel Actions Buttons */
.panel-actions {
  display: flex; /* Arrange buttons in a row */
  gap: 12px; /* Space between buttons */
  margin-top: 16px; /* Space above buttons */
}

.panel-actions button {
  padding: 10px 16px; /* Add spacing inside buttons */
  font-size: 14px; /* Button font size */
  color: #fff; /* White text */
  border: none; /* Remove default border */
  border-radius: 4px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor */
  transition: background-color 0.3s ease-in-out; /* Smooth hover effect */
}

.panel-actions .save {
  background-color: #0078d4; /* Primary button color */
}

.panel-actions .save:hover {
  background-color: #005a9e; /* Darker shade on hover */
}

.panel-actions .reset {
  background-color: #e53e3e; /* Red for reset button */
}

.panel-actions .reset:hover {
  background-color: #c53030; /* Darker red on hover */
}

/* Allow the parent to expand flexibly */
.panel-section {
  display: flex;
  flex-direction: column;
  flex: 1; /* Takes full height of its parent container */
  border: 1px solid #ddd;
  border-radius: 0;
  background-color: #fff;
  margin-bottom: 1rem;
  gap: 0.5rem;
  overflow: hidden; /* Ensure no overflow from children */
}

.panel-section h6 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
  flex-shrink: 0; /* Prevents shrinking */
}

/* Missions Wrapper */
.missions-wrapper {
  flex: 1; /* Fills remaining space of parent dynamically */
  overflow-y: auto; /* Enables scrolling when content overflows */
  padding-right: 0.5rem; /* Avoids scrollbar overlap */
}

/* Scrollbar styling */
.missions-wrapper::-webkit-scrollbar {
  width: 8px;
}

.missions-wrapper::-webkit-scrollbar-thumb {
  background-color: #0078d4;
  border-radius: 4px;
}

.missions-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #005a9e;
}

.mission-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mission-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.mission-time {
  font-size: 12px;
  color: #666;
}

.mission-actions {
  display: flex;
  gap: 0.5rem;
}

.edit-btn,
.delete-btn {
  width: auto;
  padding: 0.6rem 1rem;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-btn {
  background-color: #0078d4;
  color: white;
}

.edit-btn:hover {
  background-color: #005a9e;
}

.delete-btn {
  background-color: #e53e3e;
  color: white;
}

.delete-btn:hover {
  background-color: #c53030;
}

.delete-btn img {
  width: 18px;
  pointer-events: none;
}

.date-range-picker {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.date-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

label {
  font-size: 14px;
  color: #666;
}

input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  display: block;
  width: 100%;
  padding: 8px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  /* background-color: #005f87; */
}

#output {
  margin-top: 20px;
  padding: 10px;
  background-color: #eef;
  border: 1px solid #cce;
  border-radius: 4px;
  display: none;
}

.mission-rules {
  background-color: #ffffff;
  width: 100vw;
  height: calc(100vh - 42px);
  position: absolute;
  bottom: 0;
}

.nav-link {
  background-color: transparent;
  font-size: 1rem;
}
