body {
  background: #111;
  color: #0f0;
  font-family: monospace;
  font-size: 1.5em;
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  overflow: hidden;        /* ✅ Prevent flex overflow */
}




#terminal {
  white-space: pre-wrap;
}

form {
  margin-top: 10px;
}

input {
  width: 100%;
  background: #111;
  color: #0f0;
  border: none;
  outline: none;
  font-family: monospace;
  font-size: 1em;
}

/* Right panel area */
#categories {
  max-width: 480px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#categoryList {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  min-width: 0;           /* ✅ Prevent overflow in flex container */
  max-width: 100%;        /* ✅ Don’t let it expand */
  overflow-x: hidden;     /* ✅ Kill horizontal scroll just in case */
}


#categoryList input.cyan {
  color: cyan !important;
  font-weight: bold;
}

h3 {
  color: #0ff;
  margin-top: 0;
}

.panel-entry {
  margin-bottom: 10px;
  border-bottom: 1px dashed #333;
  padding-bottom: 5px;
}

/* Modal Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #111;
  border: 2px solid #0f0;
  padding: 20px;
  width: 500px;
  color: #0f0;
  font-family: monospace;
  box-shadow: 0 0 10px #0f0;
}


.modal-content input,
.modal-content button,
.modal-content select {
  background: #000;
  color: #0f0;
  border: 1px solid #333;
  font-family: monospace;
  font-size: 1em;
  padding: 6px;
}

.hidden {
  display: none;
}

/* Color Tags */
.cyan   { color: #00ffff; font-weight: bold; }
.yellow { color: #ffff00; font-weight: bold; }
.red    { color: #ff5555; font-weight: bold; }
.green  { color: #00ff00; font-weight: bold; }
.dim    { color: #888; font-style: italic; }
.bold    { font-style: italic; }


/* Form Rows */
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.form-row label {
  width: 160px;
  margin-right: 10px;
  text-align: right;
  font-size: 0.9em;
}

.form-row input,
.form-row select {
  flex: 1;
}

.inline-cyan {
  color: cyan;
  font-weight: bold;
}

td span.cyan {
  color: cyan;
  font-weight: bold;
}

input.cyan {
  color: cyan !important;
  font-weight: bold;
}

.bold {
  font-weight: 800 !important;
  color: lime; /* just to make sure it's taking effect visually */
}

.underline {
  text-decoration: underline;
}

/* Final lockdown for terminal input field */
#commandInput,
#commandInput:focus,
#commandInput:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

.right-link {
  color: #0f0;
  text-decoration: none;
  font-family: monospace;
  font-size: 14px;
  display: inline-block;
}

.right-link:hover {
  text-decoration: underline;
  color: #afffaf;
}

.right-panel-section {
  padding: 8px;
  margin-bottom: 12px;
}

.right-panel-heading {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #0f0;
}

.highlight-action {
  display: block;
  padding: 8px 12px;
  background: #0f0;
  color: #000;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  font-family: monospace;
  text-decoration: none;
  margin-bottom: 6px;
}

.highlight-action:hover {
  background: #bfff00;
  color: #000;
}
/* SAFARI COMPAT FIX — Force layout respect for right panel */
#terminal-wrapper {
  flex: 3;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1em 1em 1em 2em; /* top, right, bottom, left */
}


#terminal-scroll {
  flex: 3;
  overflow-y: auto;
  min-height: 0; /* ✅ Required for Safari to allow scroll sizing */
}

#userFooter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: yellow;
  font-size: 12px;
  text-align: right;
  padding-top: 6px;
  border-top: 1px solid #444;
  width: calc(100% - 20px);
  background-color: #111;
}

.nospacing-block h2 {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.nospacing-block table {
  margin-top: 0;
  border: 3px solid #0f0;
  border-collapse: collapse;
  width: 100%;
}

.fetchos-button {
  background-color: #0f0;
  color: #000;
  border: 1px solid #6f6;
  padding: 5px 16px;
  font-weight: bold;
  font-family: monospace;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.fetchos-button:hover {
  background-color: #3f3;
}

.email-body {
  display: none;
  margin-top: 6px;
  padding: 8px;
  background: #111;
  color: #ccc;
  border-left: 2px solid #666;

  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  white-space: pre-wrap;

  /* CRITICAL FIX */
  min-width: 0;
}

.email-inner {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  font-size: 14px;
  color: #ccc;
}

/* 📦 Standard Modal Layout Containers */
.modal-form-container {
  position: relative;
  height: 100%;
  font-family: monospace;
  color: #0f0;
  padding-right: 10px;
  box-sizing: border-box;
}

.modal-scroll {
  overflow-y: auto;
  padding-bottom: 80px;
}

.modal-submit-bar {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

/* ✅ Form Input Consistency */
.modal-scroll td {
  padding: 6px 10px;
}

.modal-scroll select,
.modal-scroll input,
.modal-scroll textarea {
  background: #111;
  color: #0f0;
  border: 1px solid #0f0;
  padding: 4px;
  font-family: monospace;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

/* 👥 Dynamic Row Handling (used in crew/fuel modals) */
.crew-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.remove-btn {
  font-family: monospace;
  font-size: 1em;
  background: transparent;
  color: #0f0;
  border: 1px solid #0f0;
  padding: 2px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.remove-btn:hover {
  background-color: #0f0;
  color: #000;
}

.panel-entry.green {
  color: #0f0;
  margin-bottom: 10px;
  font-family: monospace;
}

.panel-entry.red {
  color: red;
  margin-bottom: 10px;
  font-family: monospace;
}

