/* css/blog-article.css - LeadPilot Article Reading Experience & Global Navbar Stylesheet */

:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F9FAFB;
  --color-text-primary: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #94A3B8;
  --color-border: #EAECF0;
  --color-border-hover: #CBD5E1;
  --color-purple: #7C3AED;
  --color-pink: #EC4899;
  --color-orange: #F59E0B;
  --brand-gradient: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F59E0B 100%);
  --font-family-heading: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-family-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── GLOBAL NAVBAR COMPONENT STYLES (Identical to Landing Page & Blog Homepage) ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #F1F5F9;
  padding: 0 60px;
  height: 88px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: var(--font-family-body);
}

@media (max-width: 992px) {
  nav {
    padding: 0 24px;
    height: 72px;
  }
}

.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 750; color: #0F172A; text-decoration: none; letter-spacing: -0.5px; font-family: var(--font-family-heading); }
.nav-logo img { width: 28px; height: 28px; object-fit: contain; }

.nav-links { display: flex; gap: 36px; align-items: center; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { color: #475569; text-decoration: none; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 4px; transition: color 0.2s ease; font-family: var(--font-family-body); }
.nav-links a:hover { color: #0F172A; }

@media (max-width: 992px) {
  .nav-links { display: none; }
}

.nav-dropdown-wrapper {
  position: relative;
  height: 88px;
  display: flex;
  align-items: center;
}
.nav-dropdown-trigger {
  cursor: pointer;
  transition: color 0.2s ease;
}
.nav-dropdown-trigger:hover {
  color: #0F172A;
}


.res-footer-desc {
  font-size: 12px;
  color: #64748B;
}

/* Note: Global navigation and mobile drawer styles are managed by css/navbar.css */

/* ── Reading Progress Bar ── */

.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #7C3AED 0%, #EC4899 50%, #F97316 100%);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* ── ARTICLE PAGE CONTAINER ── */
.article-page-wrap {
  background-color: #FFFFFF;
  color: #0F172A;
  padding-bottom: 80px;
}

.reading-container {
  max-width: 800px;
  margin: 0 auto;
}

.summary-feature-card {
  background: linear-gradient(135deg, #FAF8FF 0%, #FFF5F9 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.05);
  margin: 32px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.summary-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.1);
}

.branded-callout-card {
  background: #FAF8FF;
  border-left: 4px solid #7C3AED;
  border-radius: 0 14px 14px 0;
  padding: 24px;
  margin: 28px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.mistake-comparison-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.mistake-comparison-card:hover {
  border-color: #F59E0B;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
}

.takeaway-feature-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.25s ease;
}
.takeaway-feature-card:hover {
  border-color: #10B981;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
}

/* ── Workflow 1 Pipeline Engine Component ── */
.wf-pipeline-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  margin: 28px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.wf-nodes-flex {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  padding: 8px 0;
}

.wf-node {
  flex: 1;
  min-width: 0;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wf-node.active {
  background: #FFFFFF;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12), 0 6px 16px rgba(124, 58, 237, 0.1);
}

.wf-node.completed {
  background: #F5F3FF;
  border-color: #DDD6FE;
}

.wf-node-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
  color: #64748B;
  font-size: 11px;
  flex-shrink: 0;
}

.wf-node.active .wf-node-icon {
  background: #7C3AED;
  color: #FFFFFF;
  border-color: #7C3AED;
}

.wf-node-title {
  font-size: 11.5px;
  font-weight: 750;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.wf-node-sub {
  font-size: 10px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.wf-arrow {
  color: #CBD5E1;
  font-size: 11px;
  flex-shrink: 0;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .wf-nodes-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .wf-arrow {
    display: none;
  }
}

/* ── Risk Cards Grid Component ── */
.risk-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.risk-deal-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.risk-deal-card:hover {
  transform: translateY(-2px);
  border-color: #7C3AED;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.08);
}

.risk-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  height: 24px;
  box-sizing: border-box;
}

.risk-status-pill.high-risk {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.risk-status-pill.medium-risk {
  background: #FEF3C7;
  color: #D97706;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.risk-status-pill.healthy {
  background: #D1FAE5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

/* ── Editorial Breadcrumb (Simple, Muted, No Card, No Header Strip, No Background) ── */
.breadcrumb-nav {
  display: none !important;
}

.breadcrumb-nav a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: #7C3AED;
}

.breadcrumb-separator {
  color: #CBD5E1;
}

.article-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #7C3AED;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.article-main-title {
  font-family: var(--font-family-heading);
  font-size: 42px;
  line-height: 1.18;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
  max-width: 900px;
}

.article-lead-paragraph {
  font-size: 20px;
  line-height: 1.6;
  color: #475569;
  max-width: 860px;
  margin-bottom: 32px;
  font-weight: 400;
}

/* ── Meta & Social Share Bar ── */
.article-meta-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.author-meta-details {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #F1F5F9;
}

.author-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name-text {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
}

.article-publish-details {
  font-size: 14px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-share-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* ── Hero Media Banner ── */
.article-hero-banner {
  max-width: 960px;
  margin: 0 auto 48px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(16, 24, 40, 0.08);
  border: 1px solid #F1F5F9;
  background: #FAF8FF;
}

.article-hero-banner img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* ── Content Grid Layout (TOC + Article Content) ── */
.article-layout-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

@media (max-width: 992px) {
  .article-layout-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Sticky Table of Contents ── */
.toc-sidebar {
  position: sticky;
  top: 110px;
  height: fit-content;
  background: #FAF8FF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
}

.toc-title {
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #0F172A;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-links-list a {
  color: #64748B;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.4;
  display: block;
  padding-left: 12px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.toc-links-list a:hover,
.toc-links-list a.active {
  color: #7C3AED;
  font-weight: 600;
  border-left-color: #7C3AED;
}

/* ── Article Content Area ── */
.article-content-body {
  max-width: 780px;
  font-size: 18px;
  line-height: 1.75;
  color: #334155;
}

.article-content-body h2 {
  font-family: var(--font-family-heading);
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
  margin-top: 48px;
  margin-bottom: 20px;
  scroll-margin-top: 110px;
}

.article-content-body h3 {
  font-family: var(--font-family-heading);
  font-size: 22px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.3px;
  margin-top: 36px;
  margin-bottom: 16px;
  scroll-margin-top: 110px;
}

.article-content-body p {
  margin-bottom: 24px;
}

.article-content-body ul,
.article-content-body ol {
  margin-bottom: 28px;
  padding-left: 28px;
}

.article-content-body li {
  margin-bottom: 12px;
}

.article-content-body a {
  color: #7C3AED;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.article-content-body a:hover {
  color: #EC4899;
}

/* ── Callout Box ── */
.article-callout-box {
  background: #F8FAFC;
  border-left: 4px solid #7C3AED;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 36px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  color: #0F172A;
  font-size: 17px;
  margin-bottom: 10px;
}

.callout-header i {
  color: #7C3AED;
}

.callout-body {
  font-size: 16.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* ── Key Takeaways Box ── */
.key-takeaways-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 18px;
  padding: 32px;
  margin: 48px 0;
}

.takeaways-title {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.takeaways-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16.5px;
  color: #334155;
}

.takeaways-list li i {
  color: #7C3AED;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ── Author Bio Section ── */
.author-bio-card {
  background: #FAF8FF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 32px;
  margin: 56px 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .author-bio-card {
    flex-direction: column;
  }
}

.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.author-bio-content {
  flex: 1;
}

.author-bio-name {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
}

.author-bio-role {
  font-size: 14px;
  color: #7C3AED;
  font-weight: 600;
  margin-bottom: 12px;
}

.author-bio-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 16px;
}

.author-social-links {
  display: flex;
  gap: 12px;
}

.author-social-links a {
  color: #64748B;
  transition: color 0.2s ease;
}

.author-social-links a:hover {
  color: #7C3AED;
}

/* ── Prev / Next Navigation ── */
.article-prev-next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px 0;
  padding-top: 32px;
  border-top: 1px solid #E2E8F0;
}

@media (max-width: 640px) {
  .article-prev-next-grid {
    grid-template-columns: 1fr;
  }
}

.prev-next-card {
  padding: 24px;
  border-radius: 16px;
  background: #FAF8FF;
  border: 1px solid #E2E8F0;
  text-decoration: none;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prev-next-card:hover {
  border-color: #7C3AED;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -8px rgba(124, 58, 237, 0.15);
}

.prev-next-label {
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  color: #7C3AED;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prev-next-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
}

/* ── Related Articles Section ── */
.related-articles-wrap {
  padding: 64px 0;
  background: #FAF8FF;
  border-top: 1px solid #F1F5F9;
}

.related-section-title {
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
  margin-bottom: 36px;
  text-align: center;
}

@media (max-width: 768px) {
  .article-main-title {
    font-size: 32px;
  }
  .article-lead-paragraph {
    font-size: 18px;
  }
  .article-content-body {
    font-size: 17px;
  }
}

/* ── FAQ ACCORDION COMPONENT STYLES (Lightweight, Modern SaaS) ── */
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 36px;
}

.faq-accordion-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Hover State */
.faq-accordion-item:hover {
  border-color: rgba(124, 58, 237, 0.35);
  background-color: #FAF8FF;
}

/* Expanded Active State */
.faq-accordion-item.active,
.faq-accordion-item.open {
  border-color: #7C3AED;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
  background-color: #FFFFFF;
}

/* Trigger Button (35-40% smaller vertical padding for lightweight scannability) */
.faq-accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  outline: none;
  gap: 14px;
  font-family: var(--font-family-heading);
  transition: background-color 0.2s ease;
}

.faq-accordion-header:focus-visible {
  outline: 2px solid #7C3AED;
  outline-offset: -2px;
  border-radius: 14px;
}

.faq-question-text {
  font-size: 16.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  letter-spacing: -0.2px;
  flex: 1;
}

/* Chevron Icon */
.faq-chevron-icon {
  width: 18px;
  height: 18px;
  color: #7C3AED;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.faq-accordion-item.active .faq-chevron-icon,
.faq-accordion-item.open .faq-chevron-icon {
  transform: rotate(180deg);
  color: #7C3AED;
}

/* Accordion Answer Body */
.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.faq-accordion-item.active .faq-accordion-body,
.faq-accordion-item.open .faq-accordion-body {
  max-height: 500px;
  opacity: 1;
}

.faq-answer-content {
  padding: 0 20px 16px 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #475569;
  font-family: var(--font-family-body);
}

.faq-answer-content p {
  margin: 0;
}

@media (max-width: 640px) {
  .faq-accordion-header {
    padding: 12px 16px;
  }
  .faq-question-text {
    font-size: 15px;
  }
  .faq-answer-content {
    padding: 0 16px 14px 16px;
    font-size: 14px;
  }
}

/* ── WHITE INTERACTIVE AUTOMATION CANVAS ── */
.automation-canvas-wrap {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 32px 24px;
  margin: 36px 0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
  position: relative;
  background-image: radial-gradient(#E2E8F0 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  overflow: hidden;
}

.canvas-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.canvas-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #7C3AED;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.canvas-status-pill {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.spin-icon {
  width: 14px;
  height: 14px;
  animation: spinSlow 3s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Workflow Flow Cards */
.canvas-workflow-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.flow-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.flow-card:hover {
  transform: translateY(-2px);
  border-color: #7C3AED;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.1);
}

.flow-card.active-step {
  border-color: #7C3AED;
  background: #FFFFFF;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
  transform: translateY(-4px);
}

.flow-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.flow-card.active-step .flow-card-icon {
  transform: scale(1.1);
}

.flow-card-content {
  flex: 1;
}

.flow-step-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #7C3AED;
  margin-bottom: 2px;
}

.flow-card-title {
  font-size: 16px;
  font-weight: 750;
  color: #0F172A;
  margin-bottom: 4px;
}

.flow-card-desc {
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.45;
}

.flow-node-badge {
  font-size: 11px;
  font-weight: 750;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.status-monitoring { background: rgba(124, 58, 237, 0.1); color: #7C3AED; }
.status-healthy { background: rgba(16, 185, 129, 0.1); color: #059669; }
.status-at-risk { background: rgba(239, 68, 68, 0.1); color: #DC2626; }

/* Connectors & Pulse Beams */
.flow-connector {
  height: 32px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.connector-line {
  width: 2px;
  height: 100%;
  background: #CBD5E1;
}

.pulse-beam {
  position: absolute;
  top: 0;
  width: 6px;
  height: 12px;
  border-radius: 6px;
  background: #7C3AED;
  box-shadow: 0 0 10px #7C3AED;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.flow-connector.pulsing .pulse-beam {
  opacity: 1;
  animation: pulseTravel 1.2s infinite ease-in-out;
}

@keyframes pulseTravel {
  0% { top: 0%; opacity: 0; }
  30% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 85%; opacity: 0; }
}

/* Branch Grid */
.branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

@media (max-width: 680px) {
  .branch-grid {
    grid-template-columns: 1fr;
  }
}

.branch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Decision Chips */
.decision-chips-wrap {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.decision-chip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #64748B;
  transition: all 0.25s ease;
}

.chip-yes.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10B981;
  color: #059669;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.chip-no.active {
  background: rgba(239, 68, 68, 0.12);
  border-color: #EF4444;
  color: #DC2626;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.chip-amber.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: #F59E0B;
  color: #D97706;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

/* Automation Actions Sub-List */
.automation-actions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  width: 100%;
  padding-top: 10px;
  border-top: 1px dashed #E2E8F0;
}

.auto-action-item {
  font-size: 12px;
  font-weight: 650;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.auto-action-item.active {
  background: #FAF8FF;
  border-color: #7C3AED;
  color: #7C3AED;
  transform: translateX(4px);
}

/* Canvas Footer Tooltip Box */
.canvas-footer-info {
  margin-top: 24px;
  background: #FAF8FF;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #475569;
  transition: all 0.3s ease;
}


