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

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f9fafb;
}

.demo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #6b7280;
  font-size: 1.125rem;
}

.practice-area-selector {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.practice-area-selector label {
  font-weight: 500;
  color: #1f2937;
  font-size: 1rem;
}

.practice-area-selector select {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: #1f2937;
  cursor: pointer;
  min-width: 200px;
  transition: border-color 0.2s;
}

.practice-area-selector select:hover {
  border-color: #3b82f6;
}

.practice-area-selector select:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.demo-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.nav-btn:hover {
  color: #1e40af;
}

.nav-btn.active {
  color: #1e40af;
  border-bottom-color: #1e40af;
  font-weight: 600;
}

.demo-section {
  display: none;
  animation: fadeIn 0.3s;
}

.demo-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.demo-section p {
  margin-bottom: 2rem;
  color: #6b7280;
}

.demo-form-wrapper {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.generator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.generator-controls {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.control-group {
  margin-bottom: 1.5rem;
}

.control-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1f2937;
}

.control-group input[type="text"],
.control-group input[type="url"],
.control-group input[type="number"],
.control-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.control-group input[type="color"] {
  width: 100%;
  height: 50px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
}

.control-group small {
  display: block;
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.control-group a {
  color: #3b82f6;
  text-decoration: none;
}

.control-group a:hover {
  text-decoration: underline;
}

.generator-preview {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.generator-preview h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.preview-wrapper {
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  min-height: 400px;
}

.code-output {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.code-output h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.code-block {
  position: relative;
  background: #1f2937;
  border-radius: 8px;
  padding: 1.5rem;
}

.code-block pre {
  color: #f9fafb;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0;
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #2563eb;
}

.copy-btn.copied {
  background: #16a34a;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.example-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.example-card h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.setup-step {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.setup-step h3 {
  margin-bottom: 1rem;
  color: #1e40af;
}

.setup-step ol,
.setup-step ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.setup-step li {
  margin-bottom: 0.5rem;
}

.setup-step code {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
}

.setup-step pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

.setup-step pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.compatibility {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.compatibility h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.compatibility-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  list-style: none;
  margin: 0;
}

.compatibility-list li {
  color: #16a34a;
  font-weight: 500;
}

@media (max-width: 768px) {
  .demo-container {
    padding: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .practice-area-selector {
    flex-direction: column;
    align-items: stretch;
  }

  .practice-area-selector select {
    min-width: auto;
    width: 100%;
  }

  .generator-container {
    grid-template-columns: 1fr;
  }

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

