/**
 * Enhanced CSS for Drone Image Selector
 */

 body {
  font-family: 'Roboto', sans-serif;
  background: #f9fafb;
  color: #333;
  margin: 0;
  padding: 0;
}

.header {
  background: #004d99;
  color: white;
  text-align: center;
  padding: 20px 0;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: bold;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: #eef3f8;
  border-bottom: 1px solid #ddd;
}

.file-input-container {
  margin-bottom: 20px;
  text-align: center;
}

.file-label {
  font-weight: bold;
  margin-right: 10px;
}

#imageFiles {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.status-message {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}

.loading-indicator {
  display: none;
  text-align: center;
}

.spinner {
  margin: 10px auto;
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #004d99;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

.slider-label {
  font-weight: bold;
}

.cardinal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cardinal-btn {
  padding: 10px 20px;
  background: #004d99;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.cardinal-btn:hover {
  background: #003366;
}

.center-coords {
  text-align: center;
  font-size: 1.2rem;
  margin: 20px 0;
  color: #004d99;
}

.display {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.image-display {
  flex: 1;
  max-width: 45%;
  text-align: center;
}

#displayedImage {
  max-width: 100%;
  max-height: 400px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.bearing-display {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: bold;
  color: #555;
}

.map-container {
  flex: 1;
  max-width: 45%;
  height: 400px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

footer {
  background: #004d99;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
}
