/* frontend/css/modules/notes.css
   Parte de frontend/css/styles.css original, dividida por módulo para
   facilitar manutenção. Nenhuma regra foi alterada nesta divisão — apenas
   reorganizada fisicamente; a ordem de carregamento em index.html preserva
   a cascata original. */
/* ---------------- ANOTAÇÕES (STICKY NOTES) ---------------- */
.notes-board{
  position:relative;
  min-height:70vh;
  border-radius:var(--radius-lg);
  background-color:var(--color-surface-2);
  background-image:radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size:24px 24px;
  border:1px solid var(--color-divider);
  overflow:auto;
  padding:8px;
  scrollbar-width:thin;
  scrollbar-color:var(--color-divider) transparent;
}
.notes-board::-webkit-scrollbar{width:6px;height:6px;}
.notes-board::-webkit-scrollbar-track{background:transparent;}
.notes-board::-webkit-scrollbar-thumb{background:var(--color-divider);border-radius:var(--radius-full);}
.notes-board::-webkit-scrollbar-thumb:hover{background:var(--color-text-faint);}
.notes-board::-webkit-scrollbar-button{display:none;height:0;width:0;}
.sticky-note{
  position:absolute;
  width:220px;
  min-height:190px;
  display:flex;
  flex-direction:column;
  border-radius:2px 2px var(--radius-md) var(--radius-md);
  box-shadow:var(--shadow-md);
  transform:rotate(var(--tilt,0deg));
  transition:box-shadow .18s ease, transform .18s ease;
  background:var(--note-bg);
  user-select:none;
}
.sticky-note:hover{
  box-shadow:var(--shadow-lg);
  transform:rotate(var(--tilt,0deg)) scale(1.035);
  z-index:60 !important;
}
.sticky-note.dragging{
  transition:none;
  box-shadow:var(--shadow-lg);
  transform:rotate(var(--tilt,0deg)) scale(1.05);
  z-index:999 !important;
  cursor:grabbing;
}
.sticky-note::after{
  content:'';
  position:absolute; right:0; bottom:0;
  width:0; height:0;
  border-style:solid;
  border-width:0 0 16px 16px;
  border-color:transparent transparent oklch(0 0 0/.10) transparent;
  border-radius:0 0 var(--radius-md) 0;
  pointer-events:none;
}
.sticky-note-head{
  height:26px;
  flex-shrink:0;
  background:var(--note-accent);
  border-radius:2px 2px 0 0;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 6px;
  cursor:grab;
}
.sticky-note-head:active{cursor:grabbing;}
.sticky-note-dots{display:flex;gap:5px;align-items:center;}
.sticky-note-dot{width:9px;height:9px;border-radius:50%;border:1px solid oklch(0 0 0/.18);cursor:pointer;transition:transform .1s;}
.sticky-note-dot.ativa{transform:scale(1.35);box-shadow:0 0 0 2px var(--color-surface);}

/* ---------------- ANOTAÇÕES: modo Lista (bloco de notas) ---------------- */
.nota-lista-wrap{display:flex;gap:0;height:70vh;border:1px solid var(--color-divider);border-radius:var(--radius-lg);overflow:hidden;background:var(--color-surface-2);}
.nota-lista-coluna{width:280px;flex-shrink:0;overflow-y:auto;border-right:1px solid var(--color-divider);background:var(--color-surface);scrollbar-width:thin;scrollbar-color:var(--color-divider) transparent;}
.nota-lista-coluna::-webkit-scrollbar{width:6px;}
.nota-lista-coluna::-webkit-scrollbar-track{background:transparent;}
.nota-lista-coluna::-webkit-scrollbar-thumb{background:var(--color-divider);border-radius:var(--radius-full);}
.nota-lista-coluna::-webkit-scrollbar-thumb:hover{background:var(--color-text-faint);}
.nota-lista-coluna::-webkit-scrollbar-button{display:none;height:0;width:0;}

.nota-lista-item{padding:12px 14px;border-bottom:1px solid var(--color-divider);border-left:3px solid transparent;cursor:pointer;transition:background .12s;}
.nota-lista-item:hover{background:var(--color-surface-offset);}
.nota-lista-item.ativa{background:var(--color-primary-highlight);}
.nota-lista-item-titulo{font-size:.85rem;font-weight:600;color:var(--color-text);margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.nota-lista-item-preview{font-size:.76rem;color:var(--color-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:3px;}
.nota-lista-item-data{font-size:.68rem;color:var(--color-text-faint);}
.nota-lista-vazio{padding:20px;font-size:.82rem;color:var(--color-text-muted);text-align:center;}

.nota-lista-editor{flex:1;display:flex;flex-direction:column;min-width:0;}
.nota-lista-editor-vazio{flex:1;display:flex;align-items:center;justify-content:center;color:var(--color-text-muted);font-size:.88rem;text-align:center;padding:40px;}
.nota-lista-editor-head{display:flex;align-items:center;gap:14px;padding:12px 16px;border-bottom:1px solid var(--color-divider);}
.nota-lista-editor-data{font-size:.76rem;color:var(--color-text-muted);flex:1;}
.nota-lista-editor-textarea{flex:1;width:100%;border:none;outline:none;resize:none;background:transparent;color:var(--color-text);font-family:var(--font-body);font-size:.95rem;line-height:1.6;padding:20px 24px;}
.sticky-note-dot:hover{transform:scale(1.25);}
.sticky-note-close{background:none;border:none;color:var(--color-text-inverse);cursor:pointer;font-size:.8rem;opacity:.65;line-height:1;padding:2px 4px;}
.sticky-note-close:hover{opacity:1;}
.sticky-note-hide{background:none;border:none;color:var(--color-text-inverse);cursor:pointer;font-size:.78rem;opacity:.65;line-height:1;padding:2px 4px;}
.sticky-note-hide:hover{opacity:1;}
.sticky-note-body{flex:1;padding:10px 10px 4px;display:flex;}
.sticky-note-textarea{
  width:100%;flex:1;min-height:120px;
  background:transparent;border:none;resize:none;outline:none;
  font-family:var(--font-body);font-size:.85rem;line-height:1.45;color:var(--color-text);
}
.sticky-note-textarea::placeholder{color:oklch(0 0 0/.32);}
.sticky-note-footer{font-size:.65rem;color:oklch(0 0 0/.4);opacity:.8;padding:0 10px 8px;text-align:right;}
.note-gold{--note-bg:var(--color-gold-highlight);--note-accent:var(--color-gold);}
.note-warning{--note-bg:var(--color-warning-highlight);--note-accent:var(--color-warning);}
.note-success{--note-bg:var(--color-success-highlight);--note-accent:var(--color-success);}
.note-blue{--note-bg:var(--color-blue-highlight);--note-accent:var(--color-blue);}
.note-error{--note-bg:var(--color-error-highlight);--note-accent:var(--color-error);}
.notes-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--color-text-muted);font-size:.9rem;text-align:center;padding:40px;}

