/**
 * dumps.fm (rebuild) - Webcam Panel Styles
 * Purpose: Bottom-right webcam panel styling to match the dumps.fm aesthetic.
 * Dependencies: `public/css/main.css`.
 * Dependents: `public/index.html`.
 */

.webcam-panel {
  position: fixed;
  right: var(--webcam-right);
  bottom: var(--webcam-bottom); /* sit above composer/footer area */
  width: var(--webcam-width); /* match sidebar width */
  z-index: 11; /* above chat; below tools drawer */
  background: var(--bg-sidebar);
  border: 1px solid var(--border-primary);
  box-shadow: var(--webcam-shadow);
}

.webcam-panel[hidden] {
  display: none;
}

.webcam-panel__head {
  height: var(--webcam-header-height);
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--webcam-header-padding);
  font-size: 12px;
}

.webcam-panel__title {
  font-family: var(--font-mono);
}

.webcam-panel__body {
  padding: var(--webcam-body-padding);
}

.webcam-panel__row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.webcam-panel__select {
  width: 100%;
  height: var(--webcam-btn-height);
  border: 1px solid var(--border-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 11px;
}

.webcam-panel__btn {
  flex: 1;
  height: var(--webcam-btn-height);
  border: 1px solid var(--border-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

.webcam-panel__btn[disabled] {
  opacity: 0.45;
  cursor: default;
  color: var(--text-secondary);
}

.webcam-panel__mini {
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.webcam-panel__stage video,
.webcam-panel__stage img {
  width: 100%;
  display: block;
  margin-top: 8px;
  border: 1px solid var(--border-primary);
  background: var(--bg-primary);
}

.webcam-panel__out {
  margin-top: 8px;
  padding: 6px;
  border: 1px solid var(--border-primary);
  background: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: none;
}
