body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

div.container {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

div#llmfuncs,
div#jsfuncs {
  margin-top: 20px;
  width: 100%;
  display: grid;
  padding: 8px;
}

div#llmfuncs > .row {
  grid-template-columns: 150px 100px 1fr 8em 3em;
}

div#jsfuncs > .row {
  grid-template-columns: 1fr 240px 7em 3em;
}

.row {
  display: grid;
  text-align: left;
  padding: 8px;
}

.header {
  background-color: #4caf50;
  color: white;
}

.row:not(.header) {
  border-bottom: 1px solid #ddd;
}

.row:not(.header):hover {
  background-color: #f5f5f5;
}

.row > div {
  padding: 8px;
}

div#jsfuncs > .row:not(.header) > .name {
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  color: #007bff;
}

.row > .delete > button {
  padding: 6px 12px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background-color: #d9534f;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.row > .delete > button:hover {
  background-color: #c9302c;
}

#add-llmfunc,
#add-jsfunc {
  display: grid;
  grid-template-columns: 6em 1fr;
  grid-gap: 10px;
  align-items: center;
  padding: 15px;
}

#add-llmfunc > label,
#add-jsfunc > label {
  text-align: right;
}

#add-llmfunc-name,
#add-jsfunc-name {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex-grow: 1;
}

#add-llmfunc-submit,
#add-jsfunc-submit {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  background-color: #4caf50;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

#add-llmfunc-submit:disabled,
#add-jsfunc-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#add-llmfunc-submit:hover,
#add-jsfunc-submit:hover {
  background-color: #46a049;
}

#add-llmfunc-json,
#add-jsfunc-code {
  width: 100%;
  height: 20em;
}
