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

.demo-section {
  margin-bottom: 3rem;
  
  h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
  }
  
  h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }
}

.demo-scroll-container {
  height: 400px;
  overflow-y: auto;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  position: relative;
  background: linear-gradient(to bottom, #fafafa, #f0f0f0);
}

.demo-content-spacer {
  padding: 2rem;
  min-height: 600px;
  
  p {
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
  }
}

.demo-filler {
  height: 100px;
  margin: 1rem 0;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #1976d2;
}

.demo-content {
  padding: 1rem 2rem;
  background: #fff;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  color: #333;
}

.demo-content-small {
  padding: 0.75rem 1.5rem;
  background: #fff;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  color: #333;
  font-size: 0.9rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.demo-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.demo-variant-example {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  position: relative;
  min-height: 120px;
  
  h4 {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
  }
}

.demo-effect-example {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  position: relative;
  min-height: 120px;
  
  h4 {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
  }
}

.demo-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  
  label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 500;
    
    select {
      padding: 0.5rem;
      border: 1px solid #ddd;
      border-radius: 4px;
      min-width: 120px;
    }
    
    input[type="checkbox"] {
      width: 18px;
      height: 18px;
    }
  }
}

.demo-preview {
  height: 300px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  position: relative;
  overflow: auto;
  background: linear-gradient(45deg, #f9f9f9 25%, transparent 25%), 
              linear-gradient(-45deg, #f9f9f9 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #f9f9f9 75%), 
              linear-gradient(-45deg, transparent 75%, #f9f9f9 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

@media (max-width: 768px) {
  .demo-container {
    padding: 1rem;
  }
  
  .demo-grid {
    grid-template-columns: 1fr;
  }
  
  .demo-row {
    flex-direction: column;
  }
  
  .demo-controls {
    flex-direction: column;
    
    label {
      flex-direction: row;
      align-items: center;
      
      select {
        min-width: auto;
        flex: 1;
      }
    }
  }
}