:root {
  --primary: #6200ee;
  --primary-dark: #3700b3;
  --surface: #121212;
  --on-surface: #ffffff;
  --error: #cf6679;
  --success: #03dac6;
}

body {
  background: var(--surface);
  color: var(--on-surface);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.camera-container {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.stop-camera {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  background: var(--error);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.stop-camera:hover {
  opacity: 1;
  background: var(--error);
}

video, canvas {
  width: 100%;
  max-width: 1024px;
  border-radius: 8px;
}

canvas {
  display: none;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.button:hover {
  background: var(--primary-dark);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button.active {
  background: var(--primary-dark);
}

.info-panel {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.warning {
  color: var(--error);
  display: none;
}

.readme-section {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.readme-section summary {
  cursor: pointer;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.disclaimer {
  opacity: 0.8;
  font-size: 0.9rem;
}

.camera-controls {
  margin-bottom: 1rem;
}

.camera-select {
  background: var(--surface);
  color: var(--on-surface);
  border: 1px solid var(--primary);
  padding: 8px;
  border-radius: 4px;
  width: 100%;
  max-width: 300px;
  font-size: 14px;
  margin-bottom: 1rem;
}

/* Style dropdown options */
.camera-select option {
  background-color: var(--surface);
  color: var(--on-surface);
  padding: 8px;
}

/* Ensure dropdown arrow is visible */
.camera-select::-ms-expand {
  background-color: transparent;
  color: var(--on-surface);
}

/* For Webkit browsers */
.camera-select::-webkit-select-arrow {
  color: var(--on-surface);
}

/* For Firefox */
.camera-select {
  -moz-appearance: none;
  text-indent: 0.01px;
  text-overflow: '';
}
