.adc4gis-wrapper {
  max-width: 1200px;
  margin: 20px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.adc4gis-header {
  background: #1d3f95;
  color: white;
  padding: 20px;
  text-align: center;
}

.adc4gis-header h2 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
	color: #fff
}

.adc4gis-header p {
  margin: 0;
  opacity: 0.9;
}

.adc4gis-map {
  background: #f8f9fa;
}

.adc4gis-controls {
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
}

#adc4gis-status {
  margin-bottom: 15px;
  padding: 10px 15px;
  background: white;
  border-radius: 5px;
  display: inline-block;
  border: 1px solid #ddd;
  font-weight: 500;
}

#adc4gis-save {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
	line-height: 1
}

#adc4gis-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#adc4gis-save.ready {
  background: #28a745;
  animation: pulse 2s infinite;
}

#adc4gis-save.ready:hover {
  background: #218838;
  transform: translateY(-1px);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

#adc4gis-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Force reset stuck submit buttons */
input[type="submit"]:disabled,
button[type="submit"]:disabled {
  animation: unstick 0.1s ease-in-out;
}

@keyframes unstick {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Alternative method indicator */
#adc4gis-alternative {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 5px;
  padding: 10px;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .adc4gis-wrapper {
    margin: 10px;
  }

  .adc4gis-header {
    padding: 15px;
  }

  .adc4gis-header h2 {
    font-size: 1.3rem;
  }

  .adc4gis-controls {
    padding: 15px;
  }

  #adc4gis-save {
    width: 100%;
    padding: 15px;
  }
}
