html,
body {
  height: 100%;
  margin: 0;
}

#app {
  display: flex;
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
}

#map {
  flex: 1 1 auto;
  height: 100%;
}

#side {
  width: 340px;
  min-width: 240px;
  max-width: 40%;
  background: #f8f9fa;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.08);
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

h2 {
  margin: 0 0 12px 0;
  font-size: 18px;
}

label {
  font-size: 13px;
  margin-top: 8px;
  display: block;
  color: #333;
}

input[type="text"] {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  margin-top: 12px;
  padding: 10px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:disabled {
  background: #7aa7df;
  cursor: not-allowed;
}

.note {
  margin-top: 8px;
  font-size: 12px;
  color: #555;
}

.bbox-values {
  margin-top: 10px;
  font-size: 13px;
  color: #222;
}

.dialog {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
  color: #856404;
  display: none;
}

/* Modal overlay */
#modalOverlay {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
}

#modalBox {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  min-width: 280px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

#progressBar {
  background: #eee;
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
  margin-top: 8px;
}

#progressFill {
  background: #007bff;
  height: 100%;
  width: 0%;
  transition: width 0.3s linear;
}