body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
  box-sizing: border-box;
  color: #444;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

.two-pane-layout {
  display: flex;
  gap: 30px;
  min-height: calc(100vh - 150px);
  box-sizing: border-box;
}

.input-pane {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.result-section {
  flex: 1;
  min-width: 0;
  position: sticky;
  top: 20px;
  height: fit-content;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 20px;
  box-sizing: border-box;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  box-sizing: border-box;
}

.result-container {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.result {
  margin-top: 15px;
  background: #3e3e3e;
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
}

.result pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #d4d4d4;
}

.copy-button {
  width: 100%;
  padding: 10px;
  background: #086bd5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
}

.copy-button:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .two-pane-layout {
    flex-direction: column;
  }

  .result-section {
    position: static;
  }
}

.loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  color: #444;
  padding: 20px;
}

.loading-placeholder h1 {
  margin-bottom: 30px;
}

.example-section {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.example-section h2 {
  font-size: 1.2em;
  margin: 0 0 10px;
  color: #333;
}

.example-section p {
  margin: 0;
  line-height: 1.5;
  color: #666;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.loading-text {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

.noscript-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  color: #444;
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.noscript-message h1 {
  margin-bottom: 20px;
  color: #333;
}
