/* Integration Guide CSS */
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9fafb;
  margin: 0;
  padding: 0;
}

header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e1e4e8;
  padding: 20px 0;
  margin-bottom: 20px;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content h1 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.docs-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.docs-link:hover {
  text-decoration: underline;
}

.integration-guide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  margin-bottom: 40px;
}

.guide-editor {
  width: 100%;
  font-family: monospace;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  min-height: 400px;
  font-size: 14px;
  line-height: 1.5;
}

.notice {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.edit-controls {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 30px;
  border: 1px solid #ddd;
}

.actions {
  margin-top: 10px;
}

.save-button {
  padding: 8px 16px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.save-button:hover {
  background-color: #2563eb;
}

.guide-content {
  line-height: 1.6;
}

.guide-content h1 {
  margin-top: 0;
  color: #1a202c;
  font-weight: 600;
  font-size: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.guide-content h2 {
  color: #2d3748;
  font-weight: 600;
  font-size: 22px;
  margin-top: 30px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.guide-content h3 {
  color: #4a5568;
  font-weight: 600;
  font-size: 18px;
  margin-top: 25px;
}

.guide-content pre {
  background-color: #f6f8fa;
  padding: 16px;
  border-radius: 4px;
  overflow: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.45;
  margin: 16px 0;
}

.guide-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background-color: #f6f8fa;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 85%;
}

.guide-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  display: block;
  overflow-x: auto;
}

.guide-content th, .guide-content td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.guide-content th {
  background-color: #f2f2f2;
  font-weight: 600;
}

.guide-content a {
  color: #3182ce;
  text-decoration: none;
}

.guide-content a:hover {
  text-decoration: underline;
}

.guide-content blockquote {
  margin-left: 0;
  padding-left: 16px;
  border-left: 4px solid #e2e8f0;
  color: #4a5568;
}

.guide-content ul, .guide-content ol {
  padding-left: 20px;
}

.guide-content img {
  max-width: 100%;
  height: auto;
}

.error-message {
  background-color: #fff5f5;
  border: 1px solid #fc8181;
  color: #c53030;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.error-message pre {
  background-color: #fff;
  border: 1px solid #eee;
  padding: 10px;
  overflow: auto;
  max-height: 300px;
}

@media (max-width: 768px) {
  .integration-guide {
    padding: 15px;
  }
  
  .guide-editor {
    min-height: 300px;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .header-content h1 {
    margin-bottom: 10px;
  }
}