* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

.app-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
}

.app-header {
  text-align: center;
  margin-bottom: 1rem;
}

.app-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.app-header p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.room-section {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

input[type="text"], select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
}

input[type="text"]:focus, select:focus {
  outline: none;
  border-color: #3b82f6;
}

.camera-section {
  background: #020617;
  border-radius: 1rem;
  padding: 0.75rem;
  border: 1px solid #1f2937;
}

.camera-controls {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.video-wrapper,
.preview-wrapper {
  position: relative;
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #020617;
  border: 1px solid #111827;
}

video, img {
  display: block;
  width: 100%;
  height: auto;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

button {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.05s ease, background-color 0.2s ease;
}

button.primary {
  background: #3b82f6;
  color: white;
}

button.secondary {
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #1f2937;
}

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

button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 0 0;
}

.status {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
  min-height: 1em;
}

@media (min-width: 768px) {
  .app-container {
    padding: 1.5rem;
  }
}
