/* generated by Gemini */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --error-color: #ef4444;
  --code-font: 'Fira Code', 'Courier New', monospace;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1, h2 {
  color: #0f172a;
  margin-bottom: 8px;
}

p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 32px 0;
}

/* Presets Styling */
#presets {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#presets button {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

#presets button:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

/* Form Styling */
#form > div > div {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

textarea, input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

textarea {
  font-family: var(--code-font);
  background-color: #fafafa;
}

textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

fieldset {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

legend {
  font-weight: 600;
  padding: 0 8px;
  color: var(--text-muted);
}

/* Buttons */
#submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}

#submit:hover {
  background-color: var(--primary-hover);
}

#submit:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
}

/* Results Table */
#results-container {
  margin-top: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th {
  background-color: #f1f5f9;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
}

td {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
}

/* JSON and Error Output */
#json_output {
  background-color: #1e293b;
  color: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  font-family: var(--code-font);
  font-size: 0.85rem;
  overflow-x: auto;
  margin-top: 24px;
}

#json_output:empty {
  display: none;
}

#error {
  color: var(--error-color);
  font-weight: 500;
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
}

/* Specifically target the module textarea by its ID */
#module {
  min-height: 450px; /* Adjust this value to your preferred height */
  line-height: 1.5;
  resize: vertical; /* Allows users to manually drag it even taller if needed */
}

/* 1. Make the containers for each radio option sit side-by-side */
fieldset div {
  display: inline-flex;
  align-items: center;
  margin-right: 24px; /* Space between the two options */
  margin-bottom: 0;
}

/* 2. Fix the labels so they stay next to the buttons */
fieldset label {
  display: inline; /* Overrides the global display: block */
  margin-bottom: 0;
  margin-left: 8px; /* Space between button and its text */
  cursor: pointer;
  font-weight: 400; /* Optional: make radio text slightly lighter than headers */
}

/* 3. Optional: Align the legend better */
fieldset {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}