/* Dark theme inspired by Ui/public/css/home.css */
* { box-sizing: border-box; }
:root{
  --bg: #121212;
  --panel: rgba(24,24,24,0.94);
  --muted: #9ca3af;
  --accent: #6D5DDE;
  --accent-2: #10B981;
  --text: #e6eef8;
  --subtle-border: rgba(52,52,52,0.7);
  --card-bg: rgba(26,26,26,0.92);
}
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; margin: 0; background: radial-gradient(circle at top right, rgba(109, 93, 222, 0.08), transparent 35%), radial-gradient(circle at bottom left, rgba(16,185,129,0.06), transparent 45%), var(--bg); color: var(--text); min-height: 100vh; }

.header { display:flex; align-items:center; gap:12px; padding:18px 24px; background: transparent; }
.header h1 { margin: 0; font-size:18px; font-weight:700; color: #fff; }

.app { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 66px); gap: 18px; padding: 18px; }

.sidebar { background: transparent; padding: 12px; overflow-y: auto; border-right: 1px solid var(--subtle-border); }
.search { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid rgba(58,58,58,0.7); background: rgba(18,18,18,0.8); color: var(--text); margin-bottom: 12px; }
.search::placeholder { color: #8b94a6; }

.notes-list { list-style: none; padding: 8px 0; margin: 0; display:flex; flex-direction:column; gap:6px; }
.notes-list li { padding: 8px; border-radius: 10px; cursor: pointer; transition: background 0.12s ease, transform 0.08s ease; }
.notes-list li:hover { background: rgba(255,255,255,0.02); transform: translateY(-1px); }
.note-link { text-decoration: none; color: inherit; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.note-title { font-weight:700; font-size:14px; }
.note-version { color: var(--muted); font-size:12px; }

.viewer { padding: 12px; overflow-y: auto; }
.card { background: var(--card-bg); border: 1px solid var(--subtle-border); border-radius: 14px; padding: 20px; box-shadow: 0 18px 60px rgba(0,0,0,0.5); }
.md-content { color: var(--text); line-height:1.65; }
.md-content p { color: #d1d9ee; }
.md-content h1 { font-size:26px; margin-top:0; }
.md-content h2 { font-size:20px; }
.md-content pre { background: rgba(0,0,0,0.5); padding:12px; border-radius:8px; overflow:auto; }
.md-content code { background: rgba(255,255,255,0.03); padding: 2px 6px; border-radius:6px; }

.note-meta { display:flex; gap:12px; align-items:center; color:var(--muted); font-size:13px; }

.empty { color:#94a3b8; padding:12px; }

a { color: var(--accent); text-decoration: underline; }

/* responsive */
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; height: auto; }
  .sidebar { order: 2; border-right: none; border-top: 1px solid var(--subtle-border); }
  .viewer { order: 1; }
}

@media (max-width: 560px) {
  .header h1 { font-size:16px; }
  .note-title { font-size:13px; }
}

/* small helpers */
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.btn { padding:8px 12px; border-radius:10px; border:1px solid transparent; background: linear-gradient(90deg,var(--accent), #7f72ed); color:#fff; }

