/* ============================================
   MANIESTA NOTES — COMPLETE STYLESHEET
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --surface-active: #eef2ff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --warning: #d97706;
  --warning-soft: #fef3c7;
  --info: #2563eb;
  --info-soft: #dbeafe;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 300ms cubic-bezier(0.2, 0.8, 0.2, 1);

  --sidebar-width: 260px;
  --header-height: 64px;

  --z-sidebar: 100;
  --z-header: 90;
  --z-modal: 200;
  --z-toast: 300;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --surface: #1e293b;
  --surface-hover: #273449;
  --surface-active: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #334155;
  --border-strong: #475569;
  --primary: #818cf8;
  --primary-hover: #6366f1;
  --primary-soft: #312e81;
  --danger: #f87171;
  --danger-soft: #7f1d1d;
  --success: #4ade80;
  --success-soft: #14532d;
  --warning: #fbbf24;
  --warning-soft: #78350f;
  --info: #60a5fa;
  --info-soft: #1e3a8a;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(129, 140, 248, 0.2);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-base), color var(--transition-base);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 20%, rgba(79,70,229,0.03) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(124,58,237,0.03) 0%, transparent 50%);
  z-index: -1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ---------- SVG & Icon Reset ---------- */
svg {
  display: block;
  flex-shrink: 0;
}

.icon-btn,
.nav-link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-content svg {
  max-width: 24px;
  max-height: 24px;
}

.nav-link svg {
  width: 20px;
  height: 20px;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.note-actions .icon-btn svg {
  width: 18px;
  height: 18px;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: 1.4;
  transition: all var(--transition-fast);
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface-hover);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--primary-hover);
  outline-offset: 2px;
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
  border: none;
}

.btn-ghost:hover {
  background: var(--surface-hover);
}

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: var(--text-base);
}

/* ---------- Inputs ---------- */
.input,
textarea,
select,
.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus,
textarea:focus,
select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.input.invalid,
textarea.invalid,
.form-input.invalid {
  border-color: var(--danger);
}

.input.valid,
textarea.valid,
.form-input.valid {
  border-color: var(--success);
}

.form-error {
  display: block;
  color: var(--danger);
  font-size: var(--text-xs);
  margin-top: 0.25rem;
  min-height: 1rem;
}

/* ---------- Typography Helpers ---------- */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ---------- App Layout ---------- */
.app {
  display: flex;
  min-height: 100vh;
}

.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--transition-base);
}

.page-content {
  flex: 1;
  padding: 1.5rem;
}

.app-footer {
  margin-top: auto;
  padding: 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: var(--z-sidebar);
  transition: transform var(--transition-base);
}

.sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  font-size: 1.375rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.sidebar-logo img {
  width: 40px;
  height: 40px;
  transition: transform var(--transition-base);
}

.sidebar-logo img:hover {
  transform: scale(1.05);
}

.nav-list {
  list-style: none;
  padding: 0.5rem 0.75rem;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  margin-bottom: 0.125rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  justify-content: flex-start;   /* Aligns icon + text to the left */
  text-align: left;
}

.nav-link:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  transform: translateX(2px);
}

.nav-link.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--primary-hover);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 500;
  font-size: var(--text-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer .btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
  justify-content: flex-start;
}

.sidebar-footer .btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

/* ---------- Header ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: box-shadow var(--transition-base);
  gap: 0.75rem;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-title {
  font-size: var(--text-lg);
  font-weight: 600;
}

.header-search {
  flex: 1;
  max-width: 420px;
  margin: 0;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 0.75rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

.search-input-wrapper input:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Note Grid & Cards ---------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  will-change: transform;
}

.note-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.note-card.pinned {
  border-left: 4px solid var(--warning);
}

.note-card .note-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.note-card .note-preview {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-card .note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.note-card .tag {
  background: var(--surface-hover);
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
}

.note-card .note-meta {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.note-card .note-actions {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

/* Note color accents */
.note-card.color-blue { border-left-color: #3b82f6; }
.note-card.color-purple { border-left-color: #8b5cf6; }
.note-card.color-green { border-left-color: #10b981; }
.note-card.color-orange { border-left-color: #f59e0b; }
.note-card.color-rose { border-left-color: #f43f5e; }
.note-card.color-amber { border-left-color: #f59e0b; }

/* ---------- Dashboard ---------- */
.dashboard-header {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(124,58,237,0.05));
  margin-bottom: 1.5rem;
}

.dashboard-header::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79,70,229,0.15), transparent 70%);
  top: -100px;
  right: -50px;
  animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: all var(--transition-base);
}

.stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat span {
  display: block;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.stat strong {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.dashboard-section {
  margin-bottom: 1.5rem;
}

.dashboard-section h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ---------- Editor ---------- */
.editor-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.editor-title {
  font-size: 2rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-primary);
  width: 100%;
  margin-bottom: 1rem;
  padding: 0;
}

.editor-title:focus {
  outline: none;
}

.editor-content {
  min-height: 300px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--surface);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.editor-toolbar input[type="text"] {
  flex: 1;
  min-width: 150px;
}

.save-indicator {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 500px;
  width: 90%;
  animation: modalIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  box-shadow: var(--shadow-xl);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* ---------- Toast ---------- */
.toast-root {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--primary); }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---------- Empty State ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
}

.empty-state .empty-icon {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.empty-state h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.icon-btn.active {
  color: var(--primary);
  background: var(--primary-soft);
}
.editor-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.editor-title-hint {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---------- Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface-hover) 25%, var(--border) 50%, var(--surface-hover) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Loader ---------- */
.spinner {
  border: 3px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.app-loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 999;
}

/* ---------- Page Transitions ---------- */
.page-transition-out {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.page-transition-in {
  animation: pageEnter var(--transition-base) ease forwards;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 240px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: calc(var(--z-sidebar) - 1);
  }
  .sidebar-overlay.open {
    display: block;
  }

  .main-container {
    margin-left: 0;
  }

  .header {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }

  .header-search {
    max-width: none;
  }

  #mobile-menu-btn {
    display: inline-flex;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .header-title {
    font-size: var(--text-base);
  }

  .btn {
    padding: 0.5rem 0.875rem;
    font-size: var(--text-xs);
  }

  .note-card {
    padding: 1rem;
  }

  .empty-state {
    padding: 2rem 0.75rem;
  }

  #new-note-btn .btn-text {
    display: none;
  }

  #new-note-btn {
    padding: 0.5rem;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}