/* sensor-tool.css — page-specific styles for Sensor Event & Binary Integrity Analysis Tool */

/* ── File upload label (styled to match thermo-f inputs) ─────────── */
.sensor-file-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 5px;
  border: 1.5px solid rgb(67, 67, 67);
  background: #d9d9d9;
  color: #000;
  cursor: pointer;
  font-family: "Roboto", Arial, sans-serif;
  height: 22px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s;
}

.sensor-file-label:hover {
  background: #eee;
}

/* ── Sensor manager action buttons (small inline icon buttons) ──── */
.sensor-action-btn {
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1.5px solid rgb(67, 67, 67);
  background: #d9d9d9;
  color: #333;
  cursor: pointer;
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.4;
  margin: 0 1px;
}

.sensor-action-btn:hover {
  background: #eee;
}

/* ── Spike Explorer cards ─────────────────────────────────────────── */
.spike-card {
  background: #fff;
  border: 1.5px solid #b0b0b0;
  border-radius: 7px;
  padding: 8px 10px;
  min-width: 140px;
  max-width: 180px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 11.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spike-card-ch {
  font-size: 11px;
  font-weight: 700;
  color: #61828A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 4px;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spike-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.spike-card-row span:first-child {
  color: #888;
  font-size: 10.5px;
}

.spike-card-row span:last-child {
  color: #1a3a40;
  font-size: 11px;
  font-family: "Courier New", Courier, monospace;
}

/* ── Power-of-2 jump badge (red, in bit table) ──────────────────── */
.pow2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #cc2222;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  min-width: 20px;
  height: 16px;
  padding: 0 5px;
  font-family: "Roboto", Arial, sans-serif;
}

/* ── Binary type / endian radio grid overrides ──────────────────── */
#binaryTypeGrid .it,
#endianGrid .it {
  min-width: 70px;
  justify-content: center;
}

/* ── Responsive: stack columns on small screens ─────────────────── */
@media (max-width: 600px) {
  .spike-card {
    min-width: 120px;
    max-width: 100%;
    flex: 1 1 120px;
  }

  #binaryTypeGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #endianGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
