.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-color);
}

.tab-btn.active {
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color);
}

/* 标签内容 */
.tab-pane {
  display: none;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 4px;
  margin-bottom: 20px;
}

.tab-pane.active {
  display: block;
}

/* 表单元素样式 */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
}

/* 隐藏选项字段，只在需要时显示 */
.option-field {
  display: none;
}

.option-field.show {
  display: block;
}

/* 绘图选项容器 */
.drawing-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

/* 坐标输入区域 */
.coordinates-container {
  margin: 20px 0;
}

.coordinates-container h3 {
  margin-bottom: 10px;
}

#coordinates-input {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  font-family: monospace;
  resize: vertical;
}

/* 结果显示区域 */
.result-container {
  margin-top: 20px;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.result-container h3 {
  margin-bottom: 15px;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.action-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.code-display {
  background-color: #2d2d2d;
  color: #ffffff;
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
  white-space: pre-wrap;
  font-family: monospace;
  min-height: 150px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .drawing-options {
    grid-template-columns: 1fr;
  }
  
  .action-container {
    flex-direction: column;
  }
  
  .action-container button {
    width: 100%;
  }
}

/* 输入组样式 */
.input-group {
  position: relative;
  width: 100%;
}

/* 清空按钮样式 */
.clear-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: all 0.2s;
}

.clear-btn:hover {
  background-color: #f0f0f0;
  color: #666;
  opacity: 1;
}
.page-header .text-muted {
  color: #000000; 
}