/* ==========================================================================
   CodeBaytDraw: Premium Unified Workspace Suite
   Visual Workflow Boards, Concept Nexus Graph & Knowledge Canvas
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Fira+Code:wght@400;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #060913;
  --bg-surface: rgba(13, 19, 36, 0.82);
  --bg-card: rgba(20, 29, 52, 0.9);
  --bg-modal: rgba(8, 12, 24, 0.95);
  
  --border-neon-cyan: #00f0ff;
  --border-neon-pink: #ff0077;
  --border-neon-gold: #fbbf24;
  --border-neon-purple: #a855f7;
  --border-neon-green: #10b981;
  --border-subtle: rgba(255, 255, 255, 0.12);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;

  --shadow-neon-cyan: 0 0 25px rgba(0, 240, 255, 0.35);
  --shadow-neon-pink: 0 0 25px rgba(255, 0, 119, 0.35);
  --shadow-neon-gold: 0 0 25px rgba(251, 191, 36, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 15, 30, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-neon-cyan);
  box-shadow: 0 0 10px var(--border-neon-cyan);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 9, 19, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nav-logo-icon {
  font-size: 28px;
  background: linear-gradient(135deg, var(--border-neon-cyan), var(--border-neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #00f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff, #3b82f6);
  color: #000000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: var(--border-neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   LANDING PAGE VIEW
   ========================================================================== */
.landing-view {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 60px 32px 100px 32px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-badge {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--border-neon-cyan);
  color: var(--border-neon-cyan);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  max-width: 950px;
  background: linear-gradient(135deg, #ffffff 30%, #00f0ff 70%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 900px;
  margin-top: 20px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--border-neon-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Interactive Preview Showcase */
.showcase-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-neon-cyan);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 240, 255, 0.18);
}

.showcase-header {
  background: rgba(15, 23, 42, 0.9);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.showcase-tabs {
  display: flex;
  gap: 8px;
}

.showcase-tab {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.showcase-tab.active {
  background: var(--border-neon-cyan);
  color: #000000;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.showcase-body {
  padding: 32px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-neon-purple);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.25);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Templates Section */
.templates-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-card:hover {
  border-color: var(--border-neon-gold);
  transform: scale(1.02);
  box-shadow: 0 10px 35px rgba(251, 191, 36, 0.25);
}

.template-tag {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid var(--border-neon-gold);
  color: var(--border-neon-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  align-self: flex-start;
}

/* ==========================================================================
   WORKSPACE APPLICATION VIEW
   ========================================================================== */
.workspace-view {
  display: flex;
  flex: 1;
  height: calc(100vh - 65px);
  overflow: hidden;
}

/* Sidebar */
.workspace-sidebar {
  width: 260px;
  background: rgba(8, 12, 24, 0.95);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 16px;
  backdrop-filter: blur(16px);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-item {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  text-align: left;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.sidebar-item.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.15));
  border-color: var(--border-neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.sidebar-item-icon {
  font-size: 18px;
}

/* Main Arena Container */
.workspace-main {
  flex: 1;
  background: #04060d;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.arena-toolbar {
  background: rgba(10, 16, 28, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  z-index: 10;
}

.toolbar-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  background: rgba(20, 29, 52, 0.8);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  width: 220px;
}

.search-input:focus {
  border-color: var(--border-neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   VIEW 1: FLOW BOARDS (Workflow Stage Manager)
   ========================================================================== */
.flow-boards-arena {
  width: max-content;
  min-width: max-content;
  padding: 24px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap !important;
  gap: 24px;
  align-items: flex-start;
}

.flow-column {
  background: rgba(13, 20, 36, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  width: 290px;
  min-width: 290px;
  max-width: 290px;
  flex: 0 0 290px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.column-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.column-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  word-break: break-word;
  overflow-wrap: break-word;
}

.column-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.column-cards-list {
  padding: 14px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.flow-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-neon-cyan);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.2);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.tag-cyan { background: rgba(0, 240, 255, 0.15); color: var(--border-neon-cyan); border: 1px solid var(--border-neon-cyan); }
.tag-pink { background: rgba(255, 0, 119, 0.15); color: var(--border-neon-pink); border: 1px solid var(--border-neon-pink); }
.tag-gold { background: rgba(251, 191, 36, 0.15); color: var(--border-neon-gold); border: 1px solid var(--border-neon-gold); }
.tag-purple { background: rgba(168, 85, 247, 0.15); color: var(--border-neon-purple); border: 1px solid var(--border-neon-purple); }

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

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

.card-assignee {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   VIEW 2: CONCEPT NEXUS GRAPH (Infinite Canvas Node Engine)
   ========================================================================== */
.concept-nexus-arena {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #080e20 0%, #03050b 100%);
  cursor: grab;
}

.concept-nexus-arena:active {
  cursor: grabbing;
}

svg#svgConnections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.nexus-node {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid var(--border-neon-cyan);
  border-radius: 16px;
  padding: 14px 18px;
  min-width: 180px;
  max-width: 280px;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
  z-index: 2;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
  user-select: none;
}

.nexus-node:hover {
  box-shadow: 0 0 35px var(--border-neon-cyan);
  z-index: 10;
}

.nexus-node.selected {
  border-color: var(--border-neon-gold);
  box-shadow: 0 0 35px var(--border-neon-gold);
}

.node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.node-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.node-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.node-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.node-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.node-btn:hover {
  background: var(--border-neon-cyan);
  color: #000;
}

/* Floating Graph Controls */
.canvas-hud-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(10, 16, 28, 0.9);
  border: 1px solid var(--border-neon-cyan);
  border-radius: 16px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  z-index: 100;
}

/* ==========================================================================
   VIEW 3: KNOWLEDGE CANVAS (Block Document Editor)
   ========================================================================== */
.knowledge-canvas-arena {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-cover-banner {
  height: 140px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(168, 85, 247, 0.3));
  border: 1px solid var(--border-neon-cyan);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.doc-icon-large {
  font-size: 42px;
  background: rgba(6, 9, 19, 0.8);
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-neon-cyan);
}

.doc-title-input {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  outline: none;
  width: 100%;
  margin-top: 10px;
}

.doc-blocks-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-block {
  position: relative;
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.doc-block:hover {
  border-color: var(--border-subtle);
  background: rgba(20, 29, 52, 0.8);
}

.block-heading-1 { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--border-neon-cyan); }
.block-heading-2 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--border-neon-gold); }
.block-text { font-size: 15px; line-height: 1.6; color: #e2e8f0; }

.block-callout {
  background: rgba(0, 240, 255, 0.1);
  border-left: 4px solid var(--border-neon-cyan);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  color: #ffffff;
}

.block-code {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-code);
  font-size: 13px;
  color: #38bdf8;
  padding: 14px;
  border-radius: 10px;
  white-space: pre-wrap;
}

.block-actions {
  position: absolute;
  right: 12px;
  top: 12px;
  display: none;
  gap: 6px;
}

.doc-block:hover .block-actions {
  display: flex;
}

.block-toolbar {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-neon-cyan);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 6, 13, 0.85);
  backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-modal);
  border: 2px solid var(--border-neon-cyan);
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.4);
  width: 100%;
  max-width: 600px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--border-neon-gold);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--border-neon-cyan);
}

.form-input, .form-textarea, .form-select {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--border-neon-cyan);
}

.checklist-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 150px;
  overflow-y: auto;
}

.checklist-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 6px;
}

.checklist-item-text {
  flex: 1;
  font-size: 13px;
  color: #e2e8f0;
}

.checklist-item-text.done {
  text-decoration: line-through;
  color: var(--text-dim);
}

/* Extra Knowledge Canvas Block Styles */
.block-quote {
  border-left: 4px solid var(--border-neon-pink);
  background: rgba(255, 0, 119, 0.08);
  font-style: italic;
  padding: 12px 16px;
  border-radius: 6px;
  color: #f1f5f9;
}

.block-checklist {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.block-toggle {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: 8px;
}

/* Collapsible Sidebar on Mobile */
.workspace-sidebar.collapsed {
  display: none !important;
}

/* Workspace Arena Scrolling & Zoom Scaling */
#workspaceArena {
  overflow: auto;
  scroll-behavior: smooth;
  touch-action: pan-x pan-y;
}

.flow-boards-arena, .concept-nexus-arena, .knowledge-canvas-arena {
  transition: transform 0.15s ease-out;
  transform-origin: top left;
}

/* ==========================================================================
   Print & PDF High-Quality Export Stylesheet
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .app-nav, .workspace-sidebar, .arena-toolbar, .canvas-hud-controls, .block-toolbar, .modal-overlay, .sidebar-section, .btn-primary, .btn-secondary {
    display: none !important;
  }

  .workspace-view, .workspace-main, #workspaceArena {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
    background: #ffffff !important;
  }

  .flow-column, .nexus-node, .doc-block {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #94a3b8 !important;
    background: #f8fafc !important;
    color: #0f172a !important;
  }

  .block-heading-1, .block-heading-2, .card-title, .node-title, .column-title-badge {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
  }

  svg#svgConnections path {
    stroke-width: 2px !important;
    filter: none !important;
  }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title { font-size: 38px; }
  .features-grid, .templates-grid { grid-template-columns: 1fr; }
  .workspace-view { flex-direction: column; height: auto; }
  .workspace-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}


