/* =============================================
   A.N.D.R.E. — Design System & Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-base: #0A0B14;
  --bg-surface: #111827;
  --bg-elevated: #1A2035;
  --bg-hover: #1E2A45;
  --bg-active: #243050;

  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #475569;

  --accent: #7C3AED;
  --accent-light: #9F67FF;
  --accent-glow: rgba(124, 58, 237, 0.35);
  --accent-2: #06B6D4;
  --accent-2-glow: rgba(6, 182, 212, 0.25);

  --danger: #EF4444;
  --danger-hover: #DC2626;
  --success: #10B981;
  --warning: #F59E0B;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --topbar-h: 60px;
  --toolbar-w: 80px;
  --sidebar-w: 280px;

  /* Transition for theme switching */
  --theme-transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ---- Light Theme Overrides ---- */
.light-theme {
  --bg-base: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F1F5F9;
  --bg-hover: #E2E8F0;
  --bg-active: #CBD5E1;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);

  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --accent-glow: rgba(124, 58, 237, 0.15);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: var(--theme-transition);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand-logo {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  background: linear-gradient(135deg, #7C3AED, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.map-title-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.map-title-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 36px 6px 14px;
  width: 280px;
  text-align: center;
  transition: var(--transition);
  outline: none;
}

.map-title-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-active);
}

.map-title-icon {
  position: absolute;
  right: 10px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0.5;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 180px;
  justify-content: flex-end;
}

.divider-v {
  width: 1px;
  height: 24px;
  background: var(--border-strong);
  margin: 0 4px;
}

/* ---- Buttons ---- */
.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-icon:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--accent), #5B21B6);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 12px var(--accent-glow);
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary.large {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}

.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--accent);
}

.btn-danger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #FCA5A5;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
  color: white;
}

/* ---- Dropdown ---- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 6px;
  z-index: 200;
  display: none;
  animation: dropdownIn 0.15s ease;
}

.dropdown-menu.open {
  display: block;
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* =============================================
   APP LAYOUT
   ============================================= */
.app-layout {
  display: flex;
  height: calc(100vh - var(--topbar-h));
  margin-top: var(--topbar-h);
}

/* =============================================
   LEFT TOOLBAR
   ============================================= */
.toolbar {
  width: var(--toolbar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  gap: 4px;
  flex-shrink: 0;
  overflow-y: auto;
}

.tool-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.tool-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tool-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border);
}

.tool-btn.active {
  background: var(--accent-glow);
  color: var(--accent-light);
  border-color: rgba(124, 58, 237, 0.4);
}

.tool-btn.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.3);
}

.zoom-indicator {
  margin-top: auto;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}

/* =============================================
   CANVAS
   ============================================= */
.canvas-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  cursor: default;
}

.canvas-wrapper.tool-add {
  cursor: crosshair;
}

.canvas-wrapper.tool-connect {
  cursor: cell;
}

.canvas-wrapper.panning {
  cursor: grabbing;
}

.mind-map-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* ---- Empty State ---- */
.empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.empty-state.hidden {
  display: none;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.4));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.empty-state h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 15px;
}

.empty-state .btn-primary {
  pointer-events: all;
  margin: 0 auto;
}

/* ---- Zoom Badge ---- */
.zoom-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.zoom-badge.visible {
  opacity: 1;
}

/* ---- Canvas Controls ---- */
.canvas-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.canvas-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-weight: 300;
}

.canvas-ctrl-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--accent);
}

/* =============================================
   SVG NODES
   ============================================= */
.node-group {
  cursor: pointer;
  transition: filter 0.2s;
}

.node-group:hover .node-shape {
  filter: brightness(1.15);
}

.node-group.selected .node-shape {
  stroke: white !important;
  stroke-width: 2.5 !important;
  filter: url(#nodeGlow);
}

.node-shape {
  transition: all 0.2s;
  stroke-width: 0;
}

.node-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  fill: white;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  user-select: none;
}

.node-edit-input {
  position: absolute;
  background: var(--bg-elevated);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 6px 10px;
  outline: none;
  min-width: 120px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-lg);
  z-index: 50;
  resize: none;
  overflow: hidden;
}

/* =============================================
   CONNECTIONS
   ============================================= */
.connection-path {
  fill: none;
  stroke: rgba(124, 58, 237, 0.5);
  stroke-width: 2;
  transition: stroke 0.2s, stroke-width 0.2s;
  pointer-events: stroke;
}

.connection-path:hover {
  stroke: var(--accent-light);
  stroke-width: 3;
}

.connection-path.selected {
  stroke: var(--accent-light);
  stroke-width: 3;
  filter: url(#connectionGlow);
}

.temp-connection {
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 2;
  stroke-dasharray: 6 4;
  pointer-events: none;
  opacity: 0.7;
}

/* =============================================
   RIGHT SIDEBAR
   ============================================= */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.sidebar-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.no-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  text-align: center;
  gap: 12px;
}

.no-selection-icon {
  font-size: 36px;
  opacity: 0.4;
}

.no-selection p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.node-properties {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prop-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prop-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prop-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  transition: var(--transition);
  line-height: 1.5;
}

.prop-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ---- Color Palette ---- */
.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.15);
  border-color: white;
}

.color-swatch.active {
  border-color: white;
  box-shadow: 0 0 0 2px var(--accent);
}

.color-swatch.custom-color {
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.color-swatch.custom-color input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* ---- Shape Selector ---- */
.shape-selector {
  display: flex;
  gap: 8px;
}

.shape-btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shape-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

.shape-btn.active {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

/* ---- Font Size ---- */
.font-size-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}

.font-size-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

.font-size-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

#fontSizeValue {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
}

/* ---- Style Toggles ---- */
.style-toggles {
  display: flex;
  gap: 8px;
}

.style-toggle {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.style-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.style-toggle.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ---- Prop Actions ---- */
.prop-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease;
  white-space: nowrap;
}

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.error {
  border-left: 3px solid var(--danger);
}

.toast.info {
  border-left: 3px solid var(--accent);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
}

/* =============================================
   MODALS
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.modal-large {
  max-width: 560px;
  text-align: left;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.modal p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-actions .btn-secondary,
.modal-actions .btn-danger {
  width: auto;
  padding: 10px 24px;
}

/* ---- Shortcuts Grid ---- */
.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 24px;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.shortcut span {
  font-size: 12px;
  color: var(--text-secondary);
}

kbd {
  background: var(--bg-hover);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-family: 'Space Grotesk', monospace;
  color: var(--accent-light);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Help Button ---- */
.help-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 90;
  box-shadow: var(--shadow-md);
}

.help-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* ---- Context Menu ---- */
.context-menu {
  position: fixed;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 300;
  min-width: 180px;
  animation: dropdownIn 0.15s ease;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}

.context-menu-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.context-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #FCA5A5;
}

.context-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}