/**
 * REAL AI Framework - Framework Navigator Page Styles
 * Enhanced interactive framework exploration interface
 */

/* Navigator Hero Section */
.navigator-hero {
  background: linear-gradient(135deg, #0A2540 0%, #1a365d 100%);
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.navigator-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #00A86B, #FFB800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00A86B;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* Framework Navigator Section */
.framework-navigator-section {
  padding: 80px 0;
  background: #f8fafc;
}

.navigator-interface {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  min-height: 800px;
  background: #f9fafb;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Navigator Sidebar */
.navigator-sidebar {
  background: #0A2540;
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  margin-bottom: 2rem;
}

.sidebar-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #00A86B;
}

.progress-indicator {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00A86B, #FFB800);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  font-size: 0.875rem;
  opacity: 0.8;
}

.component-tree {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 2rem;
}

.tree-node {
  margin-bottom: 0.5rem;
}

.tree-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.tree-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tree-item.active {
  background: rgba(0, 168, 107, 0.2);
  border-color: #00A86B;
}

.tree-item.explored {
  opacity: 0.7;
}

.tree-item.explored::after {
  content: '✓';
  color: #00A86B;
  margin-left: auto;
  font-weight: bold;
}

.tree-icon {
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
}

.tree-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.tree-children {
  margin-left: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Navigator Main */
.navigator-main {
  display: flex;
  flex-direction: column;
  background: #f9fafb;
}

.display-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.breadcrumb span {
  position: relative;
}

.breadcrumb span:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: #d1d5db;
}

.view-controls {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  background: #f3f4f6;
}

.view-btn.active {
  background: #0A2540;
  color: white;
  border-color: #0A2540;
}

.display-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* Welcome Screen */
.welcome-screen {
  text-align: center;
  padding: 4rem 2rem;
  display: block;
  opacity: 1;
  visibility: visible;
}

.welcome-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0A2540;
  margin-bottom: 1rem;
}

.welcome-content p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.quick-start-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.quick-option {
  padding: 2rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.quick-option:hover {
  border-color: #00A86B;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 168, 107, 0.15);
}

.quick-option i {
  font-size: 3rem;
  color: #00A86B;
  margin-bottom: 1rem;
}

.quick-option h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0A2540;
  margin-bottom: 0.5rem;
}

.quick-option p {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
}

/* Component Detail View */
.component-detail {
  animation: fadeIn 0.3s ease-in-out;
}

/* Enhanced Task Grid */
.task-grid.enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.task-item.detailed {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.task-item.detailed:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #00A86B;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.task-header h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0A2540;
}

.task-priority {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.task-priority.high {
  background: #fee2e2;
  color: #dc2626;
}

.task-priority.medium {
  background: #fef3c7;
  color: #d97706;
}

.task-priority.low {
  background: #dcfce7;
  color: #16a34a;
}

.task-description {
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.task-metrics {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
}

.task-metrics .metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.task-metrics .metric i {
  color: #00A86B;
  width: 16px;
}

.task-financial {
  margin-bottom: 1rem;
}

.task-financial h6 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0A2540;
}

.validation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.validation-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.validation-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.validation-item > span:last-child {
  font-size: 0.875rem;
  color: #0A2540;
  font-weight: 500;
}

.task-skills {
  margin-bottom: 1rem;
}

.task-skills h6 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0A2540;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.task-templates {
  margin-bottom: 0;
}

.task-templates h6 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0A2540;
}

.task-templates ul {
  margin: 0;
  padding-left: 1.2rem;
}

.task-templates li {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

/* Component Meta Grid */
.component-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.meta-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.meta-card i {
  font-size: 1.5rem;
  color: #00A86B;
  width: 24px;
  text-align: center;
}

.meta-card strong {
  display: block;
  font-size: 0.875rem;
  color: #0A2540;
  margin-bottom: 0.25rem;
}

.meta-card p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Deliverable Grid */
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.deliverable-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.deliverable-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.deliverable-header i {
  color: #00A86B;
  font-size: 1.25rem;
}

.deliverable-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0A2540;
}

.deliverable-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.deliverable-type {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.deliverable-effort {
  color: #6b7280;
  font-weight: 500;
}

/* Sub-Component Grid */
.sub-component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.sub-component-card {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.sub-component-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #00A86B;
}

.sub-component-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sub-component-header i {
  font-size: 1.25rem;
  color: #00A86B;
  width: 20px;
  text-align: center;
}

.sub-component-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0A2540;
}

.sub-component-meta {
  display: flex;
  justify-content: space-between;
  margin: 0.75rem 0;
  font-size: 0.875rem;
}

.sub-component-duration {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.sub-component-complexity {
  background: #f3e8ff;
  color: #7c3aed;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.sub-component-tasks {
  margin-top: 0.75rem;
}

.sub-component-tasks strong {
  display: block;
  font-size: 0.875rem;
  color: #0A2540;
  margin-bottom: 0.5rem;
}

.sub-component-tasks ul {
  margin: 0;
  padding-left: 1.2rem;
}

.sub-component-tasks li {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .task-grid.enhanced {
    grid-template-columns: 1fr;
  }
  
  .component-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .sub-component-grid {
    grid-template-columns: 1fr;
  }
  
  .validation-grid {
    grid-template-columns: 1fr;
  }
  
  .deliverable-grid {
    grid-template-columns: 1fr;
  }
}

/* Template Download Links */
.template-download {
  color: #00A86B;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.template-download:hover {
  color: #0A2540;
  text-decoration: underline;
}

.template-download:before {
  content: "📄";
  margin-right: 0.5rem;
}

/* Enhanced task templates section */
.task-templates ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-templates li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.task-templates li:last-child {
  border-bottom: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.component-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.component-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(45deg, #00A86B, #FFB800);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.component-title {
  flex: 1;
}

.component-title h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0A2540;
  margin: 0;
}

.component-title .component-status {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.component-content {
  display: grid;
  gap: 2rem;
}

.content-section {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.content-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0A2540;
  margin-bottom: 1rem;
}

.content-section p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.content-section ul {
  list-style: none;
  padding: 0;
}

.content-section li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
}

.content-section li:last-child {
  border-bottom: none;
}

.content-section li::before {
  content: '→';
  color: #00A86B;
  font-weight: bold;
  margin-right: 0.75rem;
}

/* Template Download Styling */
.deliverable-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.template-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #00A86B;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid #00A86B;
}

.template-download-btn:hover {
  background: #008a57;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

.template-download-btn i {
  font-size: 0.75rem;
}

.template-download {
  color: #00A86B;
  text-decoration: none;
  font-weight: 500;
}

.template-download:hover {
  text-decoration: underline;
}

/* Component Detail Fixed Display */
.component-detail,
#componentDetail {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  min-height: 400px;
  transition: all 0.3s ease;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.component-detail:empty {
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-style: italic;
}

.component-detail:empty::before {
  content: 'Select a component to view details';
}

/* Deliverable Cards */
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.deliverable-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.deliverable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #00A86B;
}

.deliverable-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.deliverable-header i {
  color: #00A86B;
  font-size: 1.25rem;
}

.deliverable-header h5 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0A2540;
}

.deliverable-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.deliverable-type {
  background: #e0f2fe;
  color: #0277bd;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

.deliverable-effort {
  background: #f3e5f5;
  color: #7b1fa2;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

.deliverable-actions {
  margin-top: 1rem;
}

/* Tools Section */
.tools-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.tools-section h5 {
  margin-bottom: 1rem;
  color: #0A2540;
  font-weight: 600;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.tool-tag i {
  color: #00A86B;
  font-size: 0.75rem;
}

/* Component Meta Cards */
.component-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.meta-card {
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.meta-card:hover {
  border-color: #00A86B;
  transform: translateY(-1px);
}

.meta-card i {
  color: #00A86B;
  font-size: 1.25rem;
}

.meta-card div strong {
  display: block;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

.meta-card div p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Content Section Styling */
.content-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-section h4 {
  color: #0A2540;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-section h4::before {
  content: '';
  width: 4px;
  height: 20px;
  background: #00A86B;
  border-radius: 2px;
}

/* Framework Insights */
.framework-insights {
  padding: 80px 0;
  background: white;
}

.framework-insights h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0A2540;
  margin-bottom: 3rem;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.insight-card {
  text-align: center;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.insight-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(45deg, #00A86B, #FFB800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.insight-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0A2540;
  margin-bottom: 0.5rem;
}

.insight-metric {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00A86B;
  margin-bottom: 1rem;
}

.insight-card p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Timeline View */
.timeline-view {
  padding: 2rem 0;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: -16px;
  width: 2px;
  background: #e5e7eb;
}

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

.timeline-marker {
  width: 48px;
  height: 48px;
  background: linear-gradient(45deg, #00A86B, #FFB800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  margin-right: 1.5rem;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.timeline-content {
  flex: 1;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

/* Diagram View */
.diagram-view {
  padding: 2rem 0;
  text-align: center;
}

.diagram-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navigator-interface {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .navigator-sidebar {
    order: 2;
    max-height: 300px;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .display-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .view-controls {
    width: 100%;
    justify-content: center;
  }
  
  .quick-start-options {
    grid-template-columns: 1fr;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #00A86B;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Task Components */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.task-item {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.task-item:hover {
  border-color: #00A86B;
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.15);
  transform: translateY(-2px);
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.task-header h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #0A2540;
  margin: 0;
}

.task-duration {
  font-size: 0.75rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.task-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.task-financial {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cost-estimate {
  font-size: 0.75rem;
  font-weight: 600;
  color: #00A86B;
  background: rgba(0, 168, 107, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Task Detail View */
.task-detail {
  animation: fadeIn 0.3s ease-in-out;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #00A86B;
}

.step-number {
  width: 32px;
  height: 32px;
  background: #00A86B;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #374151;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.template-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
}

.template-card h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #0A2540;
  margin-bottom: 0.75rem;
}

.template-details p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.template-details p:last-child {
  margin-bottom: 0;
}

.template-details strong {
  color: #374151;
}

.financial-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  border: 2px solid #00A86B;
  border-radius: 12px;
}

.financial-section h4 {
  color: #0A2540;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.financial-section h4::before {
  content: '💰';
  font-size: 1.25rem;
}

.financial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.financial-item {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 168, 107, 0.2);
}

.financial-item h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0A2540;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.financial-item p {
  font-size: 0.95rem;
  color: #374151;
  margin: 0;
  line-height: 1.4;
}

/* Enhanced Tree Navigation */
.tree-children .tree-children {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 1rem;
  padding-left: 1rem;
}

.tree-item.task-item {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  margin-left: 1rem;
  opacity: 0.9;
}

.tree-item.task-item:hover {
  opacity: 1;
}

.tree-item.task-item::before {
  content: '⚙️';
  margin-right: 0.5rem;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus states */
.tree-item:focus,
.view-btn:focus,
.action-btn:focus,
.quick-option:focus {
  outline: 2px solid #00A86B;
  outline-offset: 2px;
}