/**
 * 4G LTE PSS/SSS/PCI Tutorial - local styles
 * Max width 800px, Courier New, black background (requirements.txt)
 */
#pci4g-container {
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  background: #0b0e14;
  color: #00f2ff;
  padding: 12px;
  border-radius: 4px;
  overflow: hidden;
}

#pci4g-container .pci4g-control-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  flex-wrap: wrap;
}

#pci4g-container .pci4g-control-row label {
  min-width: auto;
  color: #00f2ff;
}

#pci4g-container .pci4g-control-row input[type="range"],
#pci4g-container .pci4g-control-row select {
  background: #000;
  border: 1px solid #1a2634;
  color: #00f2ff;
  padding: 4px 8px;
  font-family: 'Courier New', monospace;
}

#pci4g-container .pci4g-control-row input[type="range"] {
  flex: 0 1 120px;
  min-width: 60px;
}

#pci4g-container .pci4g-val {
  min-width: 24px;
  color: #fff;
}

#pci4g-container .pci4g-section {
  border-left: 3px solid #00f2ff;
  background: rgba(26, 38, 52, 0.5);
  padding: 10px;
  margin: 8px 0;
}

#pci4g-container .pci4g-section h4 {
  margin: 0 0 8px 0;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00f2ff;
}

#pci4g-container .pci4g-pci-display {
  font-size: 18px;
  font-weight: bold;
  color: #00ff88;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #1a2634;
  text-align: center;
  margin: 8px 0;
}

#pci4g-container .pci4g-formula {
  font-size: 14px;
  color: #fff;
  margin: 4px 0;
}

#pci4g-container .pci4g-grid-wrap {
  max-width: 100%;
  overflow: hidden;
  border: 2px solid #1a2634;
  background: #000;
  margin: 8px 0;
}

#pci4g-container .pci4g-canvas {
  display: block;
  background: #000;
}

#pci4g-container .pci4g-plot-wrap {
  border: 2px solid #1a2634;
  background: #000;
  margin: 8px 0;
  padding: 8px;
}

#pci4g-container .pci4g-sss-plot-wrap {
  position: relative;
}

#pci4g-container .pci4g-plot-toolbar {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 10;
  display: flex;
  gap: 4px;
}

#pci4g-container .pci4g-plot-toolbar-right {
  left: auto;
  right: 4px;
}

#pci4g-container .pci4g-plot-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  background: rgba(26, 38, 52, 0.9);
  border: 1px solid #00f2ff;
  color: #00f2ff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
}

#pci4g-container .pci4g-plot-btn:hover {
  background: rgba(0, 242, 255, 0.2);
}

#pci4g-container .pci4g-sss-canvas-wrap {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #2a3a4a #0b0e14;
}

#pci4g-container .pci4g-sss-canvas-wrap::-webkit-scrollbar {
  height: 8px;
}

#pci4g-container .pci4g-sss-canvas-wrap::-webkit-scrollbar-track {
  background: #0b0e14;
}

#pci4g-container .pci4g-sss-canvas-wrap::-webkit-scrollbar-thumb {
  background: #2a3a4a;
  border-radius: 4px;
}

#pci4g-container .pci4g-sss-canvas-wrap::-webkit-scrollbar-thumb:hover {
  background: #3a4a5a;
}

#pci4g-container .pci4g-sync-btn-row {
  text-align: center;
  margin-bottom: 0;
}

#pci4g-container .pci4g-btn {
  background: #1a5276;
  border: 1px solid #00f2ff;
  color: #00f2ff;
  padding: 8px 16px;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  font-size: 12px;
}

#pci4g-container .pci4g-btn:hover {
  background: #2471a3;
}

#pci4g-container .pci4g-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#pci4g-container .pci4g-legend {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 11px;
  flex-wrap: wrap;
}

#pci4g-container .pci4g-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

#pci4g-container .pci4g-swatch {
  width: 12px;
  height: 12px;
  border: 1px solid #333;
}

#pci4g-container .pci4g-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #00f2ff;
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  pointer-events: none;
  z-index: 1000;
  font-family: 'Courier New', monospace;
  max-width: 220px;
}

#pci4g-container .pci4g-sync-history-wrap {
  margin-top: 12px;
}

#pci4g-container .pci4g-sync-history-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00f2ff;
  margin-bottom: 4px;
}

#pci4g-container .pci4g-sync-history {
  padding: 10px;
  background: #000;
  border: 1px solid #1a2634;
  max-height: 200px;
  overflow-y: auto;
  font-size: 11px;
  scrollbar-width: thin;
  scrollbar-color: #2a3a4a #0b0e14;
}

#pci4g-container .pci4g-sync-history::-webkit-scrollbar {
  width: 8px;
}

#pci4g-container .pci4g-sync-history::-webkit-scrollbar-track {
  background: #0b0e14;
}

#pci4g-container .pci4g-sync-history::-webkit-scrollbar-thumb {
  background: #2a3a4a;
  border-radius: 4px;
}

#pci4g-container .pci4g-sync-history .pci4g-trial-entry {
  padding: 6px 0;
  border-bottom: 1px solid #1a2634;
  color: #00f2ff;
}

#pci4g-container .pci4g-sync-history .pci4g-trial-entry:last-child {
  border-bottom: none;
}

#pci4g-container .pci4g-sync-history .pci4g-trial-num {
  color: #00ff88;
  font-weight: bold;
}

#pci4g-container .pci4g-sync-history .pci4g-trial-match {
  color: #00ff88;
}

#pci4g-container .pci4g-sync-history .pci4g-trial-match .pci4g-match {
  font-weight: bold;
}

#pci4g-container .pci4g-sync-history .pci4g-trial-result {
  color: #00ff88;
  font-weight: bold;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #1a2634;
}

#pci4g-container .pci4g-heatmap-wrap {
  border: 2px solid #1a2634;
  background: #000;
  padding: 10px;
  margin: 8px 0;
}

#pci4g-container .pci4g-heatmap-pss {
  margin-bottom: 12px;
}

#pci4g-container .pci4g-heatmap-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00f2ff;
  margin-bottom: 4px;
}

#pci4g-container .pci4g-heatmap-sss-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

#pci4g-container .pci4g-heatmap-cell {
  flex: 0 0 auto;
}

#pci4g-container .pci4g-heatmap-cell canvas {
  display: block;
  background: #000;
  border: 1px solid #1a2634;
}
