

/* body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
} */

/* modal styles starts */
:root {
  --background-dark: #1a1a1a;
  --surface-dark: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --button-hover: #374151;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: var(--surface-dark);
  color: var(--text-primary);
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: background-color 0.2s;
  width: 44px;
  height: 44px;
}

.close-button:hover {
  background-color: var(--button-hover);
}

.timeline {
  position: relative;
  padding-left: 30px;
  margin-bottom: 24px;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--accent-blue);
  border-radius: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -16px;
  top: 20px;
  width: 1px;
  height: calc(100% - 15px);
  background: var(--text-secondary);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
  padding-top: 3px;
}

.timeline-info {
  font-size: 12px;
  color: var(--text-secondary);
}

#countdown {
  color: var(--accent-red);
  font-weight: bold;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--button-hover);
}

.action-button {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid;
  background-color: transparent;
}

.button-primary {
  border-color: #626262;
  color: #bab9b9;
  font-size: 13px;
}

.button-primary:hover {
  background: #2563eb;
}

.button-secondary {
  background: var(--button-hover);
  color: var(--text-primary);
}

.button-secondary:hover {
  background: #4b5563;
}

.button-danger {
  border-color: #ad0505;
  color: #ad0505;
}

.button-danger:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* Trigger button styling */
.trigger-button {
  padding: 12px 24px;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.trigger-button:hover {
  background: #2563eb;
}
/* modal styles end */

.nav-menu {
  display: none; /* Hide by default */
  font-weight: 450;
  opacity: 85%;
}

/* Show nav menu only on screens wider than 768px */
@media (min-width: 769px) {
  .nav-menu {
      display: flex;
      gap: 1rem;
  }
}

.nav-menu a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--secondary-color);
}

#cesiumContainer {
  flex: 1;
  border: 0.5px solid var(--primary-color);
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#sidePanel {
  border: none;  /* Remove solid border */
  border-radius: 20px;  /* Rounded corners */
  background-color: rgba(50, 50, 50, 0.85);  /* Darker, more transparent */
  color: #FFFFFF;  /* Light text */
  padding: 20px;  /* Padding for space inside */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);  /* Add shadow for depth */
  font-family: 'Arial', sans-serif;  /* Cleaner, modern font */

}

button {
  background-color: #444;  /* Darker button */
  color: white;  /* White text */
  border: none;  /* Remove border */
  padding: 10px;  /* Padding inside button */
  border-radius: 8px;  /* Rounded button */
  cursor: pointer;  /* Pointer cursor for interactivity */
}

button:hover:not([disabled])  {
  background-color: #555;  /* Slight hover effect */
}

h3 {
  color: #FFFFFF;  /* Light heading color */
  font-size: 18px;  /* Slightly larger heading */
  margin: 0px;
  font-family: "Noto Sans", sans-serif;
  opacity: .85;
  font-weight: 400;
}

#timelinePanel {
  position: absolute;
  bottom: 100px;  /* Floating near the bottom */
  left: 20px;  /* Floating to the left */
  width: 450px;
  background-color: rgba(50, 50, 50, 0.85);
  color: #FFFFFF;
  padding: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  z-index: 100; /* Make sure it's above other elements */
  display: block; /* Initially visible */
  transition: all 0.3s ease-in-out;
}

#timelineBarContainer {
  max-height: 120px;
  overflow-x: auto;
  display: flex;
  gap: 10px;
  padding: 10px;
}

#timelineBar {
  display: flex;                /* Use flexbox to align items in a row */
  gap: 10px;                    /* Space between the images */
  overflow-x: auto;             /* Allow horizontal scrolling if the timeline gets too long */
  padding-top: 10px;
}

.timeline-entry {
  width: 50px;                  /* Set fixed width for each image */
  height: 50px;                 /* Set fixed height for each image */
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s ease;
  overflow: hidden;             /* Ensure image fits within the container */
}

.timeline-entry img {
  width: 100%;                  /* Make the image fill the container */
  height: 100%;
  object-fit: cover;            /* Scale image without distorting aspect ratio */
}

.timeline-entry:hover {
  transform: scale(1.1);        /* Slight zoom on hover */
}


#captureViewButton {
  margin-top: 10px;
  background-color: #444;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-family: "Noto Sans", sans-serif;
  opacity: .85;
  font-weight: 400;
}

#captureViewButton:hover {
  background-color: #555;
}

#exportStateButton {
  margin-top: 10px;
  background-color: #444;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-family: "Noto Sans", sans-serif;
  opacity: .85;
  font-weight: 400;
}

#exportStateButton:hover {
  background-color: #555;
}

#fileInputLabel {
  margin-top: 10px;
  background-color: #444;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-family: "Noto Sans", sans-serif;
  font-size: 13px;
  opacity: .85;
  font-weight: 400;
}

#fileInputLabel:hover {
  background-color: #555;
}

#timelineToggleButton {
  position: absolute;
  bottom: 100px;
  left: 480px; /* Positioned next to the panel */
  background-color: #444;
  color: white;
  padding: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 100;
  transition: background-color 0.3s ease;
}

#timelineToggleButton:hover {
  background-color: #555;
}

/* Hide buttons initially */
#collapsibleButtons {
  display: none;
}

/* Custom styling for file input */
.custom-file-upload {
  display: inline-block;
  padding: 10px;
  background-color: #444;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.custom-file-upload:hover {
  background-color: #555;
}

input[type="file"] {
  display: none;
}

#mainToolbar {
  position: absolute;
  top: 100px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  bottom: 90px;
}

#scenarioPanel {
  color: #FFFFFF;
  padding: 10px 15px;
  padding-bottom: 0px;
  font-family: "Noto Sans", sans-serif;
  display: flex;
  flex-direction: column;
  z-index: 100;
  width: 320px;
}

#scenarioButtons {
  align-items: center;
  display: flex;
  gap: 4px;
}

#toolbarPanel {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: #FFFFFF;
  padding: 10px 0px;
  font-family: "Noto Sans", sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  align-items: flex-start;
}

#toolbarPanel button {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  width: 100%;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#toolbarPanel button:hover {
  background-color: #555;
}

#scenarioText {
  font-size: 14px;
  opacity: 0.85;
  font-weight: 400;
}

.scenario-button {
  background-color: #444;
  color: white;
  border: none;
  
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 12px;
  
  padding: 0px;
  min-width: 24px;
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scenario-button:hover {
  background-color: #555;
}

#fovPanel {
  background-color: rgba(50, 50, 50, 0.85);
  color: #FFFFFF;
  padding: 10px 15px;
  border-radius: 10px;
  font-family: "Noto Sans", sans-serif;  
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

#fovLabel {
  font-weight: 400;
  opacity: 0.85;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 14px;
}

.responsePanel {
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  padding: 0px 15px;
  font-family: "Noto Sans", sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  align-items: flex-start;
}

.responsePanel button {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  width: 100%;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.responsePanel button:hover {
  background-color: #555;
}

.responsePanel button:disabled {
  background-color: transparent;
  cursor: auto;
}

#watchtowerPanel {
  color: #FFFFFF;
  font-family: "Noto Sans", sans-serif;  
  align-items: center;
  gap: 10px;
  z-index: 100;
}

#itemsContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  left: 0px;
  opacity: 1;
  transition: all ease-in-out 0.3s;
  background-color: rgba(50, 50, 50, 0.85);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.hideSideMenu {
  left: -400px !important;
  opacity: 0 !important;
}

.todaysMetrics {
  color: #FFFFFF;
  padding: 10px 15px;
  font-family: "Noto Sans", sans-serif;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 100;
  width: 320px;
  border-top: 0.5px solid gray;
}

.metricsRow {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 12px;
}

.metricsRow span{ 
  text-align: right;
}


@keyframes fadeBgAnimation {
  0%    { background-color: rgba(0, 255, 238, 0); }
  50%   { background-color: rgba(0, 255, 238, 1); }
  100%   { background-color: rgba(0, 255, 238, 0); }
}

.fadeBgClass {
  animation: fadeBgAnimation 0.5s;
}
