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

.builder-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
}

.builder-section h4 {
  color: #495057;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.builder-section textarea {
  width: 100%;
  min-height: 400px;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  resize: vertical;
  box-sizing: border-box;
}

.builder-section textarea:focus {
  outline: 0;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.controls {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 1rem;
  display: none;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 1rem;
  display: none;
}

.query-builder {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.query-builder h5 {
  color: #495057;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.field-tree {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 1rem;
  max-height: 300px;
  overflow-y: auto;
}

.field-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: white;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.field-item input[type="checkbox"] {
  margin: 0;
}

.field-item label {
  margin: 0;
  font-size: 0.9rem;
  cursor: pointer;
  flex: 1;
}

.field-item .field-type {
  font-size: 0.8rem;
  color: #6c757d;
  background: #e9ecef;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

.nested-fields {
  margin-left: 1.5rem;
  border-left: 2px solid #dee2e6;
  padding-left: 1rem;
}

.variables-section {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.variable-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.variable-row input,
.variable-row select {
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.9rem;
}

.variable-row button {
  padding: 0.5rem;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.add-variable-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.5rem;
}

.fragments-section {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.fragment-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.fragment-row input,
.fragment-row textarea {
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.9rem;
}

.fragment-row textarea {
  resize: vertical;
  min-height: 60px;
}

.fragment-row button {
  padding: 0.5rem;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.add-fragment-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.5rem;
}

.curl-output {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  display: none;
}

.curl-output.active {
  display: block;
}

.examples-section {
  background: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1.5rem;
}

.examples-section h4 {
  color: #0056b3;
  margin-bottom: 0.75rem;
}

.example-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border: 1px solid #b3d9ff;
  border-radius: 4px;
  overflow: hidden;
}

.example-tab {
  padding: 0.5rem 1rem;
  background: #f0f8ff;
  border: none;
  cursor: pointer;
  flex: 1;
  font-size: 0.85rem;
}

.example-tab.active {
  background: #007bff;
  color: white;
}

.example-content {
  display: none;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

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

@media (max-width: 768px) {
  .builder-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .controls {
    flex-direction: column;
  }
  
  .variable-row,
  .fragment-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.en-graphql-style-2{display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem;}
.en-graphql-style-3{width: 100%; padding: 0.5rem; margin-top: 0.25rem;}
.en-graphql-style-4{width: 100%; padding: 0.5rem; margin-top: 0.25rem;}
.en-graphql-style-5{width: 100%; padding: 0.5rem; margin-top: 0.25rem;}
.en-graphql-style-6{display: none;}