.adc4gis-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.adc4gis-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
}

.adc4gis-header h2 {
  margin: 0 0 10px 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.adc4gis-header p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

.adc4gis-map-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.adc4gis-map {
  position: relative;
}

/* Hide map's internal buttons with overlay */
.map-button-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.95));
  pointer-events: none;
  z-index: 5;
}

/* Try to hide iframe buttons with CSS injection */
#adc4gis-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.adc4gis-controls {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  z-index: 10;
}

#adc4gis-status {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

#adc4gis-save {
  background: linear-gradient(135deg, #3f51b5 0%, #2575fc 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  line-height: 1;
}

#adc4gis-save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

#adc4gis-save:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(16, 14, 124, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(40, 68, 167, 0.6);
  }
  100% {
    box-shadow: 0 4px 12px rgba(24, 82, 177, 0.3);
  }
}

#adc4gis-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .adc4gis-wrapper {
    padding: 10px;
  }

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

  .adc4gis-controls {
    padding: 15px;
  }

  #adc4gis-save {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* Additional CSS to hide any iframe buttons that might appear */
iframe[src*="adc4gis.com"] {
  position: relative;
}

/* Try to hide common button patterns in iframes */
.adc4gis-map::after {
  /* content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
  pointer-events: none;
  z-index: 1; */
}
