/* ── Notes ── */
.notes-wrap { height: 100%; display: flex; flex-direction: column; background: var(--app-glass-bg); border: 1px solid var(--app-glass-border); backdrop-filter: var(--app-glass-blur); -webkit-backdrop-filter: var(--app-glass-blur); border-radius: 10px; overflow: hidden; }
.notes-btn-bold { font-weight: bold; }
.notes-btn-italic { font-style: italic; }
.notes-btn-underline { text-decoration: underline; }
.notes-btn-bold, .notes-btn-italic, .notes-btn-underline { font-family: 'Segoe UI', sans-serif; }

#notes-toolbar .app-btn.active {
  background: var(--accent-color);
  color: #fff;
}

#notes-editor {
  flex: 1;
  padding: 13px;
  outline: none;
  line-height: 1.68;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  overflow: auto;
  user-select: text;
}
#notes-editor h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }

/* ── Markdown Preview ── */
#notes-preview {
  flex: 1;
  padding: 13px;
  overflow: auto;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}
#notes-preview h1 { font-size: 20px; font-weight: 600; margin: 12px 0 6px; color: #fff; }
#notes-preview h2 { font-size: 17px; font-weight: 600; margin: 10px 0 5px; color: #fff; }
#notes-preview h3 { font-size: 14px; font-weight: 600; margin: 8px 0 4px; color: #fff; }
#notes-preview p { margin: 6px 0; }
#notes-preview ul, #notes-preview ol { margin: 4px 0; padding-left: 20px; }
#notes-preview li { margin: 2px 0; }
#notes-preview code {
  background: rgba(255,255,255,0.1);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #4ade80;
}
#notes-preview pre {
  background: rgba(255,255,255,0.04);
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 8px 0;
}
#notes-preview pre code {
  background: transparent;
  padding: 0;
  color: #93c5fd;
}
#notes-preview blockquote {
  border-left: 3px solid var(--accent-color);
  padding-left: 12px;
  margin: 8px 0;
  color: rgba(255,255,255,0.5);
}
#notes-preview a { color: var(--accent-color); text-decoration: underline; }
#notes-preview hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 12px 0; }
#notes-preview strong { color: #fff; }
#notes-preview img { border-radius: 6px; margin: 6px 0; }
#notes-preview del { color: rgba(255,255,255,0.3); }

.notes-preview-empty {
  color: rgba(255,255,255,0.2);
  font-style: italic;
  text-align: center;
  margin-top: 40px;
}

/* ── Status Bar ── */
.notes-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
}
.notes-statusbar span {
  font-variant-numeric: tabular-nums;
}
