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

.demo-section {
  margin-bottom: 3rem;
  
  h3 {
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
  }
}

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

.demo-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  
  h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  h5 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
  }
}

.demo-content {
  border: 1px solid #f0f0f0;
  padding: 1rem;
  background: #fafafa;
  border-radius: 4px;
  min-height: 200px;
  
  p {
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: justify;
    
    &:last-child {
      margin-bottom: 0;
    }
  }
  
  ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    
    li {
      margin-bottom: 0.5rem;
      line-height: 1.5;
    }
  }
}

.demo-note {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #1565c0;
  font-style: italic;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  
  label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-weight: 600;
    color: #333;
    
    &:has(input[type="checkbox"]) {
      flex-direction: row;
      align-items: center;
      gap: 0.5rem;
    }
  }
}

.demo-select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  font-size: 0.9rem;
  
  &:focus {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
  }
}

// Responsive adjustments
@media (max-width: 768px) {
  .demo-container {
    padding: 1rem;
  }
  
  .demo-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .demo-card {
    padding: 1rem;
  }
  
  .demo-controls {
    flex-direction: column;
    
    label {
      &:has(input[type="checkbox"]) {
        flex-direction: row;
      }
    }
  }
}