/* =====================================================
   AI MindMap SaaS — Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────── */
:root {
  --bg-base:       hsl(225, 18%, 8%);
  --bg-surface:    hsl(225, 16%, 12%);
  --bg-elevated:   hsl(225, 14%, 16%);
  --bg-hover:      hsl(225, 14%, 20%);

  --accent:        hsl(258, 85%, 65%);
  --accent-hover:  hsl(258, 85%, 72%);
  --accent-glow:   hsla(258, 85%, 65%, 0.35);
  --accent2:       hsl(190, 80%, 55%);
  --accent3:       hsl(320, 70%, 60%);

  --text-primary:  hsl(220, 20%, 92%);
  --text-muted:    hsl(220, 10%, 55%);
  --text-faint:    hsl(220, 10%, 35%);

  --border:        hsl(225, 14%, 20%);
  --border-bright: hsl(225, 14%, 28%);

  --node-root:     hsl(258, 80%, 60%);
  --node-topic:    hsl(190, 75%, 50%);
  --node-subtopic: hsl(150, 60%, 48%);
  --node-idea:     hsl(35, 85%, 58%);
  --node-note:     hsl(320, 65%, 58%);

  --uc-actor:      hsl(190, 75%, 50%);
  --uc-usecase:    hsl(258, 80%, 60%);
  --uc-system:     hsl(258, 40%, 30%);

  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     18px;
  --shadow:        0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:     0 16px 64px rgba(0,0,0,0.6);

  --glass:         rgba(255,255,255,0.04);
  --glass-border:  rgba(255,255,255,0.08);

  --sidebar-w:     260px;
  --toolbar-h:     56px;
  --right-panel-w: 300px;

  --t-fast:  0.15s ease;
  --t-med:   0.25s ease;
  --t-slow:  0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', sans-serif; background: var(--bg-base); color: var(--text-primary); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 99px; }

/* ═══════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════ */

#app { display: flex; flex-direction: column; height: 100vh; }

/* ── Top Navbar ──────────────────────────────────────── */
#navbar {
  height: var(--toolbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  z-index: 100;
  flex-shrink: 0;
  backdrop-filter: blur(20px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}
.nav-brand-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.nav-brand span.accent { color: var(--accent); }

.nav-sep { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }

/* Mode switcher tabs */
.mode-tabs {
  display: flex;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}
.mode-tab {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--t-fast);
  display: flex; align-items: center; gap: 6px;
}
.mode-tab:hover { color: var(--text-primary); }
.mode-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

.nav-spacer { flex: 1; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ── Main Content ────────────────────────────────────── */
#main { display: flex; flex: 1; overflow: hidden; }

/* ── Sidebar ─────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform var(--t-slow);
}

.sidebar-section { padding: 12px; }
.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-faint);
  margin-bottom: 8px;
  padding: 0 4px;
}

/* Project list */
.project-list { display: flex; flex-direction: column; gap: 4px; }
.project-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--t-fast);
  border: 1px solid transparent;
}
.project-item:hover { background: var(--bg-hover); }
.project-item.active { background: var(--accent-glow); border-color: var(--accent); color: #fff; }
.project-item-icon { font-size: 15px; flex-shrink: 0; }
.project-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-item-del { opacity: 0; font-size: 14px; color: var(--text-muted); transition: opacity var(--t-fast); }
.project-item:hover .project-item-del { opacity: 1; }

/* Templates */
.template-grid { display: grid; gap: 6px; }
.template-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: all var(--t-fast);
  font-size: 12px;
}
.template-card:hover { border-color: var(--accent); background: var(--accent-glow); transform: translateY(-1px); }
.template-card-icon { font-size: 20px; margin-bottom: 4px; }
.template-card-name { font-weight: 600; font-size: 12px; }
.template-card-desc { color: var(--text-muted); font-size: 11px; margin-top: 2px; }

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--border);
}

/* ── Canvas Area ─────────────────────────────────────── */
#canvas-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}

#canvas-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: default;
  user-select: none;
}

/* Grid background */
.canvas-grid { transition: opacity var(--t-slow); }

/* Zoom controls */
#zoom-controls {
  position: absolute;
  bottom: 20px; left: 20px;
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-muted);
}
#zoom-label { min-width: 38px; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; }

/* Minimap */
#minimap {
  position: absolute;
  bottom: 20px; right: 20px;
  width: 160px; height: 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  opacity: 0.85;
}
#minimap-svg { width: 100%; height: 100%; }
#minimap-viewport {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.7;
}

/* Empty canvas hint */
#canvas-hint {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  transition: opacity var(--t-slow);
}
#canvas-hint h2 { font-size: 22px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
#canvas-hint p { font-size: 14px; color: var(--text-faint); }
#canvas-hint.hidden { opacity: 0; }

/* ── Toolbar (floating, below navbar) ────────────────── */
#toolbar {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 10px;
  box-shadow: var(--shadow);
  z-index: 50;
  backdrop-filter: blur(20px);
}

.tool-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: all var(--t-fast);
  position: relative;
}
.tool-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.tool-btn.active { background: var(--accent); color: #fff; box-shadow: 0 0 12px var(--accent-glow); }

.tool-sep { width: 1px; height: 20px; background: var(--border); margin: 0 2px; }

/* Tooltip */
.tool-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: -30px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-fast);
  color: var(--text-primary);
}
.tool-btn[data-tip]:hover::after { opacity: 1; }

/* ── Right Panel (AI + Properties) ──────────────────── */
#right-panel {
  width: var(--right-panel-w);
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
}
.panel-tab {
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t-fast);
  display: flex; align-items: center; gap: 5px;
}
.panel-tab:hover { color: var(--text-primary); }
.panel-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.panel-body { flex: 1; overflow-y: auto; padding: 14px; display: none; flex-direction: column; gap: 12px; }
.panel-body.active { display: flex; }

/* ── AI Panel ──────────────────────────────────────────  */
.ai-prompt-area {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.ai-prompt-area:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.ai-prompt-area textarea {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--text-primary); font-size: 13px; padding: 12px;
  resize: none; min-height: 100px;
}
.ai-prompt-area textarea::placeholder { color: var(--text-faint); }
.ai-prompt-footer {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 6px 10px;
  border-top: 1px solid var(--border);
  gap: 8px;
}
.ai-prompt-chars { font-size: 11px; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }

.ai-examples { display: flex; flex-direction: column; gap: 5px; }
.ai-example-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: left;
}
.ai-example-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

.ai-history { display: flex; flex-direction: column; gap: 8px; }
.ai-history-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  display: flex; align-items: flex-start; gap: 8px;
}
.ai-history-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.ai-history-text { color: var(--text-muted); line-height: 1.5; }

/* Loading dots */
.ai-loading { display: none; align-items: center; gap: 6px; padding: 4px 0; color: var(--text-muted); font-size: 12px; }
.ai-loading.active { display: flex; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: dot-bounce 1s ease-in-out infinite; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-bounce { 0%,100% { transform: translateY(0); opacity:0.5; } 50% { transform: translateY(-5px); opacity:1; } }

/* ── Properties Panel ────────────────────────────────── */
.prop-empty {
  text-align: center; padding: 30px 10px;
  color: var(--text-faint); font-size: 13px;
}
.prop-empty-icon { font-size: 32px; margin-bottom: 8px; }

.prop-group { display: flex; flex-direction: column; gap: 8px; }
.prop-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-faint); }
.prop-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  transition: border-color var(--t-fast);
}
.prop-input:focus { border-color: var(--accent); }

.color-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.color-pill {
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-fast);
  position: relative;
}
.color-pill:hover, .color-pill.active { transform: scale(1.2); border-color: white; }

/* ═══════════════════════════════════════════════════════
   SVG NODE STYLES
═══════════════════════════════════════════════════════ */

/* Mind Map nodes */
.mm-node { cursor: pointer; transition: filter 0.15s; }
.mm-node:hover .mm-node-bg { filter: brightness(1.2); }
.mm-node.selected .mm-node-bg { stroke: #fff !important; stroke-width: 2.5; }
.mm-node-bg { transition: filter 0.15s; rx: 12; }
.mm-node-text { fill: #fff; font-family: 'Inter', sans-serif; font-weight: 500; pointer-events: none; dominant-baseline: middle; text-anchor: middle; }
.mm-node-root .mm-node-bg { filter: drop-shadow(0 0 12px var(--node-root)); }
.mm-node-root .mm-node-text { font-weight: 700; font-size: 14px; }

/* Mind Map edges */
.mm-edge {
  stroke: var(--border-bright); stroke-width: 1.5;
  fill: none; pointer-events: none;
}

/* Use Case actors */
.uc-actor { cursor: pointer; }
.uc-actor:hover .uc-actor-fig { opacity: 0.85; }
.uc-actor.selected .uc-actor-fig line, .uc-actor.selected .uc-actor-fig circle { stroke: var(--accent) !important; }
.uc-actor-fig line, .uc-actor-fig circle { stroke: var(--uc-actor); stroke-width: 2; fill: none; transition: stroke 0.15s; }
.uc-actor-label { fill: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }

/* Use Case ellipses */
.uc-usecase { cursor: pointer; }
.uc-usecase:hover ellipse { filter: brightness(1.15); }
.uc-usecase.selected ellipse { stroke: #fff !important; stroke-width: 2.5; }
.uc-usecase-bg { fill: var(--uc-usecase); fill-opacity: 0.25; stroke: var(--uc-usecase); stroke-width: 1.5; }
.uc-usecase-text { fill: #fff; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }

/* Use Case relationships */
.uc-relation { stroke: var(--border-bright); stroke-width: 1.5; fill: none; pointer-events: none; }
.uc-relation.dashed { stroke-dasharray: 6,4; }
.uc-relation-label { fill: var(--text-muted); font-size: 10px; font-family: 'Inter', sans-serif; text-anchor: middle; pointer-events: none; }

/* System boundary */
.uc-boundary {
  fill: none;
  stroke: var(--uc-system);
  stroke-width: 1.5;
  stroke-dasharray: 8,5;
  rx: 16;
}
.uc-boundary-label { fill: var(--text-faint); font-size: 11px; font-family: 'Inter', sans-serif; }

/* Connection in progress line */
.connect-line { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6,4; fill: none; pointer-events: none; }

/* ═══════════════════════════════════════════════════════
   UI COMPONENTS
═══════════════════════════════════════════════════════ */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  transition: all var(--t-fast);
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 0 28px var(--accent-glow); }
.btn-secondary {
  background: var(--bg-elevated); color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-bright); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-hover); border-radius: var(--radius-sm); }
.btn-danger { background: hsl(0,70%,55%); color:#fff; }
.btn-danger:hover { background: hsl(0,70%,62%); }

.btn-icon { padding: 7px; }

/* Icon button */
.icon-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-muted);
  transition: all var(--t-fast);
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ── Context Menu ────────────────────────────────────── */
#ctx-menu {
  position: fixed;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 170px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
  animation: menu-pop 0.12s ease;
}
#ctx-menu.visible { display: block; }
@keyframes menu-pop { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }
.ctx-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.ctx-item:hover { background: var(--bg-hover); }
.ctx-item.danger:hover { background: hsla(0,70%,55%,0.2); color: hsl(0,70%,65%); }
.ctx-item-icon { font-size: 15px; }
.ctx-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Modal ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med);
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 520px; max-width: 95vw;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--t-slow);
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal-header { margin-bottom: 20px; }
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.modal-subtitle { font-size: 13px; color: var(--text-muted); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.modal-close { position: absolute; top: 20px; right: 20px; }

/* ── Welcome Screen ──────────────────────────────────── */
#welcome-overlay {
  position: fixed; inset: 0;
  background: var(--bg-base);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 0;
  transition: opacity 0.5s ease;
}
#welcome-overlay.hide { opacity: 0; pointer-events: none; }

.welcome-logo {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
  box-shadow: 0 0 40px var(--accent-glow);
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.welcome-title {
  font-size: 38px; font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 10px; text-align: center; letter-spacing: -1px;
}
.welcome-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 36px; text-align: center; max-width: 420px; line-height: 1.6; }

.welcome-cards {
  display: flex; gap: 14px; margin-bottom: 32px;
}
.welcome-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  width: 160px;
  cursor: pointer;
  transition: all var(--t-med);
  text-align: center;
}
.welcome-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 24px var(--accent-glow); }
.welcome-card-icon { font-size: 28px; margin-bottom: 8px; }
.welcome-card-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.welcome-card-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* ── Notification Toast ──────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex; align-items: center; gap: 8px;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.success { border-color: hsl(150,70%,45%); }
#toast.error { border-color: hsl(0,70%,55%); }

/* ── Keyboard Shortcuts Help ─────────────────────────── */
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); border: 1px solid var(--border-bright);
  border-radius: 5px; padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--text-muted); min-width: 22px;
}

/* ── Export Modal ────────────────────────────────────── */
.export-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.export-option {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
}
.export-option:hover { border-color: var(--accent); background: var(--accent-glow); }
.export-option-icon { font-size: 24px; margin-bottom: 6px; }
.export-option-title { font-size: 13px; font-weight: 600; }
.export-option-desc { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ── Animations ──────────────────────────────────────── */
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.fade-in { animation: fadeIn 0.3s ease forwards; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  #sidebar { position: absolute; z-index: 90; transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); }
  #right-panel { width: 260px; }
}

/* ── Statistics bar (bottom status) ─────────────────── */
#statusbar {
  height: 26px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 14px; gap: 16px;
  font-size: 11px; color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.statusbar-item { display: flex; align-items: center; gap: 5px; }
.statusbar-dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(150,70%,45%); }
