/* Style rétro terminal vert */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #000;
  color: #00ff41;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  min-height: 100vh;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

/* Zone principale verticale */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

h1 {
  text-align: center;
  font-weight: 700;
  font-size: 1.5em;
  border-bottom: 1px solid #00ff41;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* Bouton d'activation audio */
.activate-btn {
  background: #001100;
  border: 2px solid #00ff41;
  color: #00ff41;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 20px;
  margin: 0 auto 20px;
}
.activate-btn:hover {
  background: #00ff41;
  color: #000;
  box-shadow: 0 0 10px #00ff41;
}
.activate-btn.active { display: none; }

/* Panneau de fréquence */
.frequency-control {
  background: #001a00;
  border: 1px solid #00ff41;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.frequency-control label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

#frequencySlider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #002200;
  outline: none;
  -webkit-appearance: none;
}

#frequencySlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00ff41;
  cursor: pointer;
  box-shadow: 0 0 8px #00ff41;
}

#frequencySlider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00ff41;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px #00ff41;
}

/* Tableau morse */
.morse-table {
  border: 1px solid #00ff41;
  background: #001a00;
  margin: 10px 0;
  overflow-x: auto;
}
.morse-table h3 {
  background: #002200;
  padding: 5px 10px;
  font-size: 11px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th, td { padding: 6px 8px; border-bottom: 1px solid #002200; }
.dot-char { color: #ffaa44; }
.dash-char { color: #44aaff; }

/* Indicateurs d’état */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.status-box {
  background: #001100;
  border: 1px solid #004400;
  padding: 10px;
}
.status-label { opacity: 0.6; font-size: 10px; }
.dot {
  display:inline-block; width:10px; height:10px; border-radius:50%;
  background:#002200; margin-left:5px; border:1px solid #004400;
}
.dot.on { background:#00ff41; box-shadow:0 0 5px #00ff41; }

/* Barre d’état inférieure */
#status {
  text-align: center;
  background: #001100;
  border: 1px solid #004400;
  padding: 10px;
  font-size: 11px;
  margin-top: 10px;
}
