
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #root {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f7fb;
  color: #333;
}

#container {
  display: flex;
  height: 100vh;
  flex-direction: row; /* Default layout for larger screens */
}

#map {
  flex: 3;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#sidebar {
  flex: 1;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
  border-radius: 10px;
  margin-left: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#sidebar:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.draw-item {
  padding: 15px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.draw-item:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

button {
  width: 100%;
  padding: 14px;
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 10px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.closeButton {
  background-color: #CCCCCC;
  color: #111111;
}

button:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.closeButton:hover {
  background-color: #e5e5e5;
  color: #111111;
}


button:active {
  transform: translateY(1px);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-overlay.show {
  visibility: visible;
  opacity: 1;
}

.loader {
  margin: 20px auto;
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top: 5px solid #00ae9d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  color: #555;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  background: #f7f7f7;
  transition: border 0.3s ease, background 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #007bff;
  background: #fff;
}

.form-group input[type="range"] {
  width: 100%;
  margin-top: 8px;
}

.range-value {
  font-size: 16px;
  font-weight: bold;
  color: #007bff;
  margin-top: 10px;
}

/* Media Query para telas menores (mobile) */
@media (max-width: 768px) {
  #container {
    flex-direction: column; /* Coloca o sidebar abaixo do mapa em telas pequenas */
  }

  #sidebar {
    margin-left: 0;
    margin-top: 20px;
    border-radius: 10px 10px 0 0; /* Rouded corners only for top */
  }
}

.leaflet-draw-draw-circlemarker {
  display: none;
}

