.actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

button {
  padding: 10px;
  cursor: pointer;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 13px;
}

button:hover {
  background: #f0f0f0;
  border-color: #bbb;
}

#openRuler {
  background: #007bff;
  color: white;
  border: none;
}

#openRuler:hover {
  background: #0056b3;
}

#addOverlayRuler {
  display: none;
  background: #007bff;
  color: white;
  border: none;
}

#addOverlayRuler:hover {
  background: #0056b3;
}

#addProtractor {
    display: none;
}

#addAngleTool {
    display: none;
}

.settings-group {
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-bottom: 15px;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #555;
}

.setting-label-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
}

#zeroOffsetVal {
  color: #007bff;
  min-width: 20px;
}

.mini-btn {
  margin-left: auto;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 3px;
  background: #f0f0f0;
  color: #666;
}

.mini-btn:hover {
  background: #e0e0e0;
  color: #333;
}

.slider-wrapper {
  padding: 0 5px;
}

#zeroOffsetSlider {
  width: 100%;
  cursor: pointer;
  margin: 0;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  font-size: 9px;
  color: #aaa;
  margin-top: -2px;
}

.zero-tick {
  color: #007bff;
  font-weight: bold;
}

.status {
  font-size: 11px;
  color: #888;
  text-align: center;
}

.footer {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed #ddd;
  text-align: center;
  font-size: 12px;
}

.footer a { color: #666; text-decoration: none; }
.footer .divider { margin: 0 8px; color: #ccc; }

/* 里程碑提示样式 */
#milestone-prompt {
  background: #fffde7;
  border-top: 1px solid #fff59d;
  padding: 10px;
  font-size: 12px;
  position: fixed;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  animation: slideUp 0.3s;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

#milestone-prompt a.prompt-btn {
  color: white;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 3px;
  display: inline-block;
}

#milestone-prompt a.prompt-btn:nth-child(1) { background: #4caf50; }
#milestone-prompt a.prompt-btn:nth-child(2) { background: #ff9800; }

#milestone-prompt #closePrompt {
  margin-left: auto;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 11px;
}
