/* Base Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

/* Container */
.container {
  max-width: 800px;
  width: 100%;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

h1 {
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  font-weight: bold;
}

input[type="text"],
textarea,
select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button[type="submit"] {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  width: 50%;
  flex-wrap: nowrap;
  align-self: center;
}

button[type="submit"]:hover {
  background-color: #45a049;
}

/* Response Section */
.response {
  margin-top: 20px;
}

.response-output {
  background-color: #282c34;
  color: #d4d4d4;
  padding: 20px;
  border-radius: 5px;
  margin-top: 10px;
  font-family: monospace;
  white-space: pre-wrap;
  overflow-x: auto;
  max-height: 500px;
  min-height: 100px;
}

/* Syntax Highlighting */
.key {
  color: #9cdcfe;
}

.string {
  color: #ce9178;
}

.number {
  color: #b5cea8;
}

.boolean {
  color: #569cd6;
}

.null {
  color: #c586c0;
}

.brace {
  color: #f2f515;
}

/* Parameter Info Box */
.response-info {
  background-color: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 4px;
  padding: 10px;
  margin-top: 10px;
  font-size: 0.9em;
  color: #2e7d32;
}

.response-info strong {
  color: #388e3c;
  font-weight: bold;
}

.response-info ul {
  list-style: circle;
  margin-left: 20px;
  padding-left: 0;
}

.response-info li {
  margin-bottom: 5px;
}

/* Show More / Show Less Link Styling */
.response-info a {
  color: #4CAF50;
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
  display: inline-block;
  margin-top: 5px;
}

.response-info a:hover {
  color: #388e3c;
}

/* Expand the parameter list when "Show More" is clicked */
.response-info ul.expanded {
  max-height: 200px;
  overflow-y: auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
  select {
    font-size: 0.9em;
    padding: 8px;
  }

  .response-info {
    font-size: 0.85em;
    padding: 8px;
  }
}

@media (max-width: 576px) {
  select {
    font-size: 0.85em;
    padding: 7px;
  }

  .response-info {
    font-size: 0.8em;
    padding: 7px;
  }
}

.text-editor-container {
  display: flex;
  border: 1px solid #ccc;
  width: 100%;
  height: 250px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  background-color: #fff;
  overflow: hidden;
}

.line-numbers {
  background-color: #f0f0f0;
  border-right: 1px solid #ccc;
  padding: 10px;
  color: #888;
  text-align: right;
  user-select: none;
  overflow-y: hidden;
}

.line-numbers span {
  display: block;
  padding: 0.5px;
}

.text-editor {
  flex: 1;
  padding: 10px;
  min-height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  outline: none;
  white-space: pre;
}

.text-editor:focus {
  border-color: #007BFF;
}

