/* ===== assets/notes.css — Meu Bloco de Notas ===== */
/* Layout de duas colunas (lista + editor), inspirado no app Notas da Apple. Reaproveita
   tokens de marketing.css (--coral/--teal/--ink/--line/--off-white/--amber, Fraunces/
   Inter) e classes globais já existentes (.wa-overlay/.wa-modal/.wa-field/.wa-btn-save/
   .wa-btn-cancel/.wam-btn-add-col/.wam-btn-restore/.wag-meta-chip/.dash-empty) em vez de
   duplicá-las — só o que é específico do bloco de notas mora aqui. */

.bn-wrap { padding: 32px 36px 60px; max-width: 1400px; }

.bn-topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.bn-search {
  font-family: 'Inter', sans-serif; font-size: 12.5px; padding: 8px 12px;
  border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  min-width: 220px; flex: 1 1 220px; max-width: 320px;
}
.bn-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.bn-tab {
  background: var(--off-white); border: 1px solid transparent; color: var(--ink-soft);
  border-radius: 20px; padding: 7px 13px; font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.bn-tab:hover { color: var(--ink); }
.bn-tab.active { background: #e4aad7; color: #1c361d; }
.bn-topbar .wam-btn-add-col { margin-left: auto; }

.bn-body { display: flex; gap: 20px; align-items: flex-start; }

/* ---- lista (esquerda) ---- */
.bn-list { flex: 0 0 300px; width: 300px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; max-height: 72vh; overflow-y: auto; }
.bn-list-items { display: flex; flex-direction: column; gap: 4px; }
.bn-list-item { padding: 10px 11px; border-radius: 9px; cursor: pointer; }
.bn-list-item:hover { background: var(--off-white); }
.bn-list-item.active { background: rgba(228,170,215,0.28); }
.bn-list-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.bn-list-item-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.bn-list-item-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.bn-fav-btn { background: none; border: none; padding: 2px; color: var(--line); cursor: pointer; flex-shrink: 0; display: flex; }
.bn-fav-btn.is-fav, .bn-icon-btn.is-fav { color: var(--amber); }
.bn-list-item-preview { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-list-item-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.bn-list-item-date { font-size: 10.5px; color: var(--ink-soft); }
.bn-shared-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: var(--teal-dark); font-weight: 600; }
.bn-archived-link { display: block; margin: 8px auto 2px; }

/* ---- editor (direita) ---- */
.bn-editor { flex: 1 1 auto; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 20px 22px; min-height: 72vh; }
.bn-editor-empty { padding: 60px 0; }
.bn-editor-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bn-title-input {
  flex: 1 1 auto; font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; color: var(--ink);
  border: none; outline: none; padding: 4px 0; background: transparent;
}
.bn-title-input:disabled { color: var(--ink-soft); }
.bn-editor-actions { display: flex; gap: 4px; flex-shrink: 0; }
.bn-icon-btn { background: var(--off-white); border: none; border-radius: 8px; padding: 6px; color: var(--ink-soft); cursor: pointer; display: flex; }
.bn-icon-btn:hover { background: var(--line); color: var(--ink); }
.bn-icon-btn-danger:hover { background: rgba(255,90,95,0.15); color: var(--coral-dark); }

.bn-category-input {
  display: block; width: 100%; font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--ink-soft);
  border: none; outline: none; padding: 2px 0 12px; background: transparent; border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.bn-category-input:disabled { color: var(--ink-soft); border-color: var(--line); }

.bn-shared-banner {
  display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--teal-dark);
  background: rgba(0,168,150,0.08); border-radius: 8px; padding: 7px 10px; margin-bottom: 12px;
}

.bn-toolbar { display: flex; gap: 4px; margin-bottom: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.bn-tool-btn {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: var(--off-white); border: none; border-radius: 7px; color: var(--ink); cursor: pointer;
  font-family: 'Fraunces', serif; font-size: 13px;
}
.bn-tool-btn:hover { background: var(--line); }
.bn-tool-bold { font-weight: 700; }
.bn-tool-italic { font-style: italic; }

.bn-editor-body {
  font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--ink); line-height: 1.6;
  min-height: 320px; outline: none;
}
.bn-editor-body ul, .bn-editor-body ol { padding-left: 22px; margin: 6px 0; }
.bn-editor-body a { color: var(--teal-dark); }
.bn-editor-body input[type="checkbox"] { margin-right: 6px; }
.bn-save-indicator { font-size: 10.5px; color: var(--ink-soft); font-style: italic; margin-top: 10px; height: 14px; }

.bn-share-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.bn-share-row { display: flex; align-items: center; gap: 8px; background: var(--off-white); border-radius: 8px; padding: 6px 10px; }
.bn-share-name { font-size: 12px; font-weight: 600; color: var(--ink); flex: 1 1 auto; }

@media (max-width: 860px) {
  .bn-body { flex-direction: column; }
  .bn-list { width: 100%; flex: 1 1 auto; max-height: 300px; }
  .bn-editor { width: 100%; }
}
