/* Meeting Bridge — 1280x720 viewport for Recall.ai bot camera */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 1280px;
  height: 720px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0d1117;
  color: #e6edf3;
}

#bridge-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── Header: avatar + status ── */

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: rgba(13, 17, 23, 0.9);
}

#avatar-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

#name {
  font-size: 22px;
  font-weight: 600;
  color: #f0f6fc;
}

#role {
  font-size: 14px;
  color: #8b949e;
  margin-top: 2px;
}

#status-text {
  font-size: 14px;
  color: #8b949e;
  text-align: right;
}

/* ── Status orb ── */

.orb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.orb.initializing { background: #6e7681; }
.orb.connecting   { background: #d29922; box-shadow: 0 0 8px rgba(210, 153, 34, 0.5); }
.orb.active       { background: #3fb950; box-shadow: 0 0 6px rgba(63, 185, 80, 0.3); }
.orb.speaking     { background: #3fb950; box-shadow: 0 0 16px rgba(63, 185, 80, 0.7); }
.orb.listening    { background: #58a6ff; box-shadow: 0 0 12px rgba(88, 166, 255, 0.5); }
.orb.standby      { background: #6e7681; box-shadow: 0 0 4px rgba(110, 118, 129, 0.3); }
.orb.error        { background: #f85149; box-shadow: 0 0 8px rgba(248, 81, 73, 0.5); }

/* ── Center: waveform ── */

#center-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#waveform {
  display: block;
}

/* ── Transcript overlay ── */

#transcript-area {
  height: 240px;
  padding: 16px 40px 24px;
  background: linear-gradient(transparent, rgba(13, 17, 23, 0.95) 30%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#transcript {
  overflow-y: auto;
  max-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: #30363d transparent;
}

.transcript-entry {
  font-size: 15px;
  line-height: 1.4;
  color: #c9d1d9;
  padding: 4px 0;
  opacity: 0.9;
}

.transcript-entry .speaker {
  font-weight: 600;
  color: #58a6ff;
}
