body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: #334155;
  overflow: hidden;
}

/* Custom Scrollbar - Sleeker */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 1px;
}

/* Animations */
.node-enter {
  /* Animation disabled - instant display */
  animation: none;
  opacity: 1;
  transform: scale(1);
}

@keyframes popIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Heartbeat glow animation for awaiting-action (yellow) - DISABLED */
@keyframes heartbeat-glow {
  0%,
  100% {
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
  }
  50% {
    border-color: rgba(245, 158, 11, 0.9);
    box-shadow: 0 0 12px 3px rgba(251, 191, 36, 0.4);
  }
}

.heartbeat-glow {
  /* animation: heartbeat-glow 1.8s ease-in-out infinite; */
  /* GLOW DISABLED - status shown via left border only */
}

/* Construction jigsaw animation for running/in-progress (blue) - DISABLED */
/* Status shown via left border only */
@keyframes construction-slide {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0;
  }
}

.construction-progress {
  /* Animation removed - status shown via left border only */
}

/* Disabled - no top border animation
.construction-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        45deg,
        #3b82f6 0px,
        #3b82f6 10px,
        #2563eb 10px,
        #2563eb 20px,
        #3b82f6 20px,
        #3b82f6 30px,
        #1d4ed8 30px,
        #1d4ed8 40px
    );
    background-size: 40px 4px;
    animation: construction-slide 1.5s linear infinite;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.4);
}
*/

/* SVG Styles */
path {
  transition: d 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Styles - Match Canvas */
.glass {
  background: #ffffff;
  border: 1px solid #f1f5f9;
}

/* Feature card borders - always gray except thick left border for status */
.group .glass {
  border-color: #e2e8f0;
  border-left-width: 4px;
}

/* Status-based left border colors for feature cards */
.group[data-status='awaiting-action'] .glass {
  border-left-color: rgba(251, 191, 36, 0.9); /* Amber for awaiting action */
}

.group[data-status='running'] .glass {
  border-left-color: rgba(59, 130, 246, 0.9); /* Blue for running */
}

.group[data-status='blocked'] .glass {
  border-left-color: #cbd5e1; /* Gray for blocked */
}

.group[data-status='completed'] .glass {
  border-left-color: #10b981; /* Green for completed */
}

.card-shadow {
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.05),
    0 1px 2px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.group:hover .card-shadow {
  transform: translateY(-1px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 4px 6px -4px rgba(0, 0, 0, 0.08);
  /* border-color stays gray on hover - status shown via left border only */
}

/* Phase Indicator - hidden (status shown via left border only) */
.phase-indicator {
  display: none;
}

/* Canvas Container */
#canvas-container {
  cursor: grab;
}

#canvas-container:active {
  cursor: grabbing;
}

/* Enhanced Side Panel - 80% WIDER & SLEEKER */
.enhanced-panel {
  background: #ffffff;
  border-left: 1px solid #f1f5f9;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.04);
}

.dense-input {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.875rem;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.dense-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  outline: none;
}

/* Feature name uses same size as other inputs */

.dense-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: block;
}

/* Tab Styles - Compact */
.tab-btn {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.15s;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: #64748b;
  background: #f8fafc;
}

.tab-btn.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

/* Collapsible Section */
.collapsible-section {
  border-bottom: 1px solid #f1f5f9;
}

.collapsible-header {
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.collapsible-header:hover {
  background: #f8fafc;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.collapsible-content.open {
  max-height: 9999px;
}

/* Task Item - Minimal Radius */
.task-item {
  padding: 0.5rem 0.625rem;
  border-radius: 0.25rem;
  border: 1px solid #f1f5f9;
  background: #ffffff;
  transition: all 0.15s;
}

.task-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.task-item.completed {
  opacity: 0.6;
}

/* Activity Timeline - Compact */
.timeline-item {
  position: relative;
  padding-left: 1.75rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.375rem;
  top: 0;
  bottom: -0.75rem;
  width: 1px;
  background: #e2e8f0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0.125rem;
  top: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #ffffff;
}

/* Tag Styles - Minimal Radius */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Modal Animation */
.modal-enter {
  opacity: 0;
  transform: scale(0.95);
}

.modal-enter-active {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.2s,
    transform 0.2s;
}

/* Quick Actions - Minimal Radius */
.quick-action {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: all 0.15s;
  border: 1px solid #f1f5f9;
}

.quick-action:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Progress Bar Smooth Transition */
.absolute.bottom-0 .h-full {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: width;
}

/* Attachment Icon Buttons - Sleek & Subtle */
.attachment-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.7rem;
}

.attachment-icon-btn:hover {
  background: #f8fafc;
}

/* Specific icon colors on hover */
.attachment-icon-btn:hover .fa-upload {
  color: #64748b;
}
.attachment-icon-btn:hover .fa-jira {
  color: #0052cc;
}
.attachment-icon-btn:hover .fa-confluence {
  color: #172b4d;
}
.attachment-icon-btn:hover .fa-google-drive {
  color: #10b981;
}
.attachment-icon-btn:hover .fa-github {
  color: #6366f1;
}
.attachment-icon-btn:hover .fa-link {
  color: #f59e0b;
}
.attachment-icon-btn:hover .fa-figma {
  color: #ec4899;
}
.attachment-icon-btn:hover .fa-slack {
  color: #06b6d4;
}

/* Action Icon Buttons - Minimal & Professional */
.action-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.75rem;
}

.action-icon-btn:hover {
  background: #f8fafc;
  color: #475569;
}

.action-icon-btn:hover .fa-trash {
  color: #ef4444;
}

.action-icon-btn:hover .fa-archive {
  color: #f59e0b;
}

/* Read-only input styling */
input[readonly],
textarea[readonly] {
  background: #f8fafc;
  cursor: default;
  border-color: #e2e8f0;
}

/* Decision Number Badge */
.decision-number-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #3b82f6;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

/* Disabled states for action bar controls */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f1f5f9;
}

/* Progress bar smooth animation */
#prd-progress-bar .h-full,
#plan-progress-bar .h-full {
  transition: width 0.1s linear;
}

/* New option highlight animation */
@keyframes optionHighlight {
  0% {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  50% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.option-highlight {
  animation: optionHighlight 1.5s ease-out 3;
}

/* Disable pointer events on disabled question buttons */
button[data-question]:disabled {
  pointer-events: none;
  opacity: 0.4;
}

/* Document viewer styles */
.prose {
  color: #334155;
  line-height: 1.6;
}

.prose h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #334155;
}

.prose p {
  margin-bottom: 0.75rem;
}

.prose ul,
.prose ol {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose li {
  margin-bottom: 0.25rem;
}

.prose code {
  background: #f1f5f9;
  color: #be123c;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.prose pre code {
  background: transparent;
  color: #334155;
  padding: 0;
  border-radius: 0;
}

.prose blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #64748b;
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.prose th {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.5rem;
  text-align: left;
  font-weight: 600;
}

.prose td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem;
}

.prose a {
  color: #3b82f6;
  text-decoration: underline;
}

.prose a:hover {
  color: #2563eb;
}

.prose strong {
  font-weight: 600;
  color: #0f172a;
}

.prose em {
  font-style: italic;
}

.prose pre::-webkit-scrollbar {
  height: 6px;
}

.prose pre::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.prose pre::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.prose pre::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Feature Drawer - Sleek Slide-in Panel */
.feature-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 0.375rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

/* Ensure all cards have a lower z-index by default */
.group {
  z-index: 10;
  position: relative;
}

/* Boost parent card z-index on hover to ensure drawer appears above other cards */
.group:hover {
  z-index: 50;
  position: relative;
}

.group:hover .feature-drawer {
  opacity: 1;
  max-height: 70px;
  transform: translateY(0);
}

.drawer-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.drawer-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.625rem;
  font-weight: 500;
  color: #64748b;
  border-radius: 0.25rem;
  text-align: left;
}

.drawer-btn:hover {
  background: #f1f5f9;
  color: #475569;
}

.drawer-btn i {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.drawer-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0.25rem;
  color: #64748b;
}

.drawer-icon-btn:hover {
  background: #f1f5f9;
  color: #475569;
}

.drawer-icon-btn i {
  font-size: 0.75rem;
}

/* Full-width Environment Button */
.drawer-btn.full-width {
  width: 100%;
  justify-content: center;
  padding: 0.375rem 0.5rem;
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 0.625rem;
  gap: 0.25rem;
}

.drawer-btn.full-width:hover {
  background: #f1f5f9;
}

/* Run Environment Button - State Colors */
.run-env-btn i {
  color: #3b82f6;
  font-size: 0.75rem;
}

.run-env-btn.starting {
  background: #fef3c7;
}

.run-env-btn.starting i {
  color: #f59e0b;
  animation: spin 1s linear infinite;
}

.run-env-btn.running {
  background: #dcfce7;
}

.run-env-btn.running i {
  color: #22c55e;
}

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

/* Environment Running Indicator on Card */
.env-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 8px;
  height: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.env-indicator i {
  font-size: 8px;
  color: #22c55e;
  filter: drop-shadow(0 0 2px rgba(34, 197, 94, 0.5));
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.env-indicator.visible {
  opacity: 1;
}

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

/* Deep Dive Icon Button - Highlighted */
.drawer-icon-btn.deep-dive-icon-btn {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(147, 51, 234, 0.2);
}

.drawer-icon-btn.deep-dive-icon-btn:hover {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  box-shadow: 0 3px 6px rgba(147, 51, 234, 0.3);
}

.drawer-icon-btn.deep-dive-icon-btn i {
  color: white;
}

/* Desktop Environment Modal - macOS Style */
#desktop-modal {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#desktop-modal.show {
  display: flex !important;
  opacity: 1;
}

#desktop-modal.show #desktop-window {
  transform: scale(1);
}

#desktop-window {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 80px rgba(0, 0, 0, 0.08);
}

/* Desktop Tab Styles */
.desktop-tab {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.desktop-tab:hover {
  background: #e2e8f0;
  color: #475569;
}

.desktop-tab.active {
  background: white;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Desktop Panel Styles */
.desktop-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.desktop-panel.active {
  opacity: 1;
  visibility: visible;
}

/* Desktop Info Bar Styles */
#desktop-worktree {
  max-width: 300px;
}

#desktop-pr-container .cursor-pointer:active {
  transform: scale(0.98);
}

/* Environment Cards Styles */
#env-cards-container {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 4px;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

#env-cards-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.env-card {
  width: 260px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.05),
    0 1px 2px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.env-card:hover {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 4px 6px -4px rgba(0, 0, 0, 0.08);
}

.env-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.env-card-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.env-card-title i {
  color: #10b981;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.env-card-close {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.env-card-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.env-card-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.25rem;
}

.env-card-status-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.env-card-status-text {
  font-size: 0.5625rem;
  font-weight: 600;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
}

.env-card-url {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.env-card-url:hover .env-card-url-text {
  color: #3b82f6;
}

.env-card-url:active {
  transform: scale(0.98);
}

.env-card-url-icon {
  color: #94a3b8;
  font-size: 0.625rem;
  transition: color 0.15s ease;
}

.env-card-url:hover .env-card-url-icon {
  color: #3b82f6;
}

.env-card-url-text {
  font-size: 0.625rem;
  font-family: 'Monaco', 'Courier New', monospace;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  transition: color 0.15s ease;
}

/* Environment Card Actions - Same as Drawer */
.env-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.env-card-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0.25rem;
  color: #64748b;
  font-size: 0.75rem;
}

.env-card-action-btn:hover {
  background: #f1f5f9;
  color: #475569;
}

.env-card-action-btn.deep-dive {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  color: white;
  box-shadow: 0 1px 2px rgba(147, 51, 234, 0.2);
}

.env-card-action-btn.deep-dive:hover {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  box-shadow: 0 2px 4px rgba(147, 51, 234, 0.3);
}

.env-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.env-card-id {
  font-size: 0.5rem;
  font-family: 'Monaco', 'Courier New', monospace;
  color: #94a3b8;
}

.env-card-port {
  font-size: 0.5rem;
  font-weight: 600;
  color: #64748b;
}

/* Phase Card Styles */

.phase-card {
  width: 280px;
  min-height: 320px;
  max-height: 500px;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  border-left-width: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 200ms ease-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.phase-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Action Items List */
.action-items-list {
  flex-shrink: 0;
}

.action-items-list::-webkit-scrollbar {
  width: 4px;
}

.action-items-list::-webkit-scrollbar-track {
  background: transparent;
}

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

.action-items-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Commit Graph */
.commit-graph {
  flex-shrink: 0;
  font-family: 'Monaco', 'Courier New', monospace;
}

.commit-graph::-webkit-scrollbar {
  width: 4px;
}

.commit-graph::-webkit-scrollbar-track {
  background: transparent;
}

.commit-graph::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.commit-graph::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Phase Status Border Colors */
.phase-pending {
  border-left-color: #cbd5e1;
}

.phase-running {
  border-left-color: rgba(59, 130, 246, 0.7);
  animation: construction-progress 0.8s ease-in-out infinite;
}

.phase-completed {
  border-left-color: rgba(34, 197, 94, 0.7);
}

.phase-merged {
  border-left-color: #cbd5e1;
}

/* Phase Drawer (hover controls) */
.phase-drawer {
  z-index: 10;
  will-change: transform, opacity;
}

/* Smooth transitions for drawer */
.phase-drawer.translate-y-8 {
  transform: translateY(32px);
  opacity: 0;
  visibility: hidden;
}

.phase-drawer.translate-y-0 {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Phase card hover state */
.phase-card {
  position: relative;
}

.phase-card:hover {
  z-index: 50;
}

/* ============================================
   Welcome / Empty Canvas View
   Canvas-native empty state
   ============================================ */

.welcome-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 5;
}

/* Sleek container wrapping all welcome content */
.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 2.5rem 3rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  backdrop-filter: blur(8px);
}

/* Action Cards */
.welcome-grid {
  display: flex;
  gap: 1.25rem;
}

.welcome-card {
  width: 220px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed #cbd5e1;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.welcome-card:hover {
  border-color: #93c5fd;
  background: rgba(255, 255, 255, 0.85);
}

.welcome-card-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: #f1f5f9;
  transition: all 0.2s ease;
}

.welcome-card-icon i {
  font-size: 0.625rem;
  color: #94a3b8;
}

.welcome-card:hover .welcome-card-icon {
  background: #3b82f6;
}

.welcome-card:hover .welcome-card-icon i {
  color: white;
}

.welcome-card-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CLI Section */
.welcome-cli {
  max-width: 466px;
  width: 100%;
}

.welcome-cli-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.welcome-cli-header i {
  font-size: 0.5625rem;
}

.welcome-cli-block {
  position: relative;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
}

.welcome-cli-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cli-prompt {
  color: #94a3b8;
  font-weight: 600;
  user-select: none;
}

.cli-cmd {
  color: #475569;
  font-weight: 600;
}

.cli-path {
  color: #94a3b8;
}

.cli-arg {
  color: #64748b;
}

.cli-string {
  color: #64748b;
}

.welcome-cli-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.welcome-cli-copy:hover {
  background: white;
  color: #64748b;
  border-color: #cbd5e1;
}

.welcome-cli-copy i {
  font-size: 0.625rem;
}

.welcome-cli-hint {
  margin-top: 0.5rem;
  font-size: 0.625rem;
  color: #cbd5e1;
  text-align: center;
}

/* ============================================
   Repository Welcome Layout
   Two-column: repos on left, idea canvas on right
   ============================================ */

.welcome-layout {
  display: flex;
  gap: 2rem;
  width: 100%;
  max-width: 800px;
  min-height: 340px;
}

.welcome-repo-column {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.welcome-repo-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.welcome-repo-header i {
  font-size: 0.875rem;
  color: #64748b;
}

.welcome-repo-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* Repo Pill Button (Welcome Screen) */
.repo-pill-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #475569;
  text-align: left;
  width: 100%;
}

.repo-pill-btn:hover {
  background: white;
  border-color: #cbd5e1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.repo-pill-btn.active {
  background: white;
  border-color: #3b82f6;
  color: #1e40af;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.repo-pill-icon {
  font-size: 0.875rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.repo-pill-btn.active .repo-pill-icon {
  color: #3b82f6;
}

.repo-pill-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-pill-path {
  display: none;
}

/* Add Repository Button (Welcome Screen) */
.welcome-add-repo-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
  width: 100%;
}

.welcome-add-repo-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.04);
}

.welcome-add-repo-btn i {
  font-size: 0.5rem;
}

/* Idea Canvas (Welcome Screen) */
.welcome-idea-canvas {
  flex: 1;
  position: relative;
  background: rgba(248, 250, 252, 0.5);
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  min-height: 300px;
  overflow: hidden;
}

.welcome-idea-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.welcome-idea-hint i {
  font-size: 1rem;
  animation: pulseHint 2s ease-in-out infinite;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Mind-map Center Node */
.mindmap-center {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: white;
  border: 2px solid #3b82f6;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e40af;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
  z-index: 2;
  animation: fadeIn 0.3s ease forwards;
}

.mindmap-center i {
  font-size: 1rem;
  color: #3b82f6;
}

/* Mind-map SVG */
.mindmap-svg {
  z-index: 1;
}

/* Mind-map Idea Bubble */
.mindmap-idea {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.5rem 0.875rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

.mindmap-idea:hover {
  border-color: #3b82f6;
  color: #1e40af;
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
  transform: translate(-50%, -50%) scale(1.05);
}

/* Mind-map Custom Feature Button */
.mindmap-custom-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.mindmap-custom-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.mindmap-custom-btn i {
  font-size: 0.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Mind-map Repo Container - New Layout */
.mindmap-repo-container {
  justify-content: flex-start;
  padding-top: 3rem !important;
}

/* Mind-map Center Node - Selected State */
.mindmap-center-selected {
  position: static !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
}

/* Ideas Section */
.ideas-section {
  animation: fadeIn 0.3s ease forwards;
}

.ideas-header {
  margin-bottom: 1rem;
}

.ideas-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.idea-option {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  color: #1e293b;
  text-align: left;
  transition: all 0.2s ease;
  font-weight: 500;
}

.idea-option:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.idea-option.selected {
  border-color: #3b82f6;
  background: #eff6ff;
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Actions Section */
.actions-section {
  animation: fadeIn 0.4s ease forwards 0.1s backwards;
}

/* ============================================
   Canvas Repo Pills (Features View)
   Positioned pills on the node layer
   ============================================ */

.canvas-repo-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  width: 200px;
  height: 40px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  z-index: 5;
}

.canvas-repo-icon {
  font-size: 0.875rem;
  color: #64748b;
  flex-shrink: 0;
}

.canvas-repo-name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.canvas-repo-path {
  display: none;
}

.canvas-repo-add-btn {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.5rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
  opacity: 0;
}

.canvas-repo-pill:hover .canvas-repo-add-btn {
  opacity: 1;
}

.canvas-repo-add-btn:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

/* Canvas Add Repository Button */
.canvas-add-repo-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  width: 200px;
  height: 40px;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
  box-sizing: border-box;
}

.canvas-add-repo-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.04);
}

.canvas-add-repo-btn i {
  font-size: 0.5rem;
}
