/* Shared bot look. Loaded AFTER each page's own stylesheet so these rules win,
   giving every assistant the same Tap-to-speak button and page furniture.
   Source of truth: the CareSense treatment. */

:root {
  --bot-bg: #0b0f14;
  --bot-surface: #111827;
  --bot-border: #1f2937;
  --bot-text: #e5e7eb;
  --bot-text-dim: #9ca3af;
  --bot-accent: #5eead4;
  --bot-accent-dim: #99f6e4;
  --bot-connecting: #38bdf8;
  --bot-recording: #60a5fa;
}

/* ---- Tap to speak button ------------------------------------------------ */
.voice-button {
  position: relative;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease-in-out;
  cursor: pointer;
  border: 4px solid;
}

.voice-button.disconnected {
  background: linear-gradient(to bottom right, #1f2937, #111827);
  border-color: #4b5563;
}

.voice-button.disconnected:hover {
  border-color: #6b7280;
}

.voice-button.connecting {
  background: linear-gradient(to bottom right, #0c4a6e, #075985);
  border-color: var(--bot-connecting);
}

.voice-button.idle {
  background: linear-gradient(to bottom right, #134e4a, #115e59);
  border-color: var(--bot-accent);
  cursor: pointer;
}

.voice-button.idle:hover {
  border-color: var(--bot-accent-dim);
}

.voice-button.recording {
  background: linear-gradient(to bottom right, #1e3a8a, #1e40af);
  border-color: var(--bot-recording);
}

.button-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  color: #d1d5db;
  transition: color 0.3s ease-in-out;
}

.status-text {
  font-size: 1.125rem;
  font-weight: 500;
  text-align: center;
  margin: 0;
  transition: color 0.3s ease-in-out;
}

.voice-button.disconnected .status-text { color: var(--bot-text-dim); }
.voice-button.connecting   .status-text { color: var(--bot-connecting); }
.voice-button.idle         .status-text { color: var(--bot-accent); }
.voice-button.recording    .status-text { color: var(--bot-recording); }

.voice-button.recording::before,
.voice-button.recording::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--bot-recording);
  opacity: 0.2;
  animation: bot-pulse 1.5s infinite ease-in-out;
}

.voice-button.recording::after { animation-delay: 0.5s; }

@keyframes bot-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.2; }
  50%      { transform: scale(1.1); opacity: 0;   }
}

/* ---- Shared page furniture --------------------------------------------- */
/* One typeface everywhere: three pages used Inter, three used the system
   stack, which was the most visible inconsistency between assistants. */
body {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  background-color: #000000;
  color: #ffffff;
  margin: 0;
  min-height: 100vh;
}

.header {
  background-color: #000000;
  border-bottom: 1px solid var(--bot-border);
}

.header-content {
  max-width: 64rem;
  margin: 0 auto;
}

/* Connection indicator: same dot + label treatment on every voice bot. */
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease-in-out;
}

.status-dot.disconnected { background-color: #6b7280; }
.status-dot.connecting   { background-color: var(--bot-connecting); }
.status-dot.idle,
.status-dot.connected    { background-color: var(--bot-accent); }
.status-dot.recording    { background-color: var(--bot-recording); }

.status-label {
  font-size: 0.875rem;
  color: var(--bot-text-dim);
}

.error-display {
  background-color: #7f1d1d;
  border: 1px solid #b91c1c;
  color: #fecaca;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.error-display.hidden { display: none; }
