/* =====================================================
   Portal do Cliente — BKon Consultoria
   Identidade visual oficial BKon (Azul Noturno + Azul BKon + Ciano Farol)
   Modern Dashboard 2024-2026 v3.0
   ===================================================== */

/* ─── Tokens: Dark Mode (base) ─────────────────────── */
:root {
  /* Paleta BKon — Dark */
  --bg-primary:     #0A1020;   /* Azul Noturno */
  --bg-card:        #111827;   /* card sobre noturno */
  --bg-card-hover:  #162035;
  --bg-subtle:      #0D1628;   /* área sutil */
  --border:         rgba(255,255,255,0.07);
  --border-strong:  rgba(255,255,255,0.14);

  --text-primary:   #F0F4FF;
  --text-secondary: #A8B4CC;
  --text-muted:     #5A6577;   /* Cinza Ardósia */
  --text-disabled:  #2A3347;

  /* Accent BKon: gradiente azul→ciano usado inline como bg;
     --accent é a cor "sólida primária" para fills, --accent-2 é o ciano */
  --accent:         #2A6BF2;   /* Azul BKon */
  --accent-2:       #19C6D4;   /* Ciano Farol */
  --accent-hover:   #1A5AE0;
  --accent-soft:    rgba(42,107,242,0.12);
  --accent-border:  rgba(42,107,242,0.30);
  --accent-text-on: #FFFFFF;   /* texto sobre bg accent */
  --accent-text:    #6EA8FF;   /* links/destaque inline (contraste AA sobre dark) */

  /* Gradiente de sinal — usado em logo, botões primários, barras de progresso */
  --gradient-signal: linear-gradient(135deg, #2A6BF2 0%, #19C6D4 100%);

  /* Semânticas */
  --success:        #4ADE80;
  --success-soft:   rgba(74,222,128,0.12);
  --warning:        #FACC15;
  --warning-soft:   rgba(250,204,21,0.12);
  --danger:         #E1483C;
  --danger-soft:    rgba(225,72,60,0.12);
  --info:           #19C6D4;   /* ciano como info em dark */
  --info-soft:      rgba(25,198,212,0.12);

  --shadow-card:    0 8px 32px rgba(0,0,0,0.35);
  --shadow-card-hover: 0 12px 48px rgba(0,0,0,0.50);
  --shadow-glow:    0 0 28px rgba(42,107,242,0.35);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  24px;
  --radius-full: 999px;

  --duration-fast:   120ms;
  --duration-normal: 200ms;
  --duration-slow:   320ms;
  --easing:          cubic-bezier(0.4, 0, 0.2, 1);
  --easing-out:      cubic-bezier(0, 0, 0.2, 1);

  --sidebar-width: 240px;
  --topbar-height: 56px;
}

/* ─── Tokens: Light Mode ────────────────────────────── */
[data-theme="light"] {
  --bg-primary:     #F6F7F9;   /* Névoa */
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #F0F2F6;
  --bg-subtle:      #EBEEf3;
  --border:         rgba(0,0,0,0.07);
  --border-strong:  rgba(0,0,0,0.13);

  --text-primary:   #0A1020;   /* Azul Noturno como texto principal */
  --text-secondary: #2A3A55;
  --text-muted:     #5A6577;   /* Cinza Ardósia */
  --text-disabled:  #B8C2D0;

  /* Em light: azul primário como accent, ciano apenas sobre dark */
  --accent:         #2A6BF2;   /* 4.8:1 sobre branco ✅ */
  --accent-2:       #0FAABB;   /* ciano escurecido para uso em light */
  --accent-hover:   #1A5AE0;
  --accent-soft:    rgba(42,107,242,0.08);
  --accent-border:  rgba(42,107,242,0.25);
  --accent-text-on: #FFFFFF;
  --accent-text:    #1A5AE0;   /* links inline sobre light */

  --gradient-signal: linear-gradient(135deg, #2A6BF2 0%, #19C6D4 100%);

  --success:        #16A34A;
  --success-soft:   rgba(22,163,74,0.10);
  --warning:        #B45309;
  --warning-soft:   rgba(180,83,9,0.10);
  --danger:         #C0392B;
  --danger-soft:    rgba(192,57,43,0.10);
  --info:           #0FAABB;
  --info-soft:      rgba(15,170,187,0.10);

  --shadow-card:    0 4px 24px rgba(10,16,32,0.08);
  --shadow-card-hover: 0 8px 40px rgba(10,16,32,0.14);
  --shadow-glow:    0 0 24px rgba(42,107,242,0.22);
}

/* ─── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--duration-slow) var(--easing),
              color var(--duration-slow) var(--easing);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
textarea { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Shared: Logo BKon ─────────────────────────────── */
/* Ícone quadrado arredondado com gradiente + "B" + sinal do farol */
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--gradient-signal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 16px rgba(42,107,242,0.30);
}
.logo-icon svg {
  width: 36px;
  height: 36px;
}

/* Logo maior na tela de login */
.login-logo .logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(42,107,242,0.40);
}
.login-logo .logo-icon svg {
  width: 56px;
  height: 56px;
}

/* Logo compacto na sidebar e topbar */
.logo-icon--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(42,107,242,0.25);
}
.logo-icon--sm svg {
  width: 28px;
  height: 28px;
}
.logo-wordmark__name--sm {
  font-size: 15px;
}


.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}
.logo-wordmark__name {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-wordmark__sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 1px;
}

/* Mantém .logo-mark e .logo-dot para compatibilidade com partes do JS */
.logo-mark {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}
.logo-dot {
  display: none; /* substituído pelo ícone de farol */
}
.logo-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ─── Shared: Badges ────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--accent  { background: var(--accent-soft);   color: var(--accent-text);   border: 1px solid var(--accent-border); }
.badge--success { background: var(--success-soft);  color: var(--success); }
.badge--warning { background: var(--warning-soft);  color: var(--warning); }
.badge--danger  { background: var(--danger-soft);   color: var(--danger); }
.badge--info    { background: var(--info-soft);     color: var(--info); }
.badge--muted   { background: var(--bg-subtle);     color: var(--text-muted); border: 1px solid var(--border); }

/* ─── Shared: Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: transform var(--duration-fast) var(--easing),
              box-shadow var(--duration-fast) var(--easing),
              background-color var(--duration-fast) var(--easing),
              border-color var(--duration-fast) var(--easing);
  white-space: nowrap;
}
.btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}
.btn:active { transform: scale(0.97); transition-duration: 60ms; }

/* Botão primário usa gradiente de sinal */
.btn--primary {
  background: var(--gradient-signal);
  color: #FFFFFF;
  border: none;
}
.btn--primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(42,107,242,0.30);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-strong);
}
.btn--ghost:hover {
  background: var(--bg-subtle);
  border-color: var(--accent-border);
  color: var(--text-primary);
}

.btn--sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.w-full { width: 100%; }

/* ─── Shared: Form inputs ───────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--text-primary);
  transition: border-color var(--duration-fast) var(--easing),
              box-shadow var(--duration-fast) var(--easing);
  outline: none;
}
.form-input::placeholder { color: var(--text-disabled); }
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6577' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ─── Shared: Theme Toggle ──────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing),
              color var(--duration-fast) var(--easing),
              transform var(--duration-fast) var(--easing);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text-primary); transform: scale(1.05); }
.theme-toggle:active { transform: scale(0.95); }
.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  transition: transform var(--duration-normal) var(--easing);
}
/* theme-toggle hover: sem rotação (motion tasteful) */
.theme-toggle .theme-label { display: none; }

.icon-moon, .icon-sun { display: none; }
[data-theme="dark"]  .icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }

/* ─── Google badge ──────────────────────────────────── */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.google-badge svg { flex-shrink: 0; }
.google-badge--lg {
  padding: 6px 14px;
  font-size: 11px;
}

/* ─── Reveal animation ──────────────────────────────── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp var(--duration-slow) var(--easing-out) forwards;
}
.reveal-d1 { animation-delay: 60ms; }
.reveal-d2 { animation-delay: 120ms; }
.reveal-d3 { animation-delay: 180ms; }
.reveal-d4 { animation-delay: 240ms; }

/* ════════════════════════════════════════════════════
   TELA DE LOGIN — Azul Noturno + ondas do farol
════════════════════════════════════════════════════ */
.screen--login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A1020;
  position: relative;
  overflow: hidden;
}

/* Ondas concêntricas do farol — elemento gráfico de marca */
.login-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Farol: ponto de origem no canto inferior direito */
.login-bg-shape {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
}

/* Glow radial suave */
.login-bg-shape--glow {
  width: 700px; height: 700px;
  bottom: -280px; right: -280px;
  background: radial-gradient(ellipse at center, rgba(42,107,242,0.14) 0%, rgba(25,198,212,0.07) 50%, transparent 70%);
  border: none;
  border-radius: 50%;
}

/* Ondas em arco */
.login-bg-shape--w1 {
  width: 520px; height: 520px;
  bottom: -200px; right: -200px;
  background: none;
  border: 1.5px solid rgba(42,107,242,0.22);
}
.login-bg-shape--w2 {
  width: 380px; height: 380px;
  bottom: -140px; right: -140px;
  background: none;
  border: 1.5px solid rgba(25,198,212,0.20);
}
.login-bg-shape--w3 {
  width: 250px; height: 250px;
  bottom: -90px; right: -90px;
  background: none;
  border: 1.5px solid rgba(42,107,242,0.28);
}
/* Ponto de origem do farol */
.login-bg-shape--dot {
  width: 10px; height: 10px;
  bottom: 22px; right: 22px;
  background: rgba(25,198,212,0.9);
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(25,198,212,0.6), 0 0 32px rgba(25,198,212,0.3);
}

/* Glow sutil no topo esquerdo */
.login-bg-shape--tl {
  width: 300px; height: 300px;
  top: -100px; left: -80px;
  background: radial-gradient(ellipse at center, rgba(42,107,242,0.08) 0%, transparent 70%);
  border: none;
  border-radius: 50%;
}

.login-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-logo .logo-wordmark__name {
  font-size: 24px;
  color: #F0F4FF;
}
.login-logo .logo-wordmark__sub {
  color: rgba(240,244,255,0.45);
  font-size: 10px;
  letter-spacing: 0.20em;
}

.login-card {
  width: 100%;
  background: rgba(17,24,39,0.92);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-2xl);
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(42,107,242,0.08);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.login-card__header { margin-bottom: 28px; }
.login-card__title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #F0F4FF;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.login-card__sub {
  font-size: 14px;
  color: rgba(240,244,255,0.50);
}

.login-form { display: flex; flex-direction: column; gap: 16px; }

/* No login forçamos os tokens internos a usar versão dark */
.login-card .form-input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  color: #F0F4FF;
}
.login-card .form-input::placeholder { color: rgba(240,244,255,0.25); }
.login-card .form-input:focus {
  border-color: #2A6BF2;
  box-shadow: 0 0 0 3px rgba(42,107,242,0.18);
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-card .form-label {
  color: rgba(240,244,255,0.55);
}

.form-forgot {
  font-size: 12px;
  font-weight: 500;
  color: #6EA8FF;
  transition: opacity var(--duration-fast) var(--easing);
}
.form-forgot:hover { opacity: 0.75; }

.password-wrap { position: relative; }
.password-wrap .form-input { padding-right: 44px; }

.password-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240,244,255,0.35);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--easing);
  flex-shrink: 0;
}
.password-eye:hover { color: rgba(240,244,255,0.75); }
.password-eye svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 1.5; fill: none;
}

.login-btn { margin-top: 8px; }

.login-note {
  font-size: 12px;
  color: rgba(240,244,255,0.35);
  text-align: center;
  line-height: 1.5;
  margin-top: 20px;
}
.login-note a { color: #6EA8FF; font-weight: 500; }
.login-note a:hover { text-decoration: underline; }

.login-theme-toggle {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: rgba(240,244,255,0.50);
}
.login-theme-toggle:hover { color: #F0F4FF; }

/* ════════════════════════════════════════════════════
   APP SHELL
════════════════════════════════════════════════════ */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: 1fr;
  min-height: 100vh;
}

/* ─── SIDEBAR ───────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: transform var(--duration-slow) var(--easing);
  overflow-y: auto;
}

.sidebar__top { padding: 20px 16px; border-bottom: 1px solid var(--border); }
.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-decoration: none;
}

.sidebar__client {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.client-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  color: var(--accent-text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: 0.02em;
}
.client-avatar--sm { width: 32px; height: 32px; font-size: 11px; }

.client-info { display: flex; flex-direction: column; min-width: 0; }
.client-name {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.client-user {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-muted);
  letter-spacing: 0.04em;
}

.sidebar__nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: background var(--duration-fast) var(--easing),
              color var(--duration-fast) var(--easing);
}
.sidebar__link svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 1.5; fill: none; flex-shrink: 0;
}
.sidebar__link:hover { background: var(--bg-subtle); color: var(--text-primary); }
.sidebar__link--active {
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
}
.sidebar__link--active:hover { background: var(--accent-soft); color: var(--accent-text); }
.sidebar__link--logout { color: var(--text-muted); margin-top: 4px; }
.sidebar__link--logout:hover { background: var(--danger-soft); color: var(--danger); }

.nav-badge {
  margin-left: auto;
  background: var(--warning);
  color: #0A1020;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 700;
  border-radius: var(--radius-full);
  padding: 1px 6px; line-height: 1.5;
}

.sidebar__bottom { padding: 12px 10px; border-top: 1px solid var(--border); }
.sidebar__bottom .theme-toggle {
  width: 100%;
  justify-content: flex-start;
  gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-md);
  border: none; background: transparent;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary); height: auto;
}
.sidebar__bottom .theme-toggle .theme-label { display: block; }
.sidebar__bottom .theme-toggle:hover { background: var(--bg-subtle); color: var(--text-primary); transform: none; }

/* ─── TOPBAR (mobile) ───────────────────────────────── */
.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 40;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
}
.topbar__menu {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--easing);
}
.topbar__menu:hover { background: var(--bg-subtle); }
.topbar__menu svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.topbar .sidebar__logo { margin-bottom: 0; }
.topbar__sidebar-logo { margin-bottom: 0; gap: 8px; }
.topbar__right { display: flex; align-items: center; gap: 8px; }

/* ─── SIDEBAR OVERLAY (mobile) ──────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.60);
  z-index: 49;
}

/* ─── MAIN CONTENT ──────────────────────────────────── */
.main-content {
  grid-column: 2;
  min-height: 100vh;
  background: var(--bg-primary);
  padding: 32px;
  overflow-y: auto;
}

/* ─── PAGE / SCREEN ─────────────────────────────────── */
.screen { display: none; }
.screen--active { display: flex; }
.page { display: none; }
.page--active { display: block; }

/* Chat page ocupa toda a altura */
#screen-chat.page--active { display: flex; flex-direction: column; }

/* ─── PAGE HEADER ───────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.10em;
  margin-bottom: 4px;
}
.page-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 32px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em; line-height: 1.1;
}
.page-header__actions { display: flex; align-items: center; gap: 8px; }

/* ─── SECTION LABEL ─────────────────────────────────── */
.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.10em;
  margin-bottom: 12px;
}

/* ════════════════════════════════════════════════════
   TELA 2: DASHBOARD
════════════════════════════════════════════════════ */

/* Reuniões card */
.meetings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}
.meetings-card__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.meetings-card__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.meetings-card__icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-text); flex-shrink: 0;
}
.meetings-card__icon svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.meetings-card__title { font-size: 14px; font-weight: 600; color: var(--text-primary); flex: 1; }

.meetings-list { padding: 4px 0; }
.meeting-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
}
.meeting-item:hover { background: var(--bg-subtle); }
.meeting-item:not(:last-child) { border-bottom: 1px solid var(--border); }

.meeting-item__dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
/* Usando azul BKon para "upcoming" e ciano para "far" */
.meeting-item__dot--upcoming { background: var(--accent); }
.meeting-item__dot--far { background: var(--accent-2); }

.meeting-item__info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.meeting-item__name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.meeting-item__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.02em;
}

.meeting-item__link svg { width: 13px; height: 13px; }

/* Alerta de dúvida pendente */
.alert-pending {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--warning-soft);
  border: 1.5px solid var(--warning);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  margin-bottom: 32px;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--easing),
              box-shadow var(--duration-normal) var(--easing);
}
.alert-pending:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.alert-pending__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--warning);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.alert-pending__icon svg { width: 18px; height: 18px; stroke: #0A1020; stroke-width: 1.5; fill: none; }

.alert-pending__content { flex: 1; min-width: 0; }
.alert-pending__label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500;
  color: var(--warning);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px;
}
.alert-pending__text { font-size: 13px; color: var(--text-primary); line-height: 1.5; }

.alert-pending__arrow { color: var(--warning); flex-shrink: 0; }
.alert-pending__arrow svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Project cards grid */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 700px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .project-grid { grid-template-columns: 2fr 1fr 1fr; } }

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--duration-normal) var(--easing),
              box-shadow var(--duration-normal) var(--easing),
              border-color var(--duration-normal) var(--easing);
  display: flex; flex-direction: column; gap: 12px;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-border);
}

.project-card__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.project-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.project-card__icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.project-card__icon--success { background: var(--success-soft); border-color: rgba(74,222,128,0.20); color: var(--success); }

.project-card__name {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px; font-weight: 600; color: var(--text-primary); line-height: 1.3;
}
.project-card__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; flex: 1; }

.project-progress { margin-top: 4px; }
.project-progress__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.project-progress__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.project-progress__value {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.project-progress__bar { height: 6px; background: var(--bg-subtle); border-radius: var(--radius-full); overflow: hidden; }
.project-progress__fill { height: 100%; border-radius: var(--radius-full); transition: width var(--duration-slow) var(--easing-out); }
/* Barras de progresso usam o gradiente de sinal da marca */
.project-progress__fill--warning { background: var(--gradient-signal); }
.project-progress__fill--success { background: var(--gradient-signal); }
.project-progress__fill--info    { background: var(--gradient-signal); opacity: 0.6; }

.project-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px;
}
.project-card__updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-muted); letter-spacing: 0.02em;
}
.project-card__arrow {
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--easing), transform var(--duration-fast) var(--easing);
}
.project-card:hover .project-card__arrow { color: var(--accent-text); transform: translateX(3px); }
.project-card__arrow svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Dashboard summary */
.dashboard-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  display: flex; align-items: center; gap: 32px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}
.summary-stat { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 100px; }
.summary-stat__value {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 32px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em; line-height: 1.1;
}
.summary-stat__label {
  font-size: 12px; color: var(--text-muted);
}
.summary-sep { width: 1px; height: 40px; background: var(--border-strong); flex-shrink: 0; }

/* ════════════════════════════════════════════════════
   TELA 3: PROJETO DETALHE
════════════════════════════════════════════════════ */
.proj-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; margin-bottom: 16px;
  transition: color var(--duration-fast) var(--easing);
}
.proj-back:hover { color: var(--text-primary); }
.proj-back svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }

.proj-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.proj-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.proj-hero__title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 24px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.01em; margin-bottom: 4px;
}
.proj-hero__percent {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 56px; font-weight: 700;
  /* Gradiente no número de percentagem — único uso intencional em títulos display */
  background: var(--gradient-signal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em; line-height: 1; text-align: right;
}
.proj-hero__percent span {
  font-size: 24px; font-weight: 500;
  background: none;
  -webkit-text-fill-color: var(--text-muted);
}

/* Tabs */
.proj-tabs {
  display: flex; gap: 4px;
  background: var(--bg-subtle); border-radius: var(--radius-full);
  padding: 4px; margin-bottom: 24px;
  overflow-x: auto; scrollbar-width: none;
}
.proj-tabs::-webkit-scrollbar { display: none; }

.proj-tab {
  border-radius: var(--radius-full); padding: 7px 18px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; white-space: nowrap;
  transition: background var(--duration-fast) var(--easing),
              color var(--duration-fast) var(--easing),
              box-shadow var(--duration-fast) var(--easing);
  border: none; background: none;
}
.proj-tab.active { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.proj-tab:hover:not(.active) { color: var(--text-secondary); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.overview-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .overview-grid { grid-template-columns: 1fr 1fr; } }

.overview-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-card);
}
.overview-card__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.10em; margin-bottom: 12px;
}
.overview-card__text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.milestones {
  display: flex; flex-direction: column; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-card);
}
.milestone { display: flex; gap: 16px; padding-bottom: 20px; position: relative; }
.milestone:last-child { padding-bottom: 0; }
.milestone:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 1px; background: var(--border); }

.milestone__dot {
  width: 32px; height: 32px;
  border-radius: var(--radius-full); border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--bg-card); z-index: 1;
}
.milestone__dot svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }
.milestone--done .milestone__dot { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.milestone--active .milestone__dot { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.milestone--pending .milestone__dot { color: var(--text-disabled); }

.milestone__content { flex: 1; padding-top: 5px; }
.milestone__name { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.milestone--pending .milestone__name { color: var(--text-muted); }
.milestone__date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.02em;
}

/* ════════════════════════════════════════════════════
   TELA 4: CHAT / CONVERSAS
════════════════════════════════════════════════════ */
.chat-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 1fr;
  height: calc(100vh - 64px - 32px);
  min-height: 500px;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  flex: 1;
}

.chat-shell.files-open {
  grid-template-columns: 260px 1fr 260px;
}

/* ─── Chat Rail ─────────────────────────────────────── */
.chat-rail {
  background: var(--bg-subtle);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.chat-rail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}

.chat-rail__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-group { border-bottom: 1px solid var(--border); }

.chat-group__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
}
.chat-group__toggle:hover { background: var(--border); color: var(--text-secondary); }
.chat-group__toggle span:first-of-type { flex: 1; }

.chat-group__chevron {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2; fill: none;
  transition: transform var(--duration-normal) var(--easing);
}
.chat-group.collapsed .chat-group__chevron { transform: rotate(-90deg); }
.chat-group.collapsed .chat-group__list { display: none; }

.chat-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
  border-left: 2px solid transparent;
}
.chat-thread:hover { background: var(--bg-card); }
.chat-thread--active {
  background: var(--bg-card);
  border-left-color: var(--accent);
}

.chat-thread__icon {
  width: 30px; height: 30px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0;
}
.chat-thread__icon svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.chat-thread--pending .chat-thread__icon { background: var(--warning-soft); border-color: rgba(250,204,21,0.30); color: var(--warning); }

.chat-thread__info { flex: 1; min-width: 0; }
.chat-thread__name {
  display: block; font-size: 13px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-thread__preview {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px;
  letter-spacing: 0.01em;
}

.chat-thread__badge {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--warning);
  flex-shrink: 0;
}
.chat-thread:not(.chat-thread--pending) .chat-thread__badge { display: none; }

/* ─── Chat Main ─────────────────────────────────────── */
.chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}

.chat-main__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-back-btn {
  width: 32px; height: 32px;
  display: none;
  align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--easing);
  flex-shrink: 0;
}
.chat-back-btn:hover { background: var(--bg-subtle); color: var(--text-primary); }
.chat-back-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }

.chat-main__title-wrap { flex: 1; min-width: 0; }
.chat-main__title { display: block; font-size: 15px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main__project {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em;
}

.chat-main__actions { flex-shrink: 0; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.chat-msg { display: flex; gap: 12px; max-width: 75%; }
.chat-msg--bkon { align-self: flex-start; }
.chat-msg--marina { align-self: flex-end; flex-direction: row-reverse; }

.chat-msg__avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  letter-spacing: 0.02em;
}
/* BKon usa gradiente de sinal no avatar */
.chat-msg--bkon .chat-msg__avatar {
  background: var(--gradient-signal);
  color: #FFFFFF;
  border: none;
}
.chat-msg--marina .chat-msg__avatar {
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
}

.chat-msg__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.chat-msg--marina .chat-msg__body { align-items: flex-end; }

.chat-msg__sender {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.chat-msg--bkon .chat-msg__sender { color: var(--accent-text); }

.chat-msg__bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg--bkon .chat-msg__bubble { border-bottom-left-radius: var(--radius-sm); }
.chat-msg--marina .chat-msg__bubble {
  border-bottom-right-radius: var(--radius-sm);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.chat-msg--pending .chat-msg__bubble {
  border-color: var(--warning);
  background: var(--warning-soft);
}
.chat-pending-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500;
  color: var(--warning);
  display: flex; align-items: center; gap: 4px;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.chat-pending-label svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }

.chat-msg__time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-disabled); margin-top: 2px;
  letter-spacing: 0.02em;
}

.chat-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 8px;
  max-width: 240px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
}
.chat-attachment:hover { background: var(--bg-subtle); }
.chat-attachment__icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-attachment__icon svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.chat-attachment__icon--pdf { background: var(--danger-soft); color: var(--danger); }
.chat-attachment__icon--img { background: var(--info-soft); color: var(--info); }

.chat-attachment__info { flex: 1; min-width: 0; }
.chat-attachment__name { font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-attachment__size {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-muted);
}

.chat-date-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.chat-date-divider::before, .chat-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 40px;
}

/* ─── Chat input ────────────────────────────────────── */
.chat-input-area {
  padding: 16px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 8px 8px 12px;
  transition: border-color var(--duration-fast) var(--easing);
}
.chat-input-wrap:focus-within { border-color: var(--accent); }

.chat-attach-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: color var(--duration-fast) var(--easing);
}
.chat-attach-btn:hover { color: var(--text-primary); }
.chat-attach-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.chat-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  resize: none;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  padding: 4px 0;
}
.chat-input::placeholder { color: var(--text-disabled); }

.chat-send-btn {
  width: 36px; height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.chat-send-btn svg { width: 14px; height: 14px; }

.chat-input-hint {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-muted); margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ─── Chat files panel ──────────────────────────────── */
.chat-files-panel {
  background: var(--bg-subtle);
  border-left: 1px solid var(--border);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.chat-files-panel.open { display: flex; }

.chat-files-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  background: var(--bg-card);
}

.chat-files-panel__list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }

.chat-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
}
.chat-file-item:hover { background: var(--bg-card-hover); }
.chat-file-item .file-item__icon { width: 30px; height: 30px; border-radius: var(--radius-sm); }
.chat-file-item .file-item__icon svg { width: 13px; height: 13px; }
.chat-file-item .file-item__name { font-size: 12px; }
.chat-file-item .file-item__meta { font-size: 11px; }

/* ════════════════════════════════════════════════════
   TELA 5: ARQUIVOS
════════════════════════════════════════════════════ */
.files-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}
.files-section__header { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.files-section__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0;
}
.files-section__icon svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.files-section__icon--brand {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-text);
}
.files-section__icon--success { background: var(--success-soft); border-color: rgba(74,222,128,0.20); color: var(--success); }
.files-section__title { font-size: 15px; font-weight: 600; color: var(--text-primary); flex: 1; }
.files-section__count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-muted);
  letter-spacing: 0.04em;
}

.files-list { padding: 8px 0; }
.file-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  transition: background var(--duration-fast) var(--easing);
}
.file-item:hover { background: var(--bg-subtle); }
.file-item:not(:last-child) { border-bottom: 1px solid var(--border); }

.file-item__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.file-item__icon svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.file-item__icon--pdf    { background: rgba(225,72,60,0.10);  color: var(--danger); }
.file-item__icon--img    { background: rgba(25,198,212,0.10); color: var(--info); }
.file-item__icon--link   { background: var(--accent-soft);    color: var(--accent-text); }
.file-item__icon--doc    { background: rgba(25,198,212,0.10); color: var(--info); }
.file-item__icon--sheet  { background: rgba(74,222,128,0.10); color: var(--success); }

.file-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-item__name { font-size: 14px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.file-item__action { flex-shrink: 0; white-space: nowrap; }
.file-item__action svg { width: 13px; height: 13px; }

/* ════════════════════════════════════════════════════
   TELA 6: RELATÓRIOS
════════════════════════════════════════════════════ */
.reports-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.report-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform var(--duration-normal) var(--easing), box-shadow var(--duration-normal) var(--easing), border-color var(--duration-normal) var(--easing);
}
.report-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); border-color: var(--border-strong); }
.report-item--active { border-color: var(--accent-border); background: var(--accent-soft); }
.report-item__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md); background: var(--bg-subtle); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0;
}
/* Ícone ativo usa gradiente */
.report-item--active .report-item__icon {
  background: var(--gradient-signal);
  border: none;
  color: #FFFFFF;
}
.report-item__icon svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.report-item__info { flex: 1; min-width: 0; }
.report-item__name { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.report-item__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-muted); letter-spacing: 0.02em;
}

.report-detail { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-card); }
.report-detail__header { margin-bottom: 24px; }
.report-detail__title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 24px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.01em; margin-bottom: 4px;
}
.report-detail__period {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.04em;
}

.report-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 32px; }
.report-metric { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.report-metric__value {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 32px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.02em; line-height: 1;
}
.report-metric__label { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.report-metric__trend { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--success); margin-top: 4px; }
.report-metric__trend svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }

.report-chart-wrap { margin-bottom: 24px; }
.report-chart__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.10em;
}
.report-chart { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; overflow: hidden; }
.bar-chart { width: 100%; height: 160px; display: block; }
.bar-chart__labels { display: flex; justify-content: space-around; padding: 0 10px; margin-top: 8px; }
.bar-chart__labels span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--text-muted); font-weight: 500;
  letter-spacing: 0.04em;
}

.report-notes { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.report-notes__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.10em; margin-bottom: 8px;
}
.report-notes__text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ════════════════════════════════════════════════════
   TELA 7: AGENDAR REUNIÃO
════════════════════════════════════════════════════ */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .booking-grid { grid-template-columns: 1fr 320px; align-items: start; }
}

.booking-section-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.booking-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

/* Segmented control */
.segmented-control {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}
.seg-option {
  flex: 1;
  border-radius: var(--radius-sm);
  padding: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--easing);
  background: none; border: none;
  text-align: center;
}
.seg-option--active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* Mini calendário */
.mini-calendar {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mini-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.mini-cal-month {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
}
.mini-cal-nav {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--easing);
}
.mini-cal-nav:hover { background: var(--bg-subtle); color: var(--text-primary); }
.mini-cal-nav svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }

.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 12px;
}
.cal-dow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  text-align: center;
  padding: 4px 0;
}
.cal-day {
  font-size: 13px; font-weight: 500;
  text-align: center;
  padding: 7px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--duration-fast) var(--easing), color var(--duration-fast) var(--easing);
}
.cal-day:hover:not(.cal-day--past):not(.cal-day--busy):not(.cal-day--empty) {
  background: var(--bg-card);
  color: var(--text-primary);
}
.cal-day--empty { cursor: default; }
.cal-day--past { color: var(--text-disabled); cursor: default; }
.cal-day--today { color: var(--text-primary); font-weight: 700; background: var(--bg-card); }
.cal-day--busy { color: var(--text-disabled); cursor: default; text-decoration: line-through; }
/* Dia selecionado usa gradiente de sinal */
.cal-day--selected {
  background: var(--gradient-signal);
  color: #FFFFFF; font-weight: 700;
  box-shadow: 0 2px 8px rgba(42,107,242,0.30);
}

.cal-legend {
  display: flex; gap: 16px;
  padding: 8px 16px 12px;
  border-top: 1px solid var(--border);
}
.cal-legend__item {
  display: flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.cal-legend__dot { width: 8px; height: 8px; border-radius: var(--radius-full); flex-shrink: 0; }
.cal-legend__dot--busy { background: var(--text-disabled); }
.cal-legend__dot--free { background: var(--success); }

/* Slots de horário */
.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.time-slot {
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--duration-fast) var(--easing);
  text-align: center;
}
.time-slot:hover:not(.time-slot--busy) { border-color: var(--accent-border); color: var(--text-primary); background: var(--accent-soft); }
.time-slot--busy { color: var(--text-disabled); cursor: default; text-decoration: line-through; }
.time-slot--selected {
  background: var(--gradient-signal);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(42,107,242,0.25);
}

/* Card de confirmação */
.booking-confirm-card {
  background: var(--bg-card);
  border: 1.5px solid var(--success);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.booking-confirm__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: var(--success-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--success);
}
.booking-confirm__icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.5; fill: none; }
.booking-confirm__title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 20px; font-weight: 700; color: var(--text-primary);
}
.booking-confirm__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

.booking-confirm__details {
  width: 100%;
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  text-align: left;
}
.booking-confirm__row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-secondary);
}
.booking-confirm__row svg { width: 16px; height: 16px; stroke: var(--text-muted); stroke-width: 1.5; fill: none; flex-shrink: 0; }

.booking-confirm__actions { width: 100%; display: flex; flex-direction: column; gap: 8px; }

/* Reuniões agendadas */
.booking-upcoming {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.booking-meetings-list { display: flex; flex-direction: column; gap: 12px; }

.booking-meeting-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast) var(--easing);
}
.booking-meeting-item:hover { border-color: var(--accent-border); }

.booking-meeting__date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 44px; padding: 8px;
  background: var(--gradient-signal);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(42,107,242,0.25);
}
.booking-meeting__day {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 22px; font-weight: 700; line-height: 1;
}
.booking-meeting__month {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; line-height: 1; margin-top: 2px;
}

.booking-meeting__info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.booking-meeting__title { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.booking-meeting__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-muted); letter-spacing: 0.02em;
}
.booking-meeting__meet {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--accent-text);
  margin-top: 4px;
}
.booking-meeting__meet svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.booking-meeting__meet:hover { text-decoration: underline; }

/* ─── Toast ─────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex; align-items: flex-start; gap: 12px;
  box-shadow: var(--shadow-card-hover);
  z-index: 300;
  max-width: 340px;
  transform: translateY(120%); opacity: 0;
  transition: transform var(--duration-slow) var(--easing), opacity var(--duration-slow) var(--easing);
  pointer-events: none;
}
.toast.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast__icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-text);
}
.toast__icon svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.5; fill: none; }
.toast__title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.toast__desc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--text-muted); line-height: 1.5; letter-spacing: 0.02em;
}

/* ════════════════════════════════════════════════════
   Q&A (mantido)
════════════════════════════════════════════════════ */
.qa-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 16px; }
.qa-card--pending { border-color: var(--warning); }
.qa-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); flex-wrap: wrap; }
.qa-card__meta { display: flex; align-items: center; gap: 8px; }
.qa-card__from { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.qa-card__date { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-muted); letter-spacing: 0.02em; }
.qa-card__question { display: flex; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.qa-card__question svg { width: 20px; height: 20px; stroke: var(--text-muted); stroke-width: 1.5; fill: none; flex-shrink: 0; margin-top: 1px; }
.qa-card__question p { font-size: 15px; color: var(--text-primary); line-height: 1.6; }
.qa-reply-area { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.qa-reply-hint { font-size: 12px; color: var(--text-muted); }
.qa-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.qa-reply-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qa-reply-or { font-size: 13px; color: var(--text-muted); }
.qa-channel-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.qa-channel-link:hover { opacity: 0.75; }
.qa-channel-link svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.qa-card__answer { padding: 16px 24px; background: var(--success-soft); border-top: 1px solid var(--border); }
.qa-answer__label { display: flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500; color: var(--success); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.qa-answer__label svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }
.qa-card__answer p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ════════════════════════════════════════════════════
   RESPONSIVO — MOBILE
════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .topbar { display: flex; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-card-hover); }
  .sidebar-overlay.open { display: block; }

  .main-content {
    grid-column: 1;
    padding: 16px;
    padding-top: calc(var(--topbar-height) + 16px);
  }

  .page-title { font-size: 24px; }
  .dashboard-summary { padding: 16px 20px; gap: 16px; }
  .summary-sep { display: none; }
  .login-card { padding: 28px 24px; }
  .proj-hero { padding: 20px; }
  .proj-hero__percent { font-size: 40px; }
  .report-detail { padding: 20px; }
  .file-item { padding: 12px 16px; }
  .file-item__action { display: none; }
  .qa-card__header { padding: 14px 16px; }
  .qa-card__question { padding: 16px; }
  .qa-reply-area { padding: 16px; }
  .files-section__header { padding: 16px; }
  .toast { right: 16px; bottom: 16px; max-width: calc(100vw - 32px); }
  .booking-form-card { padding: 20px; }
  .time-slots { grid-template-columns: repeat(3, 1fr); }

  /* Chat mobile: rail vira drawer */
  .chat-shell {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--topbar-height) - 32px);
    position: relative;
  }

  .chat-rail {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--easing);
    box-shadow: var(--shadow-card-hover);
  }
  .chat-rail.open { transform: translateX(0); }

  .chat-main { flex: 1; }
  .chat-back-btn { display: flex; }

  .chat-files-panel { display: none !important; }
  .chat-shell.files-open { grid-template-columns: 1fr; }

  .meetings-card { margin-bottom: 12px; }

  .login-logo .logo-icon { width: 48px; height: 48px; border-radius: 14px; }
  .login-logo .logo-icon svg { width: 48px; height: 48px; }
}

/* ════════════════════════════════════════════════════
   LOGIN: BOTÃO GOOGLE + DIVISOR
════════════════════════════════════════════════════ */

/* Botão Google OAuth — fundo branco sólido, borda discreta */
.btn--google {
  background: #FFFFFF;
  color: #3C4043;
  border: 1.5px solid #DADCE0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) var(--easing),
              box-shadow var(--duration-fast) var(--easing),
              border-color var(--duration-fast) var(--easing);
}
.btn--google:hover {
  background: #F8F9FA;
  border-color: #C5C6C7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.btn--google:active { transform: scale(0.99); }
.btn--google:disabled { opacity: 0.6; cursor: default; }

/* Ícone G colorido do Google — não usa stroke, usa fill */
.google-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  /* Sobrescreve o padrão de stroke do .btn svg */
  stroke: none !important;
  fill: inherit;
}
.btn--google .google-btn__icon path { stroke: none; }

.google-btn__text {
  flex: 1;
  text-align: center;
}

/* Dark mode: botão Google adapta */
[data-theme=dark] .btn--google {
  background: rgba(255,255,255,0.06);
  color: rgba(240,244,255,0.85);
  border-color: rgba(255,255,255,0.12);
}
[data-theme=dark] .btn--google:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
  box-shadow: 0 2px 12px rgba(0,0,0,0.30);
}

/* Divisor ou */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.login-divider__line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.10);
}
[data-theme=light] .login-divider__line {
  background: rgba(0,0,0,0.10);
}
.login-divider__text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: rgba(240,244,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  white-space: nowrap;
  flex-shrink: 0;
}
[data-theme=light] .login-divider__text {
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════
   CHAT: LISTA DE PROJETOS (substitui chat-groups)
════════════════════════════════════════════════════ */

.chat-projects-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.chat-project-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing),
              border-color var(--duration-fast) var(--easing);
}
.chat-project-item:hover {
  background: var(--bg-card);
}
.chat-project-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
.chat-project-item--active {
  background: var(--bg-card);
  border-left-color: var(--accent);
}
.chat-project-item--pending {
  border-left-color: var(--warning);
}
.chat-project-item--pending.chat-project-item--active {
  border-left-color: var(--warning);
}

.chat-project-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chat-project-item__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.chat-project-item__preview {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}
.chat-project-item--pending .chat-project-item__preview {
  color: var(--warning);
}

/* Badge de pendente: ponto laranja discreto */
.chat-project-item__badge {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--warning);
  flex-shrink: 0;
}

