/* Product Design Analysis - New Functionality Styles */

/* This file is reserved for new functionality only */
/* Existing styles should be modified in product-design-analysis.css */

/* ========== IA TAB NEW LAYOUT STYLES ========== */
/* Enhanced hover effects for the new IA layout */

/* Content Overview Grid - Top Section - HIDDEN */
/* .ia-content-overview .hover\:scale-105:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
} */

/* Primary Navigation List - Column 1 */
.ia-nav-list .hover\:scale-105:hover {
  transform: scale(1.02);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
}

/* Content Hierarchy Items - Column 2 */
.ia-content-hierarchy .hover\:scale-105:hover {
  transform: scale(1.03);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.1);
}

/* User Flows Section - Column 3 */
.ia-user-flows .hover\:scale-105:hover {
  transform: scale(1.05);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 16px -4px rgba(59, 130, 246, 0.3);
}

/* Secondary Navigation Items */
.ia-secondary-nav .hover\:scale-105:hover {
  transform: scale(1.02);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.08);
}

/* Button Hover Effects */
.ia-button.hover\:scale-105:hover {
  transform: scale(1.05);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.4);
}

/* Path Breadcrumb Interactive Elements */
.ia-path-breadcrumb .hover\:text-blue-600:hover {
  color: #2563eb;
  transition: color 0.15s ease-in-out;
}

/* Ensure smooth transitions for all interactive elements */
.ia-interactive {
  transition: all 0.2s ease-in-out;
}

.ia-interactive:hover {
  transform: translateY(-1px);
}

/* Custom scrollbar for navigation list */
.ia-nav-list::-webkit-scrollbar {
  width: 4px;
}

.ia-nav-list::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.ia-nav-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.ia-nav-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Material Icons Support */
.material-icons {
  font-size: 20px;
}

/* Features List Layout - align with card content */
.module-card .features-list {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Section 3 Specific Layout - Target only section 3 using specific class */
.section-3-sidebar {
  /* Target only section 3 */
}

.section-3-sidebar .flex.space-x-8 {
  display: flex !important;
  gap: 2rem !important;
  background: white !important;
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
  overflow: hidden !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  padding: 1.5rem !important;
  flex-direction: row !important;
}

/* Left Sidebar - Module List - Force Vertical Layout */
.section-3-sidebar .w-1\/4 {
  width: 25% !important;
  background: #f9fafb !important;
  border-right: 1px solid #e5e7eb !important;
  padding: 1.5rem !important;
  border-radius: 8px 0 0 8px !important;
  display: flex !important;
  flex-direction: column !important;
}

.section-3-sidebar .space-y-2 {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  width: 100% !important;
}

.section-3-sidebar .space-y-2 > * {
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
}

.section-3-sidebar .space-y-2 > *:last-child {
  margin-bottom: 0 !important;
}

/* Tab Item Styles - Force Vertical Layout */
.section-3-sidebar .tab-item {
  cursor: pointer !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: white !important;
  border: 1px solid transparent !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  width: 100% !important;
  flex-direction: row !important;
  margin-bottom: 0.5rem !important;
}

.section-3-sidebar .tab-item:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

.section-3-sidebar .tab-item.active {
  background: #dbeafe !important;
  border-color: #3b82f6 !important;
  color: #1e40af !important;
  font-weight: 600 !important;
}

.section-3-sidebar .tab-item:not(.active) {
  color: #6b7280 !important;
}

.section-3-sidebar .tab-item:not(.active):hover {
  background: #f3f4f6 !important;
}

/* Right Panel - Features Detail */
.section-3-sidebar .w-3\/4 {
  width: 75% !important;
  padding: 1.5rem !important;
  background: white !important;
  border-radius: 0 8px 8px 0 !important;
}

/* Features Panel Content */
.section-3-sidebar #features-panel-content {
  min-height: 400px !important;
}

/* Features Section */
.section-3-sidebar .features-section {
  max-height: 500px !important;
}

/* Module Content */
.section-3-sidebar .module-content {
  display: none !important;
}

.section-3-sidebar .module-content.active {
  display: block !important;
}

/* Dragging States */
.section-3-sidebar .dragging {
  opacity: 0.5 !important;
  background: #dbeafe !important;
}

.section-3-sidebar .drag-over {
  border-top: 2px solid #3b82f6 !important;
}

/* Delete Icon */
.section-3-sidebar .group .delete-icon {
  display: none !important;
}

.section-3-sidebar .group:hover .delete-icon {
  display: inline-flex !important;
}

/* Form Checkbox */
.section-3-sidebar .form-checkbox {
  height: 1.25rem !important;
  width: 1.25rem !important;
  color: #3b82f6 !important;
  border-radius: 4px !important;
  border: 1px solid #d1d5db !important;
}

/* Empty State */
.section-3-sidebar .features-empty-state {
  text-align: center !important;
  padding: 3rem 1rem !important;
  color: #6b7280 !important;
}

.section-3-sidebar .features-empty-state h4 {
  margin: 0 0 0.5rem 0 !important;
  font-size: 1.125rem !important;
  color: #9ca3af !important;
}

.section-3-sidebar .features-empty-state p {
  margin: 0 !important;
  font-size: 0.875rem !important;
}

.section-3-sidebar .features-empty-icon {
  font-size: 3rem !important;
  opacity: 0.3 !important;
  margin-bottom: 1rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-3-sidebar .flex.space-x-8 {
      flex-direction: column !important;
      gap: 0 !important;
  }
  
  .section-3-sidebar .w-1\/4 {
      width: 100% !important;
      border-right: none !important;
      border-bottom: 1px solid #e5e7eb !important;
      border-radius: 8px 8px 0 0 !important;
  }
  
  .section-3-sidebar .w-3\/4 {
      width: 100% !important;
      border-radius: 0 0 8px 8px !important;
  }
}

/* Future new features will be added here */ 

/* --- Module card header/left alignment overrides --- */
.module-card {
  position: relative;
  display: block !important; /* remove side-by-side icon/content layout */
}

.module-card .module-icon {
  position: absolute;
  left: 1rem;
  top: 1rem;
}

.module-card .module-content {
  padding-left: 0 !important; /* ensure content starts at card left padding */
  margin-left: 0 !important;
}

/* Keep title away from the absolute icon but allow everything else to start flush left */
.module-card .module-title {
  padding-left: 1.75rem; /* space for icon only for title row */
}

/* Ensure the count and features section start at the left */
.module-card .features-count,
.module-card .features-list {
  margin-left: 0 !important;
  padding-left: 0 !important;
} 

/* Align module description under title and with the pad icon */
.selection-section .modules-grid .module-card .module-description {
  padding-left: 1.75rem !important; /* same offset as title to account for icon */
  margin: 0 0 0.25rem 0 !important;
  display: none;
}

/* Add subtle divider under the features count label - ONLY when features list is actually displayed */
.selection-section .modules-grid .module-card.selected .features-count:has(+ .features-list) {
  border-bottom: 1px solid #e5e7eb !important;
  padding-bottom: 0.25rem !important; /* minimal padding as requested */
  margin-bottom: 0.5rem !important;
}

/* Alternative approach for browsers that don't support :has() - target when features-list sibling exists */
.selection-section .modules-grid .module-card.selected .features-list + * .features-count,
.selection-section .modules-grid .module-card.selected .features-count + .features-list ~ .features-count {
  border-bottom: 1px solid #e5e7eb !important;
  padding-bottom: 0.25rem !important;
  margin-bottom: 0.5rem !important;
}

/* Ensure all cards without expanded features have no border */
.selection-section .modules-grid .module-card .features-count {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0.5rem !important;
}

/* Override only when features are actually shown */
.selection-section .modules-grid .module-card.selected:has(.features-list) .features-count {
  border-bottom: 1px solid #e5e7eb !important;
  padding-bottom: 0.25rem !important;
  margin-bottom: 0.5rem !important;
  padding-left: 1.75rem !important;
  margin: 0 0 0.5rem 0 !important;
}

/* Fix header overlap when scrolling features */
.analysis-results-overlay.product-design-results .results-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  padding: 1.5rem 2rem 1rem !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.analysis-results-overlay.product-design-results .results-tabs {
  position: sticky !important;
  top: 80px !important;
  background: white !important;
  z-index: 99 !important;
  padding: 0 2rem !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure content doesn't overlap with sticky headers */
.analysis-results-overlay.product-design-results .results-content {
  /* padding-top: 1rem !important; */
  position: relative !important;
  z-index: 1 !important;
}

/* --- Force module card to stack content so inner sections align flush left --- */
.selection-section .modules-grid .module-card {
  display: block !important;
  align-items: initial !important;
  gap: 0 !important;
}

.selection-section .modules-grid .module-card .module-icon {
  position: absolute;
  left: 1rem;
  top: 1rem;
}

.selection-section .modules-grid .module-card .module-content {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.selection-section .modules-grid .module-card .module-title {
  padding-left: 1.75rem; /* offset for icon only on title */
}

.selection-section .modules-grid .module-card .features-count,
.selection-section .modules-grid .module-card .features-list {
  margin-left: 0 !important;
  padding-left: 0 !important;
} 

/* --- Product Design Workflow Page with Blurred Background --- */
/* Target the main workflow overlay, not the input modal */
.analysis-results-overlay.product-design-results {
  background: rgba(30, 40, 60, 0.4) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* The main workflow content container */
.analysis-results-overlay.product-design-results .results-container {
  background: white !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
  /* max-width: 1600px !important; */
  /* margin: 5vh auto !important; */
  width: 100vw !important;
  height: 100vh;
  /* max-height: 95vh !important; */
  overflow-y: auto !important;
} 

/* --- Desktop-only Select Navigation card layout --- */
@media (min-width: 1024px) {
.selection-section .nav-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.25rem 1.25rem 0.75rem 1.25rem;
}

.selection-section .nav-card .nav-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.selection-section .nav-card .nav-column {
  min-width: 0;
}

.selection-section .nav-card .nav-section-header h4 {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1f2937;
}

.selection-section .nav-card .nav-section-header .nav-subtitle {
  margin: 0.25rem 0 0.75rem 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.selection-section .nav-card .nav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.selection-section .nav-card .nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #c7d2fe;
  /* background: #e6f0ff; */
  color: #1e40af;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  cursor: text; /* keep non-click to preserve original functionality */
  user-select: text;
  box-shadow: 0 0 0 1px rgba(199,210,254,0.6) inset;
}

.selection-section .nav-card .nav-chip .check-icon {
  display: inline-flex !important;
  visibility: visible !important;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 9999px;
  background: #2563eb; /* dark blue */
  color: #ffffff;       /* white tick */
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.35) inset;
}

.selection-section .nav-card .nav-chip.selected {
  /* background: #e6f0ff; */ /* light blue */
  color: #1e40af;      /* dark blue text */
  border-color: #c7d2fe; /* light blue border */
}
.selection-section .nav-card .nav-chip.selected .check-icon { background: #2563eb; color: #ffffff; border: none; }
.selection-section .nav-card .nav-chip.selected .nav-chip-label {color: black;font-weight: 300;}

.selection-section .nav-card .nav-chip .nav-chip-label {
  color: inherit;
  outline: none;
}

.selection-section .nav-card .nav-chip .nav-chip-label:focus {
  outline: none;
  border-radius: 6px;
  padding: 4px;
    background:  #c7e3fee0;
}

.selection-section .nav-add-bar {
  margin-top: 1rem;
  border: 2px dashed #c7d2fe;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  width: 100%;
}
.selection-section .nav-add-bar:hover {
  background: #eaf2ff;
}
.selection-section .nav-add-bar .plus-icon {
  font-weight: 700;
  font-size: 1.1rem;
}
.selection-section .nav-add-bar .add-label {
  font-weight: 600;
}
} 

/* --- User Flows redesigned grid (desktop-first, responsive) --- */
.user-flows-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3.25rem;
}
@media (max-width: 1024px) {
.user-flows-grid { grid-template-columns: 1fr; }
}

/* Enhanced User Flows Display Section */
.user-flows-display-section {
  margin: 2rem 0;
}

.user-flows-display-section .section-header h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.user-flows-display-section .section-description {
  margin: 0 0 2rem 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.flows-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1200px) {
  .flows-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Flow Display Card */
.flow-display-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

.flow-display-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Flow Card Header */
.flow-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-bottom: 1px solid #e5e7eb;
}

.flow-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
}

.flow-emoji {
  font-size: 1.2rem;
}

.flow-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.action-btn {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.action-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: scale(1.05);
}

.preview-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

.wireframe-btn:hover {
  background: #f0fdf4;
  border-color: #22c55e;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Flow Description */
.flow-description {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  background: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
}

/* React Flow Container */
.react-flow-container {
  position: relative;
  background: #fafafa;
}

.react-flow-container .user-flow-container {
  border-radius: 0;
  border: none;
}

/* Flow Metadata */
.flow-metadata {
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
}

.metadata-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.metadata-item:last-child {
  margin-bottom: 0;
}

.metadata-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metadata-value {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.4;
}

/* Executive Summary */
.executive-summary {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
}

.executive-summary h4 {
  margin: 0 0 1rem 0;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 600;
}

.executive-summary p {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.6;
}

.user-flow-card {
position: relative;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.06);
padding: 1rem 1rem 1.25rem 1rem;
transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
cursor: pointer;
}
.user-flow-card:hover {
box-shadow: 0 8px 20px rgba(0,0,0,0.10);
transform: translateY(-1px);
}
.user-flow-card.selected {
border-color: #2563eb;
box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.flow-card-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.flow-index-circle {width: 28px;height: 28px;border-radius: 9999px;display: inline-flex;align-items: center;justify-content: center;background: #e5edff;color: #1e40af;font-weight: 700;display: none;}
.flow-title { font-weight: 700; color: #111827; }
.flow-selected-check { margin-left: auto; color: #2563eb; font-weight: 700; display:none; }
.user-flow-card.selected .flow-selected-check { display: inline-block; }

.flow-steps { display: flex; flex-direction: column; gap: 0.5rem; text-align: center;}
.flow-step {border-radius: 10px;background: #eff6ff !important;color: black !important;padding: 0.5rem 0.75rem;font-weight: 450;font-size: 14px;}
.flow-step-arrow { text-align: center; color: #9ca3af; }

/* Step type colors */
.flow-step.step-user { background: #e6f0ff; color: #1e40af; border: 1px solid #c7d2fe; }
.flow-step.step-bot { background: #fde7ef; color: #9b1c31; border: 1px solid #f9c5d5; }
.flow-step.step-system { background: #e5e7eb; color: #374151; border: 1px solid #d1d5db; }
.flow-step.step-success { background: #e6f7ef; color: #166534; border: 1px solid #bbf7d0; }

.remove-flow-icon {
position: absolute; right: 10px; top: 10px; border: none; background: #fee2e2; color: #991b1b; border-radius: 9999px; width: 28px; height: 28px; font-weight: 700; cursor: pointer;
}
.remove-flow-icon:hover { background: #fecaca; } 

/* --- IA sections typographic alignment with Brief & Selection --- */
.selection-section .section-header h3 {
font-size: 1.3rem;
font-weight: 600;
color: #333;
margin: 0 0 0 0;
}
.selection-section .section-description {
margin: 0 0 1.5rem 0;
color: #666;
font-size: 14px;
line-height: 1.3;
}
/* Ensure consistent header layout spacing */
.selection-section .section-header {margin-bottom: 0.5rem;align-items: center;justify-content: flex-start;gap: 10px;}

/* Specific adjustments for IA blocks to mirror card padding */
.ia-panel .selection-section { padding: 2rem; padding-top: 1rem; }

/* Tighten top gap for grids under headings to match Brief & Selection */
.ia-panel .hierarchy-grid,
.ia-panel .nav-card,
.ia-panel .user-flows-grid { margin-top: 0.5rem; } 

/* Ensure nav chip check icon is always visible (override global .check-icon opacity) */
.selection-section .nav-card .nav-chip .check-icon { opacity: 1 !important; cursor: pointer; }
.selection-section .nav-card .nav-chip .check-icon:hover { filter: brightness(0.95); }

/* Active/Selected Primary Navigation States */
.nav-chip.selected-nav,
.nav-chip.active {
    background: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.nav-chip.selected-nav .check-icon,
.nav-chip.active .check-icon {
    color: white !important;
}

/* Content Item Priority States */
.content-item {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.content-item.priority-high {
    border-color: #ef4444;
    background: #fef2f2;
}

.content-item.priority-medium {
    border-color: #f59e0b;
    background: #fffbeb;
}

.content-item.priority-low {
    border-color: #6b7280;
    background: #f9fafb;
}

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

.priority-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.priority-badge.priority-high {
    background: #ef4444;
    color: white;
}

.priority-badge.priority-medium {
    background: #f59e0b;
    color: white;
}

.priority-badge.priority-low {
    background: #6b7280;
    color: white;
}

/* User Flows Relevance States */
.user-flow-item.relevant {
    border: 2px solid #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.relevance-indicator {
    font-size: 1rem;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.user-flow-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.flow-checkbox {
    margin-right: 8px;
    font-size: 1.1rem;
}

.flow-title {
    font-weight: 600;
    flex: 1;
}

/* Hover states for interactive elements */
.nav-chip:hover:not(.selected-nav) {
    background: #f1f5f9;
    cursor: pointer;
}

.user-flow-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========== DYNAMIC USER FLOWS REACT CONTAINER ========== */

/* React User Flows Container */
.react-user-flows-container {
    min-height: 300px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

/* Loading Placeholder */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #64748b;
    text-align: center;
}

.loading-spinner {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: spin 2s linear infinite;
}

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

/* Fallback Message */
.fallback-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    color: #6b7280;
    font-style: italic;
    text-align: center;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
}

/* Active Navigation Selection State */
.nav-chip.active-nav-selection {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    border: 2px solid #1e40af !important;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.5) !important;
    transform: scale(1.05);
}

.nav-chip.active-nav-selection .nav-chip-label {
    color: white !important;
    font-weight: 600;
}

.nav-chip.active-nav-selection .check-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
}

/* Enhanced hover states for better navigation UX */
.nav-chip:not(.active-nav-selection):hover {
    background: #e0f2fe !important;
    border-color: #0ea5e9 !important;
    cursor: pointer;
    transform: translateY(-1px);
}

/* Ensure React components inherit proper styling */
.react-user-flows-container .user-flows-grid {
    margin-top: 0.5rem;
}

.react-user-flows-container .user-flow-card {
    transition: all 0.2s ease;
}

.react-user-flows-container .user-flow-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
} 