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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  color: #e0e0e0;
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  padding: 40px 0;
  position: relative;
}

.help-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #00d9ff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-btn:hover {
  background: linear-gradient(135deg, #00d9ff, #a855f7);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1);
}

.help-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.help-modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: 30px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.help-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.help-modal-header h2 {
  color: #00d9ff;
  font-size: 24px;
  margin: 0;
}

.help-close-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.help-close-btn:hover {
  color: #fff;
}

.help-section {
  margin-bottom: 24px;
}

.help-section h3 {
  color: #a855f7;
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-section p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 12px;
}

.help-section ul {
  color: #ccc;
  margin-left: 20px;
  line-height: 1.8;
}

.help-section code {
  background: rgba(0, 217, 255, 0.1);
  color: #00d9ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.help-section pre {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
}

.help-section pre code {
  background: none;
  padding: 0;
}

.help-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

.help-link:hover {
  background: rgba(168, 85, 247, 0.4);
  color: #fff;
}

.help-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.help-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.help-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

.help-nav-btn.active {
  background: linear-gradient(135deg, #00d9ff, #a855f7);
  color: #fff;
  border-color: transparent;
}

.help-content {
  min-height: 300px;
}

.help-panel {
  display: none;
}

.help-panel.active {
  display: block;
}

.help-panel h3 {
  color: #a855f7;
  font-size: 16px;
  margin: 20px 0 12px 0;
}

.help-panel h3:first-child {
  margin-top: 0;
}

.help-panel h4 {
  color: #00d9ff;
  font-size: 14px;
  margin-bottom: 6px;
}

.help-panel p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 14px;
}

.help-panel ul, .help-panel ol {
  color: #ccc;
  margin-left: 20px;
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 14px;
}

.help-panel strong {
  color: #00d9ff;
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.help-table th, .help-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.help-table th {
  color: #a855f7;
  font-weight: 600;
  background: rgba(168, 85, 247, 0.1);
}

.help-table td {
  color: #ccc;
}

.tool-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-item h4 {
  margin-bottom: 6px;
}

.tool-item p {
  margin-bottom: 8px;
  font-size: 13px;
}

.tool-item pre {
  margin: 0;
  font-size: 12px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo-icon {
  font-size: 36px;
  color: #00d9ff;
}

.logo h1 {
  font-size: 36px;
  background: linear-gradient(90deg, #00d9ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: #888;
  margin-top: 8px;
  font-size: 16px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-btn.active {
  background: linear-gradient(135deg, #00d9ff, #a855f7);
  color: #fff;
  border-color: transparent;
}

.main {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 30px;
  min-height: 400px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, #00d9ff, #a855f7);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.workflow-card, .tool-card, .example-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
}

.workflow-card:hover, .tool-card:hover, .example-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 217, 255, 0.3);
  transform: translateY(-2px);
}

.workflow-card h3, .tool-card h3, .example-card h3 {
  color: #00d9ff;
  margin-bottom: 8px;
  font-size: 18px;
}

.workflow-card p, .tool-card p, .example-card p {
  color: #aaa;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
  margin-top: 4px;
}

.workflow-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.docs-content {
  color: #ccc;
  line-height: 1.7;
}

.docs-content h3 {
  color: #00d9ff;
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 18px;
}

.docs-content h3:first-child {
  margin-top: 0;
}

.docs-content pre {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
}

.docs-content code {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 13px;
  color: #00d9ff;
}

.docs-content ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.docs-content li {
  margin-bottom: 8px;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.docs-content th, .docs-content td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-content th {
  color: #a855f7;
  font-weight: 600;
}

.docs-content a {
  color: #00d9ff;
  text-decoration: none;
}

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

.loading {
  color: #888;
  text-align: center;
  padding: 40px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state h3 {
  color: #888;
  margin-bottom: 8px;
}

.footer {
  text-align: center;
  padding: 30px;
  color: #666;
  font-size: 14px;
}

@media (max-width: 768px) {
  .header {
    padding: 20px 0;
  }
  
  .logo h1 {
    font-size: 28px;
  }
  
  .main {
    padding: 20px;
  }
  
  .card-grid, .example-cards {
    grid-template-columns: 1fr;
  }
}
