/* Pi Keyboard Bridge - Bootstrap 5 Customizations */

:root {
  --bs-body-bg: #212529;
  --bs-body-color: #dee2e6;
}

.status-card .status-item {
  display: inline-block;
  margin-right: 1.5rem;
}

.trackpad-area {
  width: 100%;
  height: 300px;
  background: #343a40;
  border: 1px solid #495057;
  border-radius: .375rem;
  cursor: none;
  position: relative;
  user-select: none;
}

#cursor_dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #000;
  border-radius: 50%;
  pointer-events: none;
  display: none;
}

.trackpad-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #adb5bd;
  text-align: center;
  pointer-events: none;
}

.trackpad-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.trackpad-text {
  font-size: 1.25rem;
  font-weight: bold;
}

.unmapped-keys-container {
  max-height: 300px;
  overflow-y: auto;
}

.unmapped-key-item {
  cursor: pointer;
}

.cal-point {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #495057;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  color: #ced4da;
  transition: all 0.3s;
}

.cal-point.done {
  background: #198754; /* Bootstrap success */
  color: white;
  transform: scale(1.1);
}

.cal-point.active {
  background: #ffc107; /* Bootstrap warning */
  color: #000;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}