/* Notes / Rapid Memo CSS */

.notes-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-top: 16px;
  align-items: start;
}

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

.note-creator-form {
  position: sticky;
  top: 90px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.note-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  height: auto;
}

.note-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
  padding-bottom: 8px;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.4;
}

.dark-mode .note-card-title {
  border-bottom-color: rgba(255,255,255,0.05);
}

.note-card-content {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
  overflow-y: auto;
  flex-grow: 1;
  margin-bottom: 12px;
}

/* Checklist specific styles inside notes */
.note-checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.note-checklist-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.note-checklist-text {
  font-size: 0.85rem;
}

.note-checklist-text.checked {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Simple Markdown elements */
.note-card-content h3 { font-size: 0.95rem; font-weight: 700; margin: 8px 0 4px 0; }
.note-card-content p { margin-bottom: 8px; }
.note-card-content ul { padding-left: 16px; margin-bottom: 8px; }
.note-card-content li { margin-bottom: 4px; }
.note-card-content code { background: rgba(0, 0, 0, 0.05); padding: 2px 4px; border-radius: 4px; font-family: monospace; font-size: 0.8rem; }
.dark-mode .note-card-content code { background: rgba(255, 255, 255, 0.08); }
.note-card-content a { color: var(--primary); text-decoration: none; font-weight: 500; }
.note-card-content a:hover { text-decoration: underline; }

.note-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0,0,0,0.03);
  padding-top: 8px;
}

.dark-mode .note-card-footer {
  border-top-color: rgba(255,255,255,0.03);
}

.note-time {
  font-weight: 500;
}
