body {
    background-color: #fdf6e3;
}

.vars_table {
    background-color: #fbfbfb;
    border: 1px solid black;
    border-collapse: collapse;
    font-family: "Inconsolata";
    font-size: 10pt;
    line-height: 1.1;
    overflow: auto;
}

.vars_cell {
    border: 1px solid black;
    padding: 5px;
}

.printed_output {
    font-family: "Inconsolata";
    font-weight: bold;
    font-size: 9pt;
}
.box {
  cursor: pointer;
  -webkit-user-select: none; /* Safari 3.1+ */
  -moz-user-select: none; /* Firefox 2+ */
  -ms-user-select: none; /* IE 10+ */
  user-select: none;
}

.box::before {
  content: "▢"; /* Empty checkbox - or use "□" */
  color: black;
  display: inline-block;
  margin-right: 6px;
}

.leaf {
  cursor: pointer;
  -webkit-user-select: none; /* Safari 3.1+ */
  -moz-user-select: none; /* Firefox 2+ */
  -ms-user-select: none; /* IE 10+ */
  user-select: none;
}

.leaf::before {
  content: "●"; /* Solid circle - or use "•" or "▪" */
  color: black;
  display: inline-block;
  margin-right: 6px;
}

.check-box::before {
  content: "☑"; /* Checked checkbox - or use "✓" or "✔" */
  color: dodgerblue;
}

.nested {
  display: none;
}

.active {
  display: block;
}

/* Alternative symbol options - uncomment the ones you prefer */

/* Tree-like symbols */
.box::before {
  content: "▶"; /* Right-pointing triangle for collapsed */
}

.check-box::before {
  content: "▼"; /* Down-pointing triangle for expanded */
}

/* Plus/Minus style */
/*
.box::before {
  content: "⊞"; 
}

.check-box::before {
  content: "⊟"; 
}
*/

/* Simple plus/minus */
/*
.box::before {
  content: "+";
  font-weight: bold;
}

.check-box::before {
  content: "−";
  font-weight: bold;
}
*/

.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* General Layout */
.app-container {
  max-width: 1000px;
  /* Instead of 'margin: 0 auto', use: */
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 100px; /* Adjust this number to move it as far right as you like */
  margin-right: auto; 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #333;
}

/* Config Inputs */
.config-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.config-inputs label {
    font-weight: bold;
    display: flex;
    flex-direction: column;
}

.config-inputs input[type="text"],
.config-inputs textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

/* Three-Column Selection Grid */
/* .selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
} */

.selector-column {
  display: flex;
  flex-direction: column;
}

.selector-column label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #555;
}

.selector-column select {
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background-color: #f9f9f9;
  font-size: 1em;
  min-height: 40px; /* Ensure consistent height */
}

.selector-column select:disabled {
  background-color: #eee;
  color: #999;
}

/* Submit Button */
.submit-button {
  padding: 12px 25px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
  margin-bottom: 30px;
}

.submit-button:hover:not(:disabled) {
  background-color: #0056b3;
}

.submit-button:disabled {
  background-color: #a0c3e8;
  cursor: not-allowed;
}

/* Response Area */
.response-area {
  padding: 20px;
  border-top: 2px solid #007bff;
}

.result-box {
  border: 1px solid #e0e0e0;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 6px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.error-message {
    color: #cc0000;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #ffcccc;
    background-color: #fff0f0;
    border-radius: 4px;
}

/* Explanation Renderer Specific Styles (for the toggle effect) */
.explanation-list {
  list-style-type: none; /* Remove default bullet points */
  padding-left: 0;
}

/* Styling for the nested lists (must match the HTML structure generated by the server) */
.explanation-list ul.nested {
  display: none; /* Hidden by default */
  padding-left: 20px;
  margin-top: 5px;
}

.explanation-list ul.nested.active {
  display: block; /* Show when active */
}

/* Style for the clickable box element (if applicable to your server-generated HTML) */
.explanation-list .box, 
.explanation-list li {
    cursor: pointer;
    line-height: 1.5;
    padding: 2px 0;
}

/* Visual cue for the checked/open box */
.explanation-list .check-box {
    color: #007bff; /* Highlight text when expanded */
    font-weight: 500;
}

/* Add this to your App.css */
.manual-input-field {
    /* Uses the same styling as the other inputs for consistency */
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box; /* Include padding in the element's total width and height */
}
/* Adjust grid for the manual input field to span across columns if needed */
.selection-grid .full-width {
    grid-column: 1 / span 3; /* Allows the manual input field to span the whole width */
}

/* Additions to App.css */

/* Stage 1 Layout Adjustment */
.selection-grid-stage1 {
    display: flex;
    gap: 20px;
}
.selection-grid-stage1 .selector-column {
    flex: 1;
}

/* Back Button */
.back-button {
    padding: 8px 15px;
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.2s;
}
.back-button:hover {
    background-color: #f0f0f0;
}

/* Context Display */
.context-display {
    padding: 10px;
    border: 1px dashed #007bff;
    background-color: #eaf3ff;
    border-radius: 4px;
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Stage 2 Layout */
.selection-grid-stage2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Scen | Query List | Query Text */
    gap: 20px;
    margin-bottom: 30px;
}

.or-divider {
    text-align: center;
    font-weight: bold;
    color: #666;
    margin: 10px 0;
}

.manual-query-input-only textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

/* Ensure the main submit button spans correctly */
.submit-button {
    width: 100%; /* Keep this for the main action */
}

.full-width-label {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-weight: bold;
}

.scrollable-editor {
  width: 100%;
  min-height: 200px; /* Set a comfortable starting height */
  max-height: 500px; /* Prevents the editor from pushing everything off screen */
  margin-top: 10px;
  padding: 12px;
  
  /* Scrolling behavior */
  overflow-y: auto; 
  resize: vertical; /* Allows the user to manually drag and resize height */
  
  /* Editing feel */
  font-family: 'Courier New', Courier, monospace; /* Good for structured text */
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #ccc;
  border-radius: 4px;
  white-space: pre-wrap; /* Preserves line breaks and spaces */
}

/* Optional: Make the scrollbar look nicer in Chrome/Safari */
.scrollable-editor::-webkit-scrollbar {
  width: 8px;
}
.scrollable-editor::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.scrollable-editor::-webkit-scrollbar-thumb:hover {
  background: #999;
}