/* ============================================================
   Procare Support Chat — Stylesheet
   Colors: swap CSS variables to match final Procare brand guide
   ============================================================ */

:root {
  --procare-blue: #1a73e8;
  --procare-blue-dark: #1558b0;
  --procare-green: #34a853;
  --header-height: 56px;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --background: #f8f9fa;
  --white: #ffffff;
  --border: #dadce0;
}

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

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--procare-blue);
  color: var(--white);
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0 20px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-title {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.85;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  padding-left: 12px;
}

/* ── Main chat area ──────────────────────────────────────── */

.chat-container {
  padding-top: var(--header-height);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-message {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Hide loading message once Intercom is ready */
.intercom-loaded .loading-message {
  display: none;
}

/* Missing context state — hide loading, show error */
.missing-context-message {
  display: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  padding: 0 24px;
}

.missing-context .loading-message {
  display: none;
}

.missing-context .missing-context-message {
  display: block;
}
