body {
  background-color: #0d1b2a; /* deep navy blue */
  color: #f0f0f0;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

h1 {
  margin-bottom: 5px;
}

.sub {
  color: #ccc;
  font-size: 0.9em;
}

.panel {
  gap: 16px;
  background: #121a2b;
  border: 1px solid #22314d;
  border-radius: 16px;
  padding: 16px;
  margin-top: 15px;
  margin-bottom: 25px; /* ⬅ Added extra space below panel */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.flexpanel {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: #121a2b;
  border: 1px solid #22314d;
  border-radius: 16px;
  padding: 16px;
  margin-top: 15px;
  margin-bottom: 25px; /* ⬅ Added extra space below panel */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 0.9em;
  margin-bottom: 4px;
}

input[type="number"], select {
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #1a2438;
  color: #fff;
}

input[type="range"] {
  width: 100%;
}

.actions {
  margin-top: 10px;
}

button {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #1a2438;
  color: white;
}

button.primary {
  background: #2a4d8f;
}

.status {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.label {
  font-size: 0.8em;
  color: #aaa;
}

.prompt {
  font-size: 1.65em;
  font-weight: bold;
}

canvas {
  margin-top: 20px;
  background: #1a2438;
  border-radius: 8px;
  display: block;
  width: 100%; /* stretch to container */
  height: auto;
}
/* Collapsible styling */
.collapsible {
  background-color: #1a2438;
  color: white;
  cursor: pointer;
  padding: 8px;
  border: none;
  border-radius: 6px;
  text-align: left;
  outline: none;
  font-size: 0.9em;
  width: 100%;
}

.collapsible-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.2s ease-out;
}

.checkbox-section {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 10px;
}

.checkbox-section label {
  display: block;
  margin-right: 10px;
}


body.layout {
  height: 100vh;             /* lock body to viewport */
  display: flex;
  flex-direction: column;
  margin: 0;
}

.app-shell {
  display: flex;
  flex: 1;                   /* grow to fill between header+footer */
  min-height: 0;             /* critical: prevents overflow push */
}

nav {
  width: 220px;
  background: #222;
  color: #fff;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.page-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;          /* scroll content if needed */
  min-height: 0;             /* allow shrinking within flex */
}

.site-footer {
  text-align: center;
  padding: 0.25rem;
  background: #121a2b;
  border-top: 1px solid #22314d;
  color: #ccc;
  font-size: 0.85em;
}
