/* Sixteen Bit Panel Component Styles */
/* Ported from toggle-nixie SixteenBitView */

.sixteen-bit-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 0;
  gap: 1rem;
}

.panel-label {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e0e0e0;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.value-display {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2d3748;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.hex-value {
  color: #48bb78;
  font-family: 'Courier New', monospace;
}

.decimal-value {
  color: #667eea;
}

.switches-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
}

.switches-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
}

.nibble-switches {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0 0.3rem;
}

/* White vertical divider lines between nibbles */
/* Top aligns with number labels, bottom extends to toggle in down position */
.nibble-divider {
  width: 3px;
  background: rgba(255, 255, 255, 0.9);
  align-self: flex-start;
  height: 105px;
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.switch-with-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.switch-number {
  font-size: 0.9rem;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Scale down the toggle switches to fit */
.switch-with-label .toggle-container {
  transform: scale(0.55);
  transform-origin: center top;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .switch-with-label .toggle-container {
    transform: scale(0.48);
  }

  .switch-number {
    font-size: 0.8rem;
  }
}

@media (max-width: 1024px) {
  .switch-with-label .toggle-container {
    transform: scale(0.42);
  }

  .switch-number {
    font-size: 0.75rem;
  }

  .value-display {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .sixteen-bit-panel {
    gap: 0.5rem;
  }

  .switch-with-label .toggle-container {
    transform: scale(0.4);
  }

  .switch-number {
    font-size: 0.7rem;
  }

  .nibble-switches {
    gap: 0.1rem;
    padding: 0 0.3rem;
  }

  .switches-row {
    gap: 0.2rem;
  }

  .value-display {
    font-size: 1rem;
  }
}
