/* NotePod Colab CSS — v3.84.0p4 | Phase 3.84.0p4 */

/* ── Colab bar ──────────────────────────────────────────────────────── */
#np-colab-bar {
  position: sticky; top: 0; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  padding: 5px 14px;
  background: #1a1a2e; color: #e0e0e0;
  font-family: system-ui, sans-serif; font-size: 13px;
  border-bottom: 2px solid #4a90d9;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  user-select: none;
}
.np-cb-brand   { font-weight: 700; color: #7ecbff; letter-spacing: .4px; }
.np-cb-role    { background: #2d2d4e; border-radius: 4px; padding: 2px 8px;
                 color: #aad4ff; font-size: 11px; }
.np-cb-version { color: #555; font-size: 11px; }
.np-cb-spacer  { flex: 1; }
.np-cb-edit-hint  { font-size: 11px; color: #6ee7b7; opacity: .85; }
.np-cb-edit-hint.np-cb-locked { color: #f87171; }

/* ── Option A: toggle + hidden hint ─────────────────────────────────── */
.np-cb-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; font-size: 11px; font-family: inherit;
  background: transparent; border: 1px solid #3a3a5c;
  border-radius: 4px; color: #9ca3af; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.np-cb-toggle:hover { background: #2d2d4e; color: #e0e0e0; border-color: #4a90d9; }
#np-colab-hidden-hint {
  position: fixed; bottom: 16px; right: 16px; z-index: 9999;
  width: 36px; height: 36px; border-radius: 50%;
  background: #1a1a2e; border: 2px solid #4a90d9; color: #fff;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
  transition: transform .15s, box-shadow .15s; padding: 0;
}
#np-colab-hidden-hint:hover {
  transform: scale(1.15); box-shadow: 0 4px 16px rgba(74,144,217,.5);
}

/* ── Phase 2b: Editable paragraph hover ─────────────────────────────── */
/* Editor/author: soft blue tint + text cursor (NOT a dashed border)    */
.np-editable-hover {
  background: rgba(74, 144, 217, .07) !important;
  cursor: text;
  border-radius: 3px;
  transition: background .15s;
  position: relative;
}
/* Reader/anon: not-allowed cursor, no tint */
.np-readonly-hover { cursor: not-allowed !important; }

/* ── Pencil badge ────────────────────────────────────────────────────── */
.np-pencil {
  position: absolute; top: 2px; right: 4px;
  font-size: 11px; opacity: .55; pointer-events: none;
  user-select: none;
}

/* ── Active textarea ─────────────────────────────────────────────────── */
.np-edit-wrapper {
  margin: 2px 0;
}
.np-edit-ta {
  width: 100%; box-sizing: border-box;
  padding: 8px 10px;
  font-family: inherit; font-size: inherit; line-height: 1.6;
  border: 2px solid #4a90d9; border-radius: 6px;
  background: #f0f7ff; color: #1e293b;
  resize: vertical;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-height: 60px;
}
.np-edit-ta:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}

/* ── Save / Cancel bar ───────────────────────────────────────────────── */
.np-edit-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 2px 2px;
}
.np-edit-save, .np-edit-cancel {
  padding: 4px 14px; font-size: 12px; font-family: inherit;
  border: none; border-radius: 4px; cursor: pointer;
  font-weight: 600; transition: opacity .15s;
}
.np-edit-save   { background: #16a34a; color: #fff; }
.np-edit-save:hover   { background: #15803d; }
.np-edit-cancel { background: #6b7280; color: #fff; }
.np-edit-cancel:hover { background: #4b5563; }
.np-edit-hint   { font-size: 11px; color: #94a3b8; margin-left: 4px; }

/* ── Feedback flashes ────────────────────────────────────────────────── */
@keyframes np-flash-green {
  0%   { background: rgba(22,163,74,.25); }
  100% { background: transparent; }
}
@keyframes np-flash-red {
  0%,50% { background: rgba(239,68,68,.18); }
  100%   { background: transparent; }
}
.np-flash-saved  { animation: np-flash-green 1.2s ease-out forwards; }
.np-flash-locked { animation: np-flash-red    .8s ease-out forwards; }

/* ── Has-edit indicator (subtle dot on restored edits) ──────────────── */
.np-has-edit::after {
  content: " ●";
  font-size: 8px;
  color: #4a90d9;
  vertical-align: super;
  opacity: .6;
}

/* ── Comment bubble (Phase 3.84.1 — hidden now) ─────────────────────── */
.np-comment-btn { display: none; }
/* ── Editorial note (Phase 3.84.2a — hidden now) ────────────────────── */
.np-note { display: none; }
/* ── Dirty indicator (Phase 3.84.4 — hidden now) ────────────────────── */
.np-dirty-badge { display: none; }
