/* ==========================================================================
   DevFlow Developer Notes Stylesheet (notes.css)
   ========================================================================== */

.notes-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  height: calc(100vh - 160px);
}

@media (max-width: 860px) {
  .notes-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.notes-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notes-search-box {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.notes-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.note-item {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.note-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
}

.note-item.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
}

.note-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-item-snippet {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.4rem;
}

.note-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Notes Editor Panel */
.notes-editor-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notes-editor-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.note-title-input {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  width: 100%;
}

.notes-editor-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.note-content-area {
  flex: 1;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-primary);
  resize: none;
}
