/**
 * 4G LTE Uplink Resource Grid Simulator - local styles
 * Max width 800px, Courier New, black background (requirements.txt)
 */
#rgul4g-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;
}

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

#rgul4g-container .rgul4g-section h4 {
  margin: 0 0 8px 0;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: bold;
}

#rgul4g-container .rgul4g-section:nth-child(1) h4 { color: #00f2ff; }
#rgul4g-container .rgul4g-section:nth-child(2) h4 { color: #ff9f43; }
#rgul4g-container .rgul4g-section:nth-child(3) h4 { color: #ee5a6f; }
#rgul4g-container .rgul4g-section:nth-child(4) h4 { color: #a29bfe; }

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

#rgul4g-container .rgul4g-section:first-child .rgul4g-control-row {
  flex-wrap: nowrap;
  gap: 6px;
}

#rgul4g-container .rgul4g-control-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

#rgul4g-container .rgul4g-control-row label {
  color: #00f2ff;
}

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

#rgul4g-container .rgul4g-control-row input[type="range"] {
  width: 80px;
  min-width: 60px;
}

#rgul4g-container .rgul4g-control-row input[type="number"] {
  width: 60px;
}

#rgul4g-container .rgul4g-num-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

#rgul4g-container .rgul4g-num-stepper input {
  width: 52px;
}

#rgul4g-container .rgul4g-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  background: #1a2634;
  border: 1px solid #333;
  color: #00f2ff;
  cursor: pointer;
  font-family: inherit;
}

#rgul4g-container .rgul4g-step-btn:hover {
  background: #2a3644;
  border-color: #00f2ff;
}

#rgul4g-container .rgul4g-step-btn:active {
  background: #0a1624;
}

#rgul4g-container .rgul4g-bulk-btn {
  padding: 4px 10px;
  margin-right: 6px;
  background: #1a2634;
  border: 1px solid #333;
  color: #00f2ff;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 11px;
}

#rgul4g-container .rgul4g-bulk-btn:last-of-type {
  margin-right: 0;
}

#rgul4g-container .rgul4g-bulk-btn:hover {
  background: #2a3644;
  border-color: #00f2ff;
}

#rgul4g-container .rgul4g-bulk-btn:active {
  background: #0a1624;
}

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

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

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

#rgul4g-container .rgul4g-swatch-striped {
  background: #2e9d9d;
}

#rgul4g-container .rgul4g-swatch-reserved {
  background: repeating-linear-gradient(135deg, #1a2634, #1a2634 2px, #0d1319 2px, #0d1319 4px);
}

#rgul4g-container .rgul4g-status-bar {
  font-size: 11px;
  color: #fff;
  margin: 6px 0;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #1a2634;
  min-height: 1.2em;
}

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

#rgul4g-container .rgul4g-canvas-wrap {
  max-width: 100%;
  max-height: 550px;
  overflow: hidden;
  border: none;
  background: #000;
  margin: 0 auto;
}

#rgul4g-container .rgul4g-canvas-wrap-scroll {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #2a3a4a #0b0e14;
}

#rgul4g-container .rgul4g-canvas-wrap-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

#rgul4g-container .rgul4g-canvas-wrap-scroll::-webkit-scrollbar-thumb {
  background: #2a3a4a;
  border-radius: 5px;
}

#rgul4g-container .rgul4g-canvas-wrap canvas {
  display: block;
  margin: 0 auto;
  background: #000;
  cursor: default;
}

#rgul4g-container .rgul4g-magnification-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

#rgul4g-container .rgul4g-magnification-row label {
  color: #00f2ff;
}

#rgul4g-container .rgul4g-magnification-row input[type="range"] {
  width: 120px;
  min-width: 80px;
}

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

#rgul4g-container .rgul4g-pucch-info {
  font-size: 11px;
  color: #00f2ff;
  margin: 12px 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #1a2634;
  border-left: 3px solid #00f2ff;
  font-family: 'Courier New', monospace;
}

#rgul4g-container .rgul4g-pucch-info h5 {
  margin: 0 0 8px 0;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00f2ff;
}

#rgul4g-container .rgul4g-pucch-info .rgul4g-formula-row {
  margin: 6px 0;
  padding: 4px 0;
  border-bottom: 1px solid #1a2634;
}

#rgul4g-container .rgul4g-pucch-info .rgul4g-formula-label {
  color: #8ab4f8;
  margin-bottom: 2px;
}

#rgul4g-container .rgul4g-pucch-info .rgul4g-formula-expr {
  color: #fff;
  margin: 2px 0;
}

#rgul4g-container .rgul4g-pucch-info .rgul4g-formula-result {
  color: #00ff88;
  font-weight: bold;
  margin-top: 4px;
}

#rgul4g-container .rgul4g-pucch-info .rgul4g-formula-note {
  margin-top: 8px;
  font-size: 10px;
  color: #8ab4f8;
  font-style: italic;
}

#rgul4g-container .rgul4g-control-note {
  margin: 6px 0 0 0;
  font-size: 10px;
  color: #8ab4f8;
  font-style: italic;
}

#rgul4g-container .rgul4g-tabs {
  display: flex;
  gap: 4px;
  margin: 12px 0 8px 0;
}

#rgul4g-container .rgul4g-tab {
  padding: 8px 16px;
  background: rgba(26, 38, 52, 0.8);
  border: 1px solid #1a2634;
  color: #00f2ff;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  cursor: pointer;
}

#rgul4g-container .rgul4g-tab:hover {
  background: rgba(0, 242, 255, 0.15);
}

#rgul4g-container .rgul4g-tab-active {
  background: #1a5276;
  border-color: #00f2ff;
  color: #fff;
}

#rgul4g-container .rgul4g-tab-content {
  margin-top: 0;
}

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

#rgul4g-container .rgul4g-spectrum-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

#rgul4g-container .rgul4g-spectrum-controls label {
  color: #00f2ff;
}

#rgul4g-container .rgul4g-spectrum-controls select {
  background: #000;
  border: 1px solid #1a2634;
  color: #00f2ff;
  padding: 4px 8px;
  font-family: 'Courier New', monospace;
}

#rgul4g-container .rgul4g-spectrum-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

#rgul4g-container .rgul4g-spectrum-slider-wrap label {
  min-width: 70px;
}

#rgul4g-container .rgul4g-spectrum-slider-wrap input[type="range"] {
  flex: 0 1 120px;
  min-width: 80px;
}

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

#rgul4g-container .rgul4g-spectrum-canvases {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#rgul4g-container .rgul4g-spectrum-item {
  border: 2px solid #1a2634;
  background: #000;
  padding: 8px;
}

#rgul4g-container .rgul4g-spectrum-item h5 {
  margin: 0 0 8px 0;
  font-size: 11px;
  color: #00f2ff;
  background: rgba(26, 38, 52, 0.8);
  padding: 4px 8px;
  border-bottom: 1px solid #1a2634;
}

#rgul4g-container .rgul4g-spectrum-item canvas {
  display: block;
  width: 100%;
  max-width: 760px;
  background: #000;
}
