/* Note — Notebook Styles */

.note-sidebar {
  width: 260px;
  background: var(--suite-surface);
  border-right: 1px solid var(--suite-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.note-sidebar-header {
  padding: 12px;
  border-bottom: 1px solid var(--suite-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-sidebar-header input {
  flex: 1;
  background: var(--suite-surface2);
  border: 1px solid var(--suite-border);
  border-radius: 6px;
  color: var(--suite-text);
  padding: 6px 10px;
  font-size: .8rem;
  outline: none;
}

.note-sidebar-header input:focus {
  border-color: var(--suite-accent);
}

.note-page-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}

.note-page-item {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 2px;
  transition: var(--suite-transition);
  border: 1px solid transparent;
}

.note-page-item:hover {
  background: var(--suite-surface2);
}

.note-page-item.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

.note-page-item .page-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--suite-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-page-item .page-preview {
  font-size: .72rem;
  color: var(--suite-text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.note-page-item .page-date {
  font-size: .65rem;
  color: var(--suite-text2);
  margin-top: 4px;
}

.note-add-page {
  margin: 8px 12px;
  padding: 8px;
  border: 2px dashed var(--suite-border);
  border-radius: 8px;
  background: transparent;
  color: var(--suite-text2);
  cursor: pointer;
  font-size: .82rem;
  text-align: center;
  transition: var(--suite-transition);
}

.note-add-page:hover {
  border-color: var(--suite-accent);
  color: var(--suite-accent);
}

/* Editor area */
.note-editor-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.note-title-input {
  background: transparent;
  border: none;
  color: var(--suite-text);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 20px 32px 8px;
  outline: none;
  width: 100%;
}

.note-title-input::placeholder {
  color: var(--suite-text2);
}

.note-meta {
  padding: 0 32px 12px;
  font-size: .72rem;
  color: var(--suite-text2);
  border-bottom: 1px solid var(--suite-border);
}

.note-editor {
  flex: 1;
  padding: 20px 32px;
  outline: none;
  color: var(--suite-text);
  font-size: .95rem;
  line-height: 1.8;
  overflow-y: auto;
  caret-color: var(--suite-accent);
}

.note-editor:focus {
  outline: none;
}

/* Markdown-like rendering */
.note-editor h1 { font-size: 1.8rem; font-weight: 700; margin: 1em 0 .5em; }
.note-editor h2 { font-size: 1.4rem; font-weight: 600; margin: .8em 0 .4em; }
.note-editor h3 { font-size: 1.1rem; font-weight: 600; margin: .6em 0 .3em; }
.note-editor ul, .note-editor ol { padding-left: 1.5em; }
.note-editor li { margin: .3em 0; }
.note-editor blockquote {
  border-left: 3px solid var(--suite-accent);
  margin: .8em 0;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 0 6px 6px 0;
}
.note-editor code {
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 5px;
  border-radius: 3px;
  font-family: monospace;
  font-size: .88em;
}
.note-editor pre {
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 10px 14px;
  overflow-x: auto;
}
.note-editor hr {
  border: none;
  height: 1px;
  background: var(--suite-border);
  margin: 1.5em 0;
}

/* Checkbox list */
.note-editor input[type="checkbox"] {
  margin-right: 6px;
  accent-color: var(--suite-accent);
}

/* Tags */
.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 32px;
}

.note-tag {
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--suite-accent);
  cursor: default;
}

@media (max-width: 768px) {
  .note-sidebar { width: 200px; }
  .note-editor { padding: 16px; }
  .note-title-input { padding: 12px 16px 4px; }
}

@media (max-width: 500px) {
  .note-sidebar {
    position: absolute;
    left: -260px;
    top: 0;
    bottom: 0;
    z-index: 80;
    transition: .2s;
  }
  .note-sidebar.open { left: 0; }
}

/* Tag badges */
.note-tag-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  vertical-align: middle;
  cursor: default;
  white-space: nowrap;
}
.note-tag-important { background: rgba(245,158,11,0.15); color: #f59e0b; }
.note-tag-todo { background: rgba(16,185,129,0.15); color: #10b981; }
.note-tag-question { background: rgba(59,130,246,0.15); color: #3b82f6; }
.note-tag-idea { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.note-tag-remember { background: rgba(236,72,153,0.15); color: #ec4899; }

/* Tables in editor */
.note-editor .note-table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: .88rem;
}
.note-editor .note-table th,
.note-editor .note-table td {
  border: 1px solid var(--suite-border);
  padding: 6px 10px;
  text-align: left;
  min-width: 60px;
}
.note-editor .note-table th {
  background: var(--suite-surface2);
  font-weight: 600;
}
.note-editor img {
  max-width: 100%;
  border-radius: 6px;
}

@media print {
  .suite-header, .suite-toolbar, .suite-statusbar, .note-sidebar { display: none !important; }
  .note-editor { padding: 0; }
}
