/* Fond sombre et look oscilloscope type patch-clamp */
body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  background: #222;
  color: #eee;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 40px;
}

h1 {
  font-weight: 600;
  font-size: 20px;
  margin-top: 16px;
}

#oscilloscope {
  background-color: #000;
  border: 5px solid #4caf50;
  border-radius: 15px;
  display: block;
  margin-top: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.5) inset;
}

#controls {
  margin-top: 12px;
  text-align: center;
}

#controls label {
  font-size: 1.05em;
}

#controls input[type="range"] {
  width: 380px;
  margin-top: 8px;
  vertical-align: middle;
}

#controls button {
  margin-left: 10px;
  padding: 8px 15px;
  font-size: 1em;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background: #4caf50;
  color: white;
}

#controls button.secondary {
  background: #555;
}

#controls button:hover {
  filter: brightness(1.06);
}

#message {
  margin-top: 10px;
  font-size: 1.05em;
  min-height: 1.4em;
}

/* Journal d'essais */
#log {
  width: 960px;
  max-width: calc(100vw - 32px);
  margin-top: 16px;
}

#log h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0;
}

#trialsTable {
  width: 100%;
  border-collapse: collapse;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
}

#trialsTable thead th {
  background: #0e2b0e;
  color: #bff0bf;
  font-weight: 600;
  padding: 8px;
  border-bottom: 1px solid #335533;
}

#trialsTable tbody td {
  padding: 8px;
  border-bottom: 1px solid #2a2a2a;
  font-family: "Menlo", "Consolas", monospace;
  font-size: 13px;
}

#trialsTable tbody tr:nth-child(odd) {
  background: #0a0a0a;
}

#trialsTable tbody tr:nth-child(even) {
  background: #0f0f0f;
}
