/* Hopfield Nets Styles */

.hn-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-title {
  margin-top: 2em;
  margin-bottom: 0.3em;
}

.sim-button {
  padding: 7px 15px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}
.sim-button:hover  { background-color: #e0e0e0; }
.sim-button:active { background-color: #d0d0d0; }

.section-label {
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 14px;
}

input[type="range"] { accent-color: #555; }

.param-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0.6em;
}

.param-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.param-desc {
  font-size: 0.82em;
  color: #888;
  min-width: 7em;
  text-align: right;
}

.param-label {
  font-size: 1.05em;
  min-width: 1.6em;
  text-align: right;
}

.param-slider {
  width: 120px;
  flex-shrink: 0;
}

.param-value {
  font-size: 0.92em;
  min-width: 3.5em;
  font-family: Monaco, Consolas, "Courier New", monospace;
}

.eq-row {
  display: flex;
  gap: 2.5em;
  flex-wrap: wrap;
  align-items: flex-start;
}

.eq-cell {
  flex: 1;
  min-width: 200px;
}

.eq-sublabel {
  font-size: 0.82em;
  color: #999;
  margin-bottom: 2px;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.steps-per-sec {
  margin-left: auto;
  font-size: 0.85em;
  color: #aaa;
  font-family: Monaco, Consolas, "Courier New", monospace;
}

.plot-canvas-box {
  position: relative;
  height: 340px;
}

/* Dual-handle range slider */
.dual-range-wrap {
  position: relative;
  width: 180px;
  height: 20px;
  flex-shrink: 0;
}
.dual-range-track {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  transform: translateY(-50%);
}
.dual-range-fill {
  position: absolute;
  top: 50%;
  height: 4px;
  background: #555;
  border-radius: 2px;
  transform: translateY(-50%);
  pointer-events: none;
}
.dual-range {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
}
.dual-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #444;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #aaa;
  cursor: pointer;
  pointer-events: all;
}
.dual-range::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #444;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #aaa;
  cursor: pointer;
  pointer-events: all;
}

/* Results table */
.results-table {
  border-collapse: collapse;
  font-size: 0.95em;
  margin-top: 0.4em;
}
.results-table th {
  text-align: left;
  font-size: 0.78em;
  color: #999;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 24px 6px 0;
  font-weight: normal;
  border-bottom: 1px solid #e0e0e0;
}
.results-table td {
  padding: 6px 24px 6px 0;
  border-bottom: 1px solid #f0f0f0;
}
.results-table td:last-child {
  font-family: Monaco, Consolas, "Courier New", monospace;
  font-size: 1.05em;
}
.row-recovery td:first-child { color: #2a7a2a; }
.row-spurious td:first-child { color: #b05a00; }
.row-noconv   td:first-child { color: #888; }

/* x-axis toggle */
.xaxis-toggle {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  margin-left: 4px;
}
.xaxis-toggle a {
  padding: 2px 10px;
  color: #888;
  text-decoration: none;
  font-size: 0.9em;
  background: #f8f8f8;
  border-right: 1px solid #ccc;
  transition: background 0.15s;
}
.xaxis-toggle a:last-child { border-right: none; }
.xaxis-toggle a:hover { background: #eee; color: #444; }
.xaxis-toggle a.active { background: #555; color: #fff; }
