body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background: #f4f4f4;
  color: #222;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

h1 {
  font-size: 20px;
  margin-bottom: 24px;
  text-align: center;
  color: #007bff;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}

input[type="text"],
select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.camera-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

button {
  padding: 10px 14px;
  font-size: 15px;
  background: #007bff;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  flex: 1;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.submit-btn {
  width: 100%;
  background: #28a745;
}

#video,
#preview {
  width: 100%;
  max-height: 280px;
  display: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 8px;
}

#statusMsg {
  text-align: center;
  margin-top: 16px;
  font-weight: bold;
  color: green;
}
.far-location {
  color: rgb(255, 54, 54);
}

/* Loading overlay */
#loadingOverlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loading-box {
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #007bff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
