* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid #667eea;
}

header h1 {
  font-size: 3em;
  color: #667eea;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2em;
  color: #666;
}

.section {
  margin-bottom: 50px;
}

.section h2 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #333;
}

.section > p {
  color: #666;
  margin-bottom: 20px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.card h3 {
  color: #667eea;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.card p {
  color: #666;
  font-size: 0.95em;
}

.filename {
  font-family: 'Courier New', monospace;
  font-size: 0.85em !important;
  color: #999 !important;
  margin-top: 8px;
}

footer {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
  color: #999;
  font-size: 0.9em;
}

/* Documentation page styles */
.doc-nav {
  background: #667eea;
  padding: 15px 20px;
  margin: -20px -20px 20px -20px;
  border-radius: 12px 12px 0 0;
}

.doc-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.doc-nav a:hover {
  opacity: 0.8;
}

.doc-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 20px 40px 40px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.markdown-body {
  line-height: 1.8;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: #667eea;
  margin-top: 30px;
  margin-bottom: 15px;
}

.markdown-body h1 {
  font-size: 2.5em;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
}

.markdown-body h2 {
  font-size: 2em;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
}

.markdown-body h3 {
  font-size: 1.5em;
}

.markdown-body ul,
.markdown-body ol {
  margin-left: 30px;
  margin-bottom: 20px;
}

.markdown-body li {
  margin-bottom: 8px;
}

.markdown-body code {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e83e8c;
}

.markdown-body pre {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  border-left: 4px solid #667eea;
}

.markdown-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.markdown-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

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

.markdown-body th {
  background: #667eea;
  color: white;
  font-weight: 600;
}

.markdown-body tr:nth-child(even) {
  background: #f8f9fa;
}

.markdown-body a {
  color: #667eea;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.markdown-body a:hover {
  border-bottom-color: #667eea;
}

.markdown-body blockquote {
  border-left: 4px solid #667eea;
  padding-left: 20px;
  margin: 20px 0;
  color: #666;
  font-style: italic;
}

@media (max-width: 768px) {
  .container,
  .doc-container {
    padding: 20px;
  }

  header h1 {
    font-size: 2em;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }
}
