/* TLC client feedback widget — per-section pinned change-requests.
   Themed off the existing styles.css CSS variables (--plum-700, --line, etc.). */

:root{
  --fb-plum:#5b3a6e;
  --fb-plum-700:#4a2f5a;
  --fb-accent:#7a52a0;
}

/* Floating + button */
.fb-fab{
  position:fixed; right:22px; bottom:22px; z-index:9000;
  width:56px; height:56px; border-radius:50%;
  background:var(--fb-plum); color:#fff; border:none;
  font-size:28px; line-height:1; cursor:pointer;
  box-shadow:0 10px 26px rgba(40,28,55,.4);
  display:flex; align-items:center; justify-content:center;
  transition:transform .12s ease, background .12s ease;
}
.fb-fab:hover{ transform:translateY(-2px); background:var(--fb-accent); }
.fb-fab.is-active{ background:#b5462f; transform:rotate(45deg); }

/* small count badge on the fab */
.fb-fab .fb-count{
  position:absolute; top:-4px; right:-4px;
  background:#fff; color:var(--fb-plum-700);
  min-width:20px; height:20px; border-radius:10px;
  font-size:12px; font-weight:800; line-height:20px; padding:0 5px;
  box-shadow:0 2px 6px rgba(0,0,0,.2);
}

/* "pin mode" — page gets a highlight cursor + banner */
body.fb-picking *{ cursor:crosshair !important; }
.fb-pickbar{
  position:fixed; top:0; left:0; right:0; z-index:9100;
  background:var(--fb-plum); color:#fff; text-align:center;
  font-size:.9rem; font-weight:600; padding:9px 14px;
}
.fb-pickbar button{
  margin-left:14px; background:rgba(255,255,255,.18); color:#fff;
  border:1px solid rgba(255,255,255,.4); border-radius:6px;
  padding:3px 12px; cursor:pointer; font-weight:600;
}
/* outline whatever the client is hovering while picking */
.fb-hover-outline{ outline:3px solid var(--fb-accent) !important; outline-offset:2px; }

/* note pins rendered on the page */
.fb-pin{
  position:absolute; z-index:8500;
  width:26px; height:26px; border-radius:50% 50% 50% 2px;
  background:#d9a441; color:#3a2a08; border:2px solid #fff;
  font-size:12px; font-weight:800; line-height:22px; text-align:center;
  cursor:pointer; box-shadow:0 4px 10px rgba(0,0,0,.3);
  transform:translate(-50%,-100%);
}
.fb-pin.is-done{ background:#7bb37b; color:#163516; }

/* modal (reuses the look of the app's own .modal-overlay) */
.fb-overlay{
  position:fixed; inset:0; z-index:9200;
  background:rgba(40,28,55,.45);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.fb-box{
  background:#fff; border-radius:14px; max-width:440px; width:100%;
  padding:22px; box-shadow:0 24px 60px rgba(40,28,55,.35);
}
.fb-box h3{ margin:0 0 4px; color:var(--fb-plum-700); }
.fb-box .fb-sub{ color:#6b6475; font-size:.84rem; margin-bottom:14px; }
.fb-box label{ display:block; font-size:.8rem; font-weight:700; color:#4a4a52; margin:10px 0 4px; }
.fb-box textarea, .fb-box input{
  width:100%; border:1px solid #d7d2de; border-radius:9px;
  padding:10px 12px; font:inherit; font-size:.9rem; box-sizing:border-box;
}
.fb-box textarea{ min-height:96px; resize:vertical; }
.fb-actions{ display:flex; gap:8px; margin-top:16px; }
.fb-actions .fb-btn{
  flex:1; border:none; border-radius:9px; padding:11px; font:inherit;
  font-weight:700; cursor:pointer;
}
.fb-btn-primary{ background:var(--fb-plum); color:#fff; }
.fb-btn-primary:hover{ background:var(--fb-accent); }
.fb-btn-ghost{ background:#efecf3; color:#4a4a52; }
.fb-target-chip{
  display:inline-block; background:#efe7f5; color:var(--fb-plum-700);
  border-radius:6px; padding:3px 9px; font-size:.78rem; font-weight:600;
  margin-bottom:6px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* ---- per-section note button (in card headings) ---- */
.fb-sect-btn{
  margin-left:auto; flex:0 0 auto; width:24px; height:24px; border-radius:50%;
  border:1.5px dashed #b79cc7; background:transparent; color:#5b3a6e;
  font-size:15px; line-height:1; font-weight:800; cursor:pointer; padding:0;
}
.card-head .fb-sect-btn{ margin-left:10px; }
.fb-sect-btn:hover{ background:#5b3a6e; border-style:solid; color:#fff; }

/* ---- mic (voice-to-text) in the note composer ---- */
.fb-mic-row{ display:flex; align-items:center; gap:10px; margin-top:8px; }
.fb-mic{
  border:1.5px solid #d7d2de; background:#fff; color:#5b3a6e; border-radius:999px;
  padding:8px 14px; font:inherit; font-weight:700; font-size:.84rem; cursor:pointer;
}
.fb-mic.is-live{ background:#b5462f; border-color:#b5462f; color:#fff; animation:fbMicPulse 1.2s infinite; }
@keyframes fbMicPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(181,70,47,.4);} 50%{ box-shadow:0 0 0 8px rgba(181,70,47,0);} }
.fb-mic-hint{ font-size:.76rem; color:#8a8394; }

/* ---- AI helper highlight (assistant.js navigates + flashes a section) ---- */
.ai-highlight{
  outline:3px solid #d9a441 !important; outline-offset:4px; border-radius:8px;
  transition:outline-color 1.2s ease;
}
.ai-highlight.fading{ outline-color:transparent !important; }
