.car-dashboard-demo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.demo-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  color: white;
}

.demo-header h2 {
  margin: 0 0 12px 0;
  font-size: 32px;
  font-weight: 700;
}

.demo-header p {
  margin: 0 0 24px 0;
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.demo-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.demo-toggle {
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.demo-toggle.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.demo-content {
  margin-bottom: 32px;
}

.demo-steps {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  color: white;
}

.steps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.steps-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.step-controls {
  display: flex;
  gap: 8px;
}

.step-controls button {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.step-controls button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.step-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.step-controls button.reset {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.step-progress {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}

.step-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.step-indicator.completed {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.step-indicator.active {
  background: rgba(255, 255, 255, 0.4);
  border-color: white;
  transform: scale(1.1);
}

.current-step {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.current-step h4 {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 600;
}

.current-step p {
  margin: 0 0 20px 0;
  font-size: 16px;
  opacity: 0.9;
}

.demo-action-button {
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-action-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.handoff-simulation {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  color: white;
}

.handoff-simulation h4 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.handoff-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.handoff-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.handoff-item .label {
  font-weight: 600;
  opacity: 0.9;
}

.handoff-item .value {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.queue-preview {
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.queue-preview h5 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
}

.queue-preview ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.queue-preview li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.queue-preview li:last-child {
  border-bottom: none;
}

.feature-highlights {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  color: #333;
}

.feature-highlights h4 {
  margin: 0 0 24px 0;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: #2c3e50;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

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

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-card h5 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: #5a6c7d;
  line-height: 1.4;
}

.optimizer-container {
  margin: 32px 0;
}

.usage-instructions {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  border-radius: 16px;
  padding: 24px;
  color: #333;
}

.usage-instructions h4 {
  margin: 0 0 24px 0;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: #2c3e50;
}

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

.instruction-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.6);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content h5 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.step-content p {
  margin: 0;
  font-size: 14px;
  color: #5a6c7d;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .car-dashboard-demo {
    padding: 16px;
  }
  
  .demo-header {
    padding: 24px 16px;
  }
  
  .demo-header h2 {
    font-size: 24px;
  }
  
  .steps-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .step-progress {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .features-grid,
  .instructions-grid {
    grid-template-columns: 1fr;
  }
  
  .handoff-details {
    grid-template-columns: 1fr;
  }
}

/* Car Dashboard Specific Styles */
@media (orientation: landscape) and (min-width: 1024px) {
  .car-dashboard-demo {
    font-size: 18px;
  }
  
  .demo-header h2 {
    font-size: 36px;
  }
  
  .feature-card,
  .instruction-step {
    padding: 24px;
  }
  
  .feature-icon {
    font-size: 40px;
  }
}